Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While installing Mobsf for windows 64 bit machine we found error : could not install package due to OS error & SSL Cerificate valation Error #10161

Closed
1 task done
keeran007 opened this issue Jul 14, 2021 · 4 comments
Labels
type: bug A confirmed bug or unintended behavior

Comments

@keeran007
Copy link

Description

Unable to install Mobsf in windows its throwing following error

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443):
Max retries exceeded with url: /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')
Mobile security frame work mobsf

C:\Program Files\Python39\Mobile-Security-Framework-MobSF>setup.bat
[INSTALL] Python is available
[INSTALL] Found Python 3.9.6
[INSTALL] Found pip
Requirement already satisfied: pip in c:\program files\python39\lib\site-packages (21.1.3)
[INSTALL] Found OpenSSL executable
[INSTALL] Found Visual Studio Build Tools
[INSTALL] Creating venv
Requirement already satisfied: pip in c:\program files\python39\mobile-security-framework-mobsf\venv\lib\site-packages (21.1.3)
[INSTALL] Installing Requirements
Ignoring gunicorn: markers 'platform_system != "Windows"' don't match your environment
Collecting Django>=3.1.5
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'))': /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/37/a1/790e01bf4348dd68090d47108052a8130954d473d54b4ea7924f5bb154de/Django-3.2.5-py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

[INSTALL] Clean Up
=======================MobSF Clean Script for Windows=======================
Running this script will delete the Scan database, all files uploaded and generated.
C:\Program Files\Python39\Mobile-Security-Framework-MobSF\scripts
Deleting all Uploads
Deleting all Downloads
Deleting Static Analyzer Migrations
Deleting Dynamic Analyzer Migrations
Deleting MobSF Migrations
Deleting temp and log files
Deleting DB
Deleting Secret File
Deleting Previous Setup files
Done
[INSTALL] Migrating Database
Traceback (most recent call last):
File "C:\Program Files\Python39\Mobile-Security-Framework-MobSF\manage.py", line 12, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Program Files\Python39\Mobile-Security-Framework-MobSF\manage.py", line 12, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Program Files\Python39\Mobile-Security-Framework-MobSF\manage.py", line 12, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Download and Install wkhtmltopdf for PDF Report Generation - https://wkhtmltopdf.org/downloads.html
[INSTALL] Installation Complete
[ERROR] Installation Failed!
Please ensure that all the requirements mentioned in documentation are installed before you run setup script.
Scroll up to see any installtion errors.

The 'decorator==4.4.2' distribution was not found and is required by the application

Expected behavior

Successful installation of Mobsf in windows 64 bit laptop

pip version

21.1.3

Python version

3.9.6

OS

Windows 10

How to Reproduce

  1. Go to cmd
  2. cd Mobile security frame work mobsf
  3. Python39>Mobile security frame work mobsf >setup.bat

Output

No response

Code of Conduct

@keeran007 keeran007 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jul 14, 2021
@keeran007
Copy link
Author

Please help me out

@pfmoore
Copy link
Member

pfmoore commented Jul 14, 2021

Looks like a connectivity error, but you'll need to either demonstrate the issue with a reproducible command that just uses pip, or you'll have to get someone else to debug your setup.bat file, as we don't support that.

Also, we're all volunteers here, so you can't necessarily expect a response in 3 hours, so pinging because you've not received a response in that time isn't really productive.

@DiddiLeija
Copy link
Member

Looks like a connectivity error, but you'll need to either demonstrate the issue with a reproducible command that just uses pip, or you'll have to get someone else to debug your setup.bat file, as we don't support that.

I completely agree with this. Can you try to install Mobsf from pip, doing this on your cmd prompt:

pip install mobsf

If you can't install it with this command, post the complete output that you got, so we can help you to identify the problem you're facing.

@DiddiLeija DiddiLeija added the S: awaiting response Waiting for a response/more information label Jul 22, 2021
@no-response
Copy link

no-response bot commented Aug 6, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Aug 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
@pradyunsg pradyunsg removed S: needs triage Issues/PRs that need to be triaged S: awaiting response Waiting for a response/more information labels Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants