Why does it say "ModuleNotFoundError: No module named 'django'" whn i have django installed, when installing mobsf? - django

C:\Windows\system32>cd C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master>setup.bat
[INSTALL] Checking for Python version 3.8+
[INSTALL] Found Python 3.10.4
[INSTALL] Found pip
Requirement already satisfied: pip in c:\users\das\appdata\local\programs\python\python310\lib\site-packages (23.0.1)
[INSTALL] Found OpenSSL executable
[INSTALL] Found Visual Studio Build Tools
[INSTALL] Creating venv
Requirement already satisfied: pip in c:\users\das\desktop\k\pentesting android\mobile-security-framework-mobsf-master\venv\lib\site-packages (22.0.4)
Collecting pip
Using cached pip-23.0.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
Successfully installed pip-23.0.1
[INSTALL] Installing Requirements
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel
Successfully installed wheel-0.38.4
Ignoring gunicorn: markers 'platform_system != "Windows"' don't match your environment
Collecting Django>=3.1.5
Downloading Django-4.1.7-py3-none-any.whl (8.1 MB)
---------------------------------------- 8.1/8.1 MB 12.6 MB/s eta 0:00:00
Collecting lxml>=4.6.2
Downloading lxml-4.9.2-cp310-cp310-win_amd64.whl (3.8 MB)
---------------------------------------- 3.8/3.8 MB 12.7 MB/s eta 0:00:00
Collecting rsa>=4.7
Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting biplist>=1.0.3
Downloading biplist-1.0.3.tar.gz (21 kB)
Preparing metadata (setup.py) ... done
Collecting requests>=2.25.1
Downloading requests-2.28.2-py3-none-any.whl (62 kB)
---------------------------------------- 62.8/62.8 kB ? eta 0:00:00
Collecting bs4>=0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py) ... done
Collecting colorlog>=4.7.2
Downloading colorlog-6.7.0-py2.py3-none-any.whl (11 kB)
Collecting macholib>=1.14
Downloading macholib-1.16.2-py2.py3-none-any.whl (38 kB)
Collecting whitenoise>=5.2.0
Downloading whitenoise-6.3.0-py3-none-any.whl (19 kB)
Collecting waitress>=1.4.4
Downloading waitress-2.1.2-py3-none-any.whl (57 kB)
---------------------------------------- 57.7/57.7 kB ? eta 0:00:00
Collecting psutil>=5.8.0
Downloading psutil-5.9.4-cp36-abi3-win_amd64.whl (252 kB)
---------------------------------------- 252.5/252.5 kB 15.1 MB/s eta 0:00:00
Collecting shelljob>=0.6.2
Downloading shelljob-0.6.3-py3-none-any.whl (9.9 kB)
Collecting asn1crypto>=1.4.0
Downloading asn1crypto-1.5.1-py2.py3-none-any.whl (105 kB)
---------------------------------------- 105.0/105.0 kB ? eta 0:00:00
Collecting oscrypto>=1.2.1
Downloading oscrypto-1.3.0-py2.py3-none-any.whl (194 kB)
---------------------------------------- 194.6/194.6 kB 12.3 MB/s eta 0:00:00
Collecting distro>=1.5.0
Downloading distro-1.8.0-py3-none-any.whl (20 kB)
Collecting IP2Location==8.9.0
Downloading IP2Location-8.9.0-py3-none-any.whl (16 kB)
Collecting lief>=0.12.1
Downloading lief-0.12.3-cp310-cp310-win_amd64.whl (4.9 MB)
---------------------------------------- 4.9/4.9 MB 12.9 MB/s eta 0:00:00
Collecting http-tools>=2.1.1
Downloading http-tools-2.1.1.tar.gz (550 kB)
---------------------------------------- 550.3/550.3 kB 17.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting libsast>=1.5.1
Downloading libsast-1.5.2.tar.gz (36 kB)
Preparing metadata (setup.py) ... done
Collecting pdfkit>=0.6.1
Downloading pdfkit-1.0.0-py3-none-any.whl (12 kB)
Collecting google-play-scraper>=0.1.2
Downloading google_play_scraper-1.2.3-py3-none-any.whl (28 kB)
Collecting androguard==3.4.0a1
Downloading androguard-3.4.0a1-py3-none-any.whl (918 kB)
---------------------------------------- 918.1/918.1 kB 11.5 MB/s eta 0:00:00
Collecting apkid==2.1.4
Downloading apkid-2.1.4-py2.py3-none-any.whl (116 kB)
---------------------------------------- 116.6/116.6 kB ? eta 0:00:00
Collecting quark-engine==22.10.1
Downloading quark_engine-22.10.1-py3-none-any.whl (97 kB)
---------------------------------------- 97.6/97.6 kB 5.5 MB/s eta 0:00:00
Collecting frida==15.2.2
Downloading frida-15.2.2.tar.gz (11 kB)
Preparing metadata (setup.py) ... done
Collecting tldextract==3.4.0
Downloading tldextract-3.4.0-py3-none-any.whl (93 kB)
---------------------------------------- 93.9/93.9 kB ? eta 0:00:00
Collecting openstep-parser==1.5.4
Downloading openstep_parser-1.5.4-py3-none-any.whl (4.5 kB)
Collecting svgutils==0.3.4
Downloading svgutils-0.3.4-py3-none-any.whl (10 kB)
Collecting ruamel.yaml==0.16.13
Downloading ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB)
---------------------------------------- 111.9/111.9 kB ? eta 0:00:00
Collecting click==8.0.1
Downloading click-8.0.1-py3-none-any.whl (97 kB)
---------------------------------------- 97.4/97.4 kB ? eta 0:00:00
Collecting decorator==4.4.2
Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting tzdata; sys_platform == "win32"
Downloading tzdata-2022.7-py2.py3-none-any.whl (340 kB)
---------------------------------------- 340.1/340.1 kB 20.6 MB/s eta 0:00:00
Collecting sqlparse>=0.2.2
Downloading sqlparse-0.4.3-py3-none-any.whl (42 kB)
---------------------------------------- 42.8/42.8 kB 2.0 MB/s eta 0:00:00
Collecting asgiref<4,>=3.5.2
Downloading asgiref-3.6.0-py3-none-any.whl (23 kB)
Collecting pyasn1>=0.1.3
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
---------------------------------------- 77.1/77.1 kB ? eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.14-py2.py3-none-any.whl (140 kB)
---------------------------------------- 140.6/140.6 kB ? eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.0.1-cp310-cp310-win_amd64.whl (96 kB)
---------------------------------------- 96.5/96.5 kB ? eta 0:00:00
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
---------------------------------------- 61.5/61.5 kB ? eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
---------------------------------------- 155.3/155.3 kB ? eta 0:00:00
Collecting beautifulsoup4
Downloading beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
---------------------------------------- 129.4/129.4 kB 7.9 MB/s eta 0:00:00
Collecting colorama; sys_platform == "win32"
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting altgraph>=0.17
Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting mitmproxy==6.0.2
Downloading mitmproxy-6.0.2-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 11.9 MB/s eta 0:00:00
Collecting markupsafe==2.0.1
Downloading MarkupSafe-2.0.1-cp310-cp310-win_amd64.whl (15 kB)
Collecting pyyaml>=6.0
Downloading PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
---------------------------------------- 151.7/151.7 kB ? eta 0:00:00
Collecting pygments>=2.3.1
Downloading Pygments-2.14.0-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 14.3 MB/s eta 0:00:00
Collecting networkx>=2.2
Downloading networkx-3.0-py3-none-any.whl (2.0 MB)
---------------------------------------- 2.0/2.0 MB 14.5 MB/s eta 0:00:00
Collecting matplotlib>=3.0.2
Downloading matplotlib-3.7.0-cp310-cp310-win_amd64.whl (7.6 MB)
---------------------------------------- 7.6/7.6 MB 11.9 MB/s eta 0:00:00
Collecting ipython>=5.0.0
Downloading ipython-8.10.0-py3-none-any.whl (784 kB)
---------------------------------------- 784.3/784.3 kB 12.3 MB/s eta 0:00:00
Collecting pydot>=1.4.1
Downloading pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Collecting yara-python-dex>=1.0.1
Downloading yara_python_dex-1.0.4-cp310-cp310-win_amd64.whl (130 kB)
---------------------------------------- 130.2/130.2 kB ? eta 0:00:00
Collecting graphviz
Downloading graphviz-0.20.1-py3-none-any.whl (47 kB)
---------------------------------------- 47.0/47.0 kB ? eta 0:00:00
Collecting rzpipe
Downloading rzpipe-0.4.0-py3-none-any.whl (11 kB)
Collecting prompt-toolkit==3.0.19
Downloading prompt_toolkit-3.0.19-py3-none-any.whl (368 kB)
---------------------------------------- 368.4/368.4 kB 11.6 MB/s eta 0:00:00
Collecting pandas
Downloading pandas-1.5.3-cp310-cp310-win_amd64.whl (10.4 MB)
---------------------------------------- 10.4/10.4 MB 12.6 MB/s eta 0:00:00
Collecting kaleido
Downloading kaleido-0.2.1-py2.py3-none-win_amd64.whl (65.9 MB)
---------------------------------------- 65.9/65.9 MB 12.6 MB/s eta 0:00:00
Collecting prettytable>=1.0.0
Downloading prettytable-3.6.0-py3-none-any.whl (27 kB)
Collecting plotly
Downloading plotly-5.13.0-py2.py3-none-any.whl (15.2 MB)
---------------------------------------- 15.2/15.2 MB 12.8 MB/s eta 0:00:00
Collecting tqdm
Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
---------------------------------------- 78.5/78.5 kB ? eta 0:00:00
Requirement already satisfied: setuptools in c:\users\das\desktop\k\pentesting android\mobile-security-framework-mobsf-master\venv\lib\site-packages (from frida==15.2.2->-r requirements.txt (line 26)) (58.1.0)
Collecting filelock>=3.0.8
Downloading filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting requests-file>=1.4
Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting soupsieve>1.2
Downloading soupsieve-2.4-py3-none-any.whl (37 kB)
Collecting pyperclip<1.9,>=1.6.0
Downloading pyperclip-1.8.2.tar.gz (20 kB)
Preparing metadata (setup.py) ... done
Collecting pydivert<2.2,>=2.0.3; sys_platform == "win32"
Downloading pydivert-2.1.0-py2.py3-none-any.whl (104 kB)
---------------------------------------- 104.7/104.7 kB ? eta 0:00:00
Collecting Brotli<1.1,>=1.0
Downloading Brotli-1.0.9-cp310-cp310-win_amd64.whl (383 kB)
---------------------------------------- 383.3/383.3 kB 11.7 MB/s eta 0:00:00
Collecting blinker<1.5,>=1.4
Downloading blinker-1.4.tar.gz (111 kB)
---------------------------------------- 111.5/111.5 kB ? eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting flask<1.2,>=1.1.1
Downloading Flask-1.1.4-py2.py3-none-any.whl (94 kB)
---------------------------------------- 94.6/94.6 kB ? eta 0:00:00
Collecting msgpack<1.1.0,>=1.0.0
Downloading msgpack-1.0.4-cp310-cp310-win_amd64.whl (61 kB)
---------------------------------------- 61.3/61.3 kB ? eta 0:00:00
Collecting tornado<7,>=4.3
Downloading tornado-6.2-cp37-abi3-win_amd64.whl (425 kB)
---------------------------------------- 425.3/425.3 kB 13.0 MB/s eta 0:00:00
Collecting protobuf<3.15,>=3.14
Downloading protobuf-3.14.0-py2.py3-none-any.whl (173 kB)
---------------------------------------- 173.5/173.5 kB ? eta 0:00:00
Collecting ldap3<2.9,>=2.8
Downloading ldap3-2.8.1-py2.py3-none-any.whl (423 kB)
---------------------------------------- 423.6/423.6 kB 13.3 MB/s eta 0:00:00
Collecting pyOpenSSL<20.1,>=20.0
Downloading pyOpenSSL-20.0.1-py2.py3-none-any.whl (54 kB)
---------------------------------------- 54.1/54.1 kB ? eta 0:00:00
Collecting publicsuffix2<3,>=2.20190812
Downloading publicsuffix2-2.20191221-py2.py3-none-any.whl (89 kB)
---------------------------------------- 89.0/89.0 kB ? eta 0:00:00
Collecting kaitaistruct<0.10,>=0.7
Downloading kaitaistruct-0.9.tar.gz (5.5 kB)
Preparing metadata (setup.py) ... done
Collecting hyperframe<7,>=6.0
Downloading hyperframe-6.0.1-py3-none-any.whl (12 kB)
Collecting cryptography<3.4,>=3.3
Downloading cryptography-3.3.2-cp36-abi3-win_amd64.whl (1.5 MB)
---------------------------------------- 1.5/1.5 MB 12.0 MB/s eta 0:00:00
Collecting pyparsing<2.5,>=2.4.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
---------------------------------------- 67.8/67.8 kB ? eta 0:00:00
Collecting h2<5,>=4.0
Downloading h2-4.1.0-py3-none-any.whl (57 kB)
---------------------------------------- 57.5/57.5 kB ? eta 0:00:00
Collecting sortedcontainers<2.4,>=2.3
Downloading sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Collecting wsproto<1.1,>=1.0
Downloading wsproto-1.0.0-py3-none-any.whl (24 kB)
Collecting passlib<1.8,>=1.6.5
Downloading passlib-1.7.4-py2.py3-none-any.whl (525 kB)
---------------------------------------- 525.6/525.6 kB 16.6 MB/s eta 0:00:00
Collecting urwid<2.2,>=2.1.1
Downloading urwid-2.1.2.tar.gz (634 kB)
---------------------------------------- 634.6/634.6 kB 13.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting zstandard<0.15,>=0.11
Downloading zstandard-0.14.1.tar.gz (676 kB)
---------------------------------------- 676.8/676.8 kB 14.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 63, in <module>
File "C:\Users\DAS\AppData\Local\Temp\pip-install-dne6hg8f\zstandard\setup_zstd.py", line 164, in get_c_extension
compiler.initialize()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\msvc.py", line 210, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\msvc.py", line 164, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 63, in <module>
File "C:\Users\DAS\AppData\Local\Temp\pip-install-dne6hg8f\zstandard\setup_zstd.py", line 164, in get_c_extension
compiler.initialize()
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\msvc.py", line 210, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\DAS\AppData\Local\Temp\pip-build-env-n2v04aw_\overlay\Lib\site-packages\setuptools\msvc.py", line 164, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
[INSTALL] Clean Up
=======================MobSF Clean Script for Windows=======================
Running this script will delete the Scan database, all files uploaded and generated.
C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\scripts
Deleting all uploads
Deleting all downloads
Deleting Static Analyzer migrations
Deleting Dynamic Analyzer migrations
Deleting MobSF migrations
Deleting temp and log files
Deleting Scan database
Deleting Secret file
Deleting Previous setup files
Deleting MobSF data directory: "C:\Users\DAS\.MobSF"
Done
[INSTALL] Migrating Database
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\manage.py", line 12, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
Traceback (most recent call last):
File "C:\Users\DAS\Desktop\K\Pentesting Android\Mobile-Security-Framework-MobSF-master\manage.py", line 12, in <module>
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 installation errors.
The 'decorator==4.4.2' distribution was not found and is required by the application
Things I tried:
pip uninstall Django
pip install Django
python -m pip install django
pip3 install django
python3 -m django --version1
..............................................................................................................................................................................................................................................................................................................

Related

Heroku reject push project

i try to publish my python project but i have some issues can you help me ? i have requirements.txt also i add my git profile this is my first time with heroku i don't understand what is wrong i add my project on git repository and main branch i use python 3 this is my python project my project files and git files are in same level i tried something is i found on internet but it not worked for me
and this is heroku error :
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> No Python version was specified. Using the buildpack default: python-3.10.4
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.10.4
-----> Installing pip 22.0.4, setuptools 60.10.0 and wheel 0.37.1
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting APScheduler==3.9.1
Downloading APScheduler-3.9.1-py2.py3-none-any.whl (59 kB)
Collecting asgiref==3.5.0
Downloading asgiref-3.5.0-py3-none-any.whl (22 kB)
Collecting beautifulsoup4==4.10.0
Downloading beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
Collecting bs4==0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting certifi==2021.10.8
Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting cffi==1.15.0
Downloading cffi-1.15.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)
Collecting charset-normalizer==2.0.12
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting cryptography==36.0.1
Downloading cryptography-36.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (3.6 MB)
Collecting distlib==0.3.4
Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
Collecting Django==2.2.27
Downloading Django-2.2.27-py3-none-any.whl (7.5 MB)
Collecting django-filter==21.1
Downloading django_filter-21.1-py3-none-any.whl (81 kB)
Collecting django-js-asset==2.0.0
Downloading django_js_asset-2.0.0-py3-none-any.whl (4.9 kB)
Collecting django-mptt==0.13.4
Downloading django_mptt-0.13.4-py3-none-any.whl (137 kB)
Collecting djangorestframework==3.13.1
Downloading djangorestframework-3.13.1-py3-none-any.whl (958 kB)
Collecting drf-flex-fields==0.9.7
Downloading drf-flex-fields-0.9.7.tar.gz (28 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting drf-renderer-xlsx==0.4.5
Downloading drf_renderer_xlsx-0.4.5-py3-none-any.whl (11 kB)
Collecting et-xmlfile==1.1.0
Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting filelock==3.6.0
Downloading filelock-3.6.0-py3-none-any.whl (10.0 kB)
Collecting gunicorn==20.1.0
Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting idna==3.3
Downloading idna-3.3-py3-none-any.whl (61 kB)
Collecting ldap3==2.9.1
Downloading ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
Collecting openpyxl==3.0.9
Downloading openpyxl-3.0.9-py2.py3-none-any.whl (242 kB)
Collecting Pillow==9.0.1
Downloading Pillow-9.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
Collecting platformdirs==2.5.1
Downloading platformdirs-2.5.1-py3-none-any.whl (14 kB)
Collecting pyasn1==0.4.8
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pycparser==2.21
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting python-dateutil==2.8.2
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytz==2022.1
Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting pytz-deprecation-shim==0.1.0.post0
Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting requests==2.27.1
Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting six==1.16.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting soupsieve==2.3.1
Downloading soupsieve-2.3.1-py3-none-any.whl (37 kB)
Collecting sqlparse==0.4.2
Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
Collecting tzdata==2022.1
Downloading tzdata-2022.1-py2.py3-none-any.whl (339 kB)
Collecting tzlocal==4.1
Downloading tzlocal-4.1-py3-none-any.whl (19 kB)
Collecting urllib3==1.26.9
Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting virtualenv==20.14.0
Downloading virtualenv-20.14.0-py2.py3-none-any.whl (8.8 MB)
Collecting whitenoise==6.0.0
Downloading whitenoise-6.0.0-py3-none-any.whl (19 kB)
Building wheels for collected packages: bs4, drf-flex-fields
Building wheel for bs4 (setup.py): started
Building wheel for bs4 (setup.py): finished with status 'done'
Created wheel for bs4: filename=bs4-0.0.1-py3-none-any.whl size=1272 sha256=1b9aa0ae1eb53ab61439cc713b4cd3634e11eacadde3f580901099bdff9485c5
Stored in directory: /tmp/pip-ephem-wheel-cache-n0iong8p/wheels/25/42/45/b773edc52acb16cd2db4cf1a0b47117e2f69bb4eb300ed0e70
Building wheel for drf-flex-fields (setup.py): started
Building wheel for drf-flex-fields (setup.py): finished with status 'done'
Created wheel for drf-flex-fields: filename=drf_flex_fields-0.9.7-py3-none-any.whl size=14682 sha256=83b04e19d2af8aa588e19a76d2d51e53fd5e0ae3b91972f0bf96dc98ffa3c4b6
Stored in directory: /tmp/pip-ephem-wheel-cache-n0iong8p/wheels/d1/ae/ef/2a1b188db93bb648757e281df437793c2a389ae01ef599effb
Successfully built bs4 drf-flex-fields
Installing collected packages: pytz, pyasn1, drf-flex-fields, distlib, certifi, whitenoise, urllib3, tzdata, sqlparse, soupsieve, six, pycparser, platformdirs, Pillow, ldap3, idna, gunicorn, filelock, et-xmlfile, charset-normalizer, asgiref, virtualenv, requests, pytz-deprecation-shim, python-dateutil, openpyxl, Django, cffi, beautifulsoup4, tzlocal, djangorestframework, django-js-asset, django-filter, cryptography, bs4, drf-renderer-xlsx, django-mptt, APScheduler
Successfully installed APScheduler-3.9.1 Django-2.2.27 Pillow-9.0.1 asgiref-3.5.0 beautifulsoup4-4.10.0 bs4-0.0.1 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.12 cryptography-36.0.1 distlib-0.3.4 django-filter-21.1 django-js-asset-2.0.0 django-mptt-0.13.4 djangorestframework-3.13.1 drf-flex-fields-0.9.7 drf-renderer-xlsx-0.4.5 et-xmlfile-1.1.0 filelock-3.6.0 gunicorn-20.1.0 idna-3.3 ldap3-2.9.1 openpyxl-3.0.9 platformdirs-2.5.1 pyasn1-0.4.8 pycparser-2.21 python-dateutil-2.8.2 pytz-2022.1 pytz-deprecation-shim-0.1.0.post0 requests-2.27.1 six-1.16.0 soupsieve-2.3.1 sqlparse-0.4.2 tzdata-2022.1 tzlocal-4.1 urllib3-1.26.9 virtualenv-20.14.0 whitenoise-6.0.0
-----> $ python manage.py collectstatic --noinput
Traceback (most recent call last):
File "/tmp/build_94cceabe/manage.py", line 21, in <module>
main()
File "/tmp/build_94cceabe/manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 188, in handle
collected = self.collect()
File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect
handler(path, prefixed_path, storage)
File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 342, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 249, in delete_file
if self.storage.exists(prefixed_path):
File "/app/.heroku/python/lib/python3.10/site-packages/django/core/files/storage.py", line 324, in exists
return os.path.exists(self.path(name))
File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/staticfiles/storage.py", line 44, in path
raise ImproperlyConfigured("You're using the staticfiles app "
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
! Error while running '$ python manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1
https://devcenter.heroku.com/articles/django-assets
! Push rejected, failed to compile Python app.
! Push failed
You must setting the STATIC_ROOT when the DEBUG=False or when production step in the settings.py
example
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
and make sure to put Procfile in the root of project
for completed step you can access here
Procfile contain
web: gunicorn <yourapp>.wsgi --log-file -
Good luck and keep coding

Getting an error while trying to install robotframework-appiumlibrary

Mac OS - 10.15.7
Python - 2.7.18
I used the command to install "pip install robotframework-appiumlibrary" and following is the error i get.
#Amiths-MacBook-Pro ~ % pip install robotframework-appiumlibrary
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting robotframework-appiumlibrary
Using cached robotframework_appiumlibrary-1.5.0.7-py2.py3-none-any.whl (49 kB)
Collecting docutils>=0.8.1
Using cached docutils-0.17.1-py2.py3-none-any.whl (575 kB)
Collecting six>=1.10.0
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting decorator>=3.3.2
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting kitchen>=1.2.4
Using cached kitchen-1.2.6.tar.gz (255 kB)
Collecting selenium>=2.47.1
Using cached selenium-3.141.0-py2.py3-none-any.whl (904 kB)
Requirement already satisfied: robotframework>=2.6.0 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from robotframework-appiumlibrary) (4.0.1)
Collecting Appium-Python-Client>=0.28
Using cached Appium-Python-Client-1.1.0.tar.gz (53 kB)
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xn/c052lddx4qz1lm8h6thg0w_h0000gn/T/pip-install-IQfrSA/appium-python-client/setup.py'"'"'; __file__='"'"'/private/var/folders/xn/c052lddx4qz1lm8h6thg0w_h0000gn/T/pip-install-IQfrSA/appium-python-client/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/xn/c052lddx4qz1lm8h6thg0w_h0000gn/T/pip-pip-egg-info-AVKVXp
cwd: /private/var/folders/xn/c052lddx4qz1lm8h6thg0w_h0000gn/T/pip-install-IQfrSA/appium-python-client/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xn/c052lddx4qz1lm8h6thg0w_h0000gn/T/pip-install-IQfrSA/appium-python-client/setup.py", line 19, in <module>
from appium.common.helper import library_version
File "appium/common/helper.py", line 20
def extract_const_attributes(cls: type) -> Dict[str, Any]:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
#Amiths-MacBook-Pro ~ % python setup.py egg_info
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory

Docker images not being pushed to ECR

I'm facing a bizarre problem. I'm pushing Docker images into ECR. 2 out of 4 images are pushed. The other 2 are left out for some reason.
My push file:
if [ "$GITLAB_BRANCH" == "staging" ] || \
[ "$GITLAB_BRANCH" == "production" ]
then
docker build $USERS_REPO -t $USERS:$COMMIT -f Dockerfile-$DOCKER_ENV
docker tag $USERS:$COMMIT $REPO/$USERS:$TAG
docker push $REPO/$USERS:$TAG #<-- SUCCESSFULLY PUSHED
docker build $USERS_DB_REPO -t $USERS_DB:$COMMIT -f Dockerfile
docker tag $USERS_DB:$COMMIT $REPO/$USERS_DB:$TAG
docker push $REPO/$USERS_DB:$TAG #<-- SUCCESSFULLY PUSHED
docker build $CLIENT_REPO -t $CLIENT:$COMMIT -f Dockerfile-prod --build-arg REACT_APP_USERS_SERVICE_URL=""
echo "CLIENT 1st LINE EXECUTED" # NOT EXECUTED
docker tag $CLIENT:$COMMIT $REPO/$CLIENT:$TAG # NOT EXECUTED
echo "CLIENT 2nd LINE EXECUTED" # NOT EXECUTED
docker push $REPO/$CLIENT:$TAG # NOT EXECUTED
docker build $SWAGGER_REPO -t $SWAGGER:$COMMIT -f Dockerfile-$DOCKER_ENV # NOT EXECUTED
docker tag $SWAGGER:$COMMIT $REPO/$SWAGGER:$TAG # NOT EXECUTED
docker push $REPO/$SWAGGER:$TAG # NOT EXECUTED
fi
Thanks to those debugging echo statements I've determined that Client and Swagger commands aren't being executed.
job log (sharing relevant output only):
Login Succeeded
Step 1/9 : FROM python:3.8.2-slim
---> ee07b1466448
Step 2/9 : RUN apt-get update && apt-get -y install netcat && apt-get clean
---> Using cache
---> b0a678c8b22d
Step 3/9 : WORKDIR /usr/src/app
---> Using cache
---> 25d4353ddd2c
Step 4/9 : COPY ./requirements.txt /usr/src/app/requirements.txt
---> 401a5620bb76
Step 5/9 : RUN pip install -r requirements.txt
---> Running in 86fac0967146
Collecting Werkzeug==0.16.1
Downloading Werkzeug-0.16.1-py2.py3-none-any.whl (327 kB)
Collecting coverage==4.5.3
Downloading coverage-4.5.3.tar.gz (384 kB)
Collecting flake8===3.7.7
Downloading flake8-3.7.7-py2.py3-none-any.whl (68 kB)
Collecting Flask==1.1.1
Downloading Flask-1.1.1-py2.py3-none-any.whl (94 kB)
Collecting flask-bcrypt==0.7.1
Downloading Flask-Bcrypt-0.7.1.tar.gz (5.1 kB)
Collecting flask-cors==3.0.7
Downloading Flask_Cors-3.0.7-py2.py3-none-any.whl (13 kB)
Collecting flask-debugtoolbar==0.10.1
Downloading Flask_DebugToolbar-0.10.1-py2.py3-none-any.whl (326 kB)
Collecting flask-migrate==2.4.0
Downloading Flask_Migrate-2.4.0-py2.py3-none-any.whl (13 kB)
Collecting Flask-RESTful==0.3.7
Downloading Flask_RESTful-0.3.7-py2.py3-none-any.whl (24 kB)
Collecting Flask-SQLAlchemy==2.3.2
Downloading Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl (16 kB)
Collecting Flask-Testing==0.7.1
Downloading Flask-Testing-0.7.1.tar.gz (43 kB)
Collecting gunicorn==20.0.4
Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
Collecting psycopg2-binary==2.8.4
Downloading psycopg2_binary-2.8.4-cp38-cp38-manylinux1_x86_64.whl (3.0 MB)
Collecting pyjwt==1.7.1
Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting pyflakes<2.2.0,>=2.1.0
Downloading pyflakes-2.1.1-py2.py3-none-any.whl (59 kB)
Collecting entrypoints<0.4.0,>=0.3.0
Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting pycodestyle<2.6.0,>=2.5.0
Downloading pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB)
Collecting mccabe<0.7.0,>=0.6.0
Downloading mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Collecting click>=5.1
Downloading click-7.1.1-py2.py3-none-any.whl (82 kB)
Collecting itsdangerous>=0.24
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Jinja2>=2.10.1
Downloading Jinja2-2.11.1-py2.py3-none-any.whl (126 kB)
Collecting bcrypt
Downloading bcrypt-3.1.7-cp34-abi3-manylinux1_x86_64.whl (56 kB)
Collecting Six
Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting Blinker
Downloading blinker-1.4.tar.gz (111 kB)
Collecting alembic>=0.7
Downloading alembic-1.4.2.tar.gz (1.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting aniso8601>=0.82
Downloading aniso8601-8.0.0-py2.py3-none-any.whl (43 kB)
Collecting pytz
Downloading pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting SQLAlchemy>=0.8.0
Downloading SQLAlchemy-1.3.15.tar.gz (6.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.8/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 12)) (45.2.0)
Collecting MarkupSafe>=0.23
Downloading MarkupSafe-1.1.1-cp38-cp38-manylinux1_x86_64.whl (32 kB)
Collecting cffi>=1.1
Downloading cffi-1.14.0-cp38-cp38-manylinux1_x86_64.whl (409 kB)
Collecting python-editor>=0.3
Downloading python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting python-dateutil
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting Mako
Downloading Mako-1.1.2-py2.py3-none-any.whl (75 kB)
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: coverage, flask-bcrypt, Flask-Testing, Blinker, alembic, SQLAlchemy
Building wheel for coverage (setup.py): started
Building wheel for coverage (setup.py): finished with status 'done'
Created wheel for coverage: filename=coverage-4.5.3-py3-none-any.whl size=170336 sha256=038d3ae43b6607fdfd80e1d69f79420bd823507f7be1fc20bdd16d2cdf01d518
Stored in directory: /root/.cache/pip/wheels/b0/4c/d7/9db997336a1ea6749f3b3b1b9edea6f6665ee86f58ae1e5b1b
Building wheel for flask-bcrypt (setup.py): started
Building wheel for flask-bcrypt (setup.py): finished with status 'done'
Created wheel for flask-bcrypt: filename=Flask_Bcrypt-0.7.1-py3-none-any.whl size=5010 sha256=62300cc512e7c33a42f41ca20120672f7b6ff54c5009a208c32b3fc50bf4da62
Stored in directory: /root/.cache/pip/wheels/8a/d9/0e/dc762c4ebc76f581397a2e25991db6efd148640b5616ab9210
Building wheel for Flask-Testing (setup.py): started
Building wheel for Flask-Testing (setup.py): finished with status 'done'
Created wheel for Flask-Testing: filename=Flask_Testing-0.7.1-py3-none-any.whl size=8167 sha256=972152da9797e69bc3682dd259120d95076afdf31e1f3f6dca9e68cb745b84f8
Stored in directory: /root/.cache/pip/wheels/1e/61/04/028fc73af661e18862396627606c5898a5da45f13ac0e37711
Building wheel for Blinker (setup.py): started
Building wheel for Blinker (setup.py): finished with status 'done'
Created wheel for Blinker: filename=blinker-1.4-py3-none-any.whl size=13452 sha256=bba96e4a53181a424212eaa71d27e74fa0d13c3914867e58b0484a0a60ecd377
Stored in directory: /root/.cache/pip/wheels/b7/a5/68/fe632054a5eadd531c7a49d740c50eb6adfbeca822b4eab8d4
Building wheel for alembic (PEP 517): started
Building wheel for alembic (PEP 517): finished with status 'done'
Created wheel for alembic: filename=alembic-1.4.2-py2.py3-none-any.whl size=159543 sha256=298ba2526878708a54b8db0ad2ab5ef05be4438963dd09bec1a50b59c8a15508
Stored in directory: /root/.cache/pip/wheels/70/08/70/cea787a7e95817b831469fa42af076046e55a05f7c94657463
Building wheel for SQLAlchemy (PEP 517): started
Building wheel for SQLAlchemy (PEP 517): finished with status 'done'
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.3.15-cp38-cp38-linux_x86_64.whl size=1183124 sha256=50418d7071fd37b2db91f19a375389422fdc56895072af53df4a6665537d893b
Stored in directory: /root/.cache/pip/wheels/d1/0c/78/33448c81fd8e458d60897744f30462ca39e682637ec9591c0d
Successfully built coverage flask-bcrypt Flask-Testing Blinker alembic SQLAlchemy
Installing collected packages: Werkzeug, coverage, pyflakes, entrypoints, pycodestyle, mccabe, flake8, click, itsdangerous, MarkupSafe, Jinja2, Flask, pycparser, cffi, Six, bcrypt, flask-bcrypt, flask-cors, Blinker, flask-debugtoolbar, SQLAlchemy, python-editor, python-dateutil, Mako, alembic, Flask-SQLAlchemy, flask-migrate, aniso8601, pytz, Flask-RESTful, Flask-Testing, gunicorn, psycopg2-binary, pyjwt
Successfully installed Blinker-1.4 Flask-1.1.1 Flask-RESTful-0.3.7 Flask-SQLAlchemy-2.3.2 Flask-Testing-0.7.1 Jinja2-2.11.1 Mako-1.1.2 MarkupSafe-1.1.1 SQLAlchemy-1.3.15 Six-1.14.0 Werkzeug-0.16.1 alembic-1.4.2 aniso8601-8.0.0 bcrypt-3.1.7 cffi-1.14.0 click-7.1.1 coverage-4.5.3 entrypoints-0.3 flake8-3.7.7 flask-bcrypt-0.7.1 flask-cors-3.0.7 flask-debugtoolbar-0.10.1 flask-migrate-2.4.0 gunicorn-20.0.4 itsdangerous-1.1.0 mccabe-0.6.1 psycopg2-binary-2.8.4 pycodestyle-2.5.0 pycparser-2.20 pyflakes-2.1.1 pyjwt-1.7.1 python-dateutil-2.8.1 python-editor-1.0.4 pytz-2019.3
Removing intermediate container 86fac0967146
---> 24e9fd372978
Step 6/9 : COPY ./entrypoint.sh /usr/src/app/entrypoint-prod.sh
---> a8a8ff286b9a
Step 7/9 : RUN chmod +x /usr/src/app/entrypoint-prod.sh
---> Running in 3e5271e99947
Removing intermediate container 3e5271e99947
---> ed979b6a92d2
Step 8/9 : COPY . /usr/src/app
---> 98ae33e1a57f
Step 9/9 : CMD ["/usr/src/app/entrypoint-prod.sh"]
---> Running in 47ec0411fa6f
Removing intermediate container 47ec0411fa6f
---> aa4f69380842
Successfully built aa4f69380842
Successfully tagged test-driven-users:7cd9fc49
The push refers to repository [274725968600.dkr.ecr.eu-west-2.amazonaws.com/test-driven-users]
84b82b2ee3ff: Preparing
863cf2890ceb: Preparing
863cf2890ceb: Preparing
71378740a723: Preparing
116445b56805: Preparing
3e98b52f064e: Preparing
241d1d8b8b7e: Preparing
fe108eef54ea: Preparing
df4dc71f749c: Preparing
64b4e3ecc0d6: Preparing
bdc3a0723efa: Preparing
f2cb0ecef392: Preparing
241d1d8b8b7e: Waiting
fe108eef54ea: Waiting
df4dc71f749c: Waiting
64b4e3ecc0d6: Waiting
bdc3a0723efa: Waiting
f2cb0ecef392: Waiting
116445b56805: Pushed
863cf2890ceb: Pushed
84b82b2ee3ff: Pushed
3e98b52f064e: Pushed
df4dc71f749c: Layer already exists
64b4e3ecc0d6: Layer already exists
fe108eef54ea: Layer already exists
bdc3a0723efa: Layer already exists
f2cb0ecef392: Layer already exists
71378740a723: Pushed
241d1d8b8b7e: Pushed
production: digest: sha256:f14a77a6e8555ecb29c5d7cd1b1435f2835e43c483ae530ec7e877974bc6b32a size: 2830
Users pushed
Step 1/2 : FROM postgres:12.2-alpine
---> 155381193772
Step 2/2 : ADD create.sql /docker-entrypoint-initdb.d
---> 21a0338e2cd6
Successfully built 21a0338e2cd6
Successfully tagged test-driven-users_db:7cd9fc49
The push refers to repository [274725968600.dkr.ecr.eu-west-2.amazonaws.com/test-driven-users_db]
0d9977ee4514: Preparing
2552a4140be9: Preparing
4a517dd4afb0: Preparing
08185ac708af: Preparing
8c2dd7a8ecdf: Preparing
230e876ebf83: Preparing
fe9df245e483: Preparing
e384dedb3f12: Preparing
5216338b40a7: Preparing
230e876ebf83: Waiting
fe9df245e483: Waiting
e384dedb3f12: Waiting
5216338b40a7: Waiting
2552a4140be9: Layer already exists
4a517dd4afb0: Layer already exists
08185ac708af: Layer already exists
8c2dd7a8ecdf: Layer already exists
230e876ebf83: Layer already exists
fe9df245e483: Layer already exists
e384dedb3f12: Layer already exists
5216338b40a7: Layer already exists
0d9977ee4514: Pushed
production: digest: sha256:8ff80fd2a71f71524ea3c293094099c6d110ad60c5118654bd899a1ef78f8b8f size: 2192
Database pushed
Step 1/20 : FROM node:11.12.0-alpine as builder
---> 09084e4ff58d
Step 2/20 : WORKDIR /usr/src/app
---> Using cache
---> 2a5d0819135f
Step 3/20 : RUN apk add --no-cache --virtual .gyp python make g++
---> Using cache
---> 56864a4e5367
Step 4/20 : ENV PATH /usr/src/app/node_modules/.bin:$PATH
---> Using cache
---> 0e0bf35b6ecc
Step 5/20 : COPY package.json /usr/src/app/package.json
---> 8616da17869a
Step 6/20 : COPY package-lock.json /usr/src/app/package-lock.json
---> 7d43a249c366
Step 7/20 : RUN npm install --no-optional
---> Running in 11527112e824
> cypress#4.1.0 postinstall /usr/src/app/node_modules/cypress
> node index.js --exec install
Installing Cypress (version: 4.1.0)
[11:00:49] Downloading Cypress [started]
[11:00:49] Downloading Cypress 0% 0s [title changed]
…
…
[11:00:51] Downloading Cypress 83% 0s [title changed]
[11:00:51] Downloading Cypress 98% 0s [title changed]
[11:00:52] Downloaded Cypress [title changed]
[11:00:52] Downloaded Cypress [completed]
[11:00:52] Unzipping Cypress [started]
[11:00:53] Unzipping Cypress 0% 0s [title changed]
[11:00:54] Unzipping Cypress 1% 161s [title changed]
[11:00:54] Unzipping Cypress 1% 162s [title changed]
[11:00:54] Unzipping Cypress 1% 163s [title changed]
[11:00:55] Unzipping Cypress 1% 334s [title changed]
[11:00:55] Unzipping Cypress 1% 335s [title changed]
…
…
[11:01:06] Unzipping Cypress 9% 140s [title changed]
[11:01:08] Unzipping Cypress 9% 164s [title changed]
[11:01:08] Unzipping Cypress 100% 0s [title changed]
[11:01:08] Unzipped Cypress [title changed]
[11:01:08] Unzipped Cypress [completed]
[11:01:08] Finishing Installation [started]
[11:01:08] Finished Installation /root/.cache/Cypress/4.1.0 [title changed]
[11:01:08] Finished Installation /root/.cache/Cypress/4.1.0 [completed]
You can now open Cypress by running: node_modules/.bin/cypress open
https://on.cypress.io/installing-cypress
added 2034 packages from 768 contributors and audited 38602 packages in 76.256s
found 1073 vulnerabilities (1058 low, 14 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
Saving cache
00:02
Uploading artifacts for successful job
00:02
Job succeeded
As you can see it exits out with "Job succeeded" with no errors indicating why it couldn't run the other 2 docker images.
Any suggestions ?
Update:
including set -euo pipefail revealed: line 4: GITLAB_PULL_REQUEST: unbound variable
relevant code:
#!/bin/sh
set -euo pipefail
if [ -z "$GITLAB_PULL_REQUEST" ] || [ "$GITLAB_PULL_REQUEST" == "false" ] # <-- LINE 4
then
if [[ "$GITLAB_BRANCH" == "staging" ]]; then
export DOCKER_ENV=stage
elif [[ "$GITLAB_BRANCH" == "production" ]]; then
export DOCKER_ENV=prod
fi
if [ "$GITLAB_BRANCH" == "staging" ] || \
[ "$GITLAB_BRANCH" == "production" ]
then
...
...
You're assuming that the shell script will stop if one of the steps fails. Sadly, shell scripts don't do that: they'll happily keep running even if a command fails.
So it may be that one of the build stages is failing.
For bash, you can do set -euo pipefail to get slightly more reasonable behavior. See http://redsymbol.net/articles/unofficial-bash-strict-mode/ for details.

How to install tensorflow on python installed in linuxbrew (libstdc++.so.6 not found)?

I have the following version of Python installed via linuxbrew on Ubuntu 14.04. But pip gives me the following error when I tried to install tensorflow. Does anybody know whether there is a way to fix the problem?
$ python --version
Python 2.7.14
$ pip install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
I use Python 2 instead of 3. The previous question is about Python 3.
I have also tried this. But it does not work.
$ pip install https://storage.googleapis.com/tensorflow/linux/cpu/debian/jessie/tensorflow-1.9.0rc2-cp27-none-linux_x86_64.whl
Collecting tensorflow==1.9.0rc2 from https://storage.googleapis.com/tensorflow/linux/cpu/debian/jessie/tensorflow-1.9.0rc2-cp27-none-linux_x86_64.whl
Downloading https://storage.googleapis.com/tensorflow/linux/cpu/debian/jessie/tensorflow-1.9.0rc2-cp27-none-linux_x86_64.whl (51.6MB)
100% |████████████████████████████████| 51.6MB 320kB/s
Collecting astor>=0.6.0 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl
Requirement already satisfied: setuptools<=39.1.0 in ./.linuxbrew/lib/python2.7/site-packages (from tensorflow==1.9.0rc2) (36.5.0)
Collecting gast>=0.2.0 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/5c/78/ff794fcae2ce8aa6323e789d1f8b3b7765f601e7702726f430e814822b96/gast-0.2.0.tar.gz
Collecting protobuf>=3.4.0 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/77/78/a7f1ce761e2c738e209857175cd4f90a8562d1bde32868a8cd5290d58926/protobuf-3.6.1-py2.py3-none-any.whl (390kB)
100% |████████████████████████████████| 399kB 5.1MB/s
Requirement already satisfied: six>=1.10.0 in ./.linuxbrew/lib/python2.7/site-packages (from tensorflow==1.9.0rc2) (1.11.0)
Collecting enum34>=1.1.6 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting absl-py>=0.1.6 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/a7/86/67f55488ec68982270142c340cd23cd2408835dc4b24bd1d1f1e114f24c3/absl-py-0.4.1.tar.gz (88kB)
100% |████████████████████████████████| 92kB 5.1MB/s
Collecting backports.weakref>=1.0rc1 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/88/ec/f598b633c3d5ffe267aaada57d961c94fdfa183c5c3ebda2b6d151943db6/backports.weakref-1.0.post1-py2.py3-none-any.whl
Requirement already satisfied: wheel in ./.linuxbrew/lib/python2.7/site-packages (from tensorflow==1.9.0rc2) (0.30.0)
Collecting tensorboard<1.10.0,>=1.9.0 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/d5/98/e2e9d5afbc86cef0b2dd0f4ab791519b9bd305ea207e1e5c2f9a9f2f6da6/tensorboard-1.9.0-py2-none-any.whl (3.3MB)
100% |████████████████████████████████| 3.3MB 3.3MB/s
Requirement already satisfied: numpy>=1.13.3 in ./.linuxbrew/lib/python2.7/site-packages (from tensorflow==1.9.0rc2) (1.14.0)
Collecting mock>=2.0.0 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/e6/35/f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79/mock-2.0.0-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 4.5MB/s
Requirement already satisfied: termcolor>=1.1.0 in ./.linuxbrew/lib/python2.7/site-packages (from tensorflow==1.9.0rc2) (1.1.0)
Collecting grpcio>=1.8.6 (from tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/99/ec/8545ffc34b5d0dca66261dabaa8bc44b93e8e1df3549792d9a5649f507cf/grpcio-1.14.2-cp27-cp27m-manylinux1_x86_64.whl (9.2MB)
100% |████████████████████████████████| 9.2MB 1.7MB/s
Collecting markdown>=2.6.8 (from tensorboard<1.10.0,>=1.9.0->tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
100% |████████████████████████████████| 81kB 5.0MB/s
Requirement already satisfied: futures>=3.1.1; python_version < "3" in ./.linuxbrew/lib/python2.7/site-packages (from tensorboard<1.10.0,>=1.9.0->tensorflow==1.9.0rc2) (3.2.0)
Collecting werkzeug>=0.11.10 (from tensorboard<1.10.0,>=1.9.0->tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
100% |████████████████████████████████| 327kB 5.3MB/s
Collecting funcsigs>=1; python_version < "3.3" (from mock>=2.0.0->tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock>=2.0.0->tensorflow==1.9.0rc2)
Downloading https://files.pythonhosted.org/packages/69/1c/98cba002ed975a91a0294863d9c774cc0ebe38e05bbb65e83314550b1677/pbr-4.2.0-py2.py3-none-any.whl (100kB)
100% |████████████████████████████████| 102kB 6.5MB/s
Building wheels for collected packages: gast, absl-py
Running setup.py bdist_wheel for gast ... done
Stored in directory: /home/py/.cache/pip/wheels/9a/1f/0e/3cde98113222b853e98fc0a8e9924480a3e25f1b4008cedb4f
Running setup.py bdist_wheel for absl-py ... done
Stored in directory: /home/py/.cache/pip/wheels/78/a3/a3/689120b95c26b9a21be6584b4b482b0fda0a1b60efd30af558
Successfully built gast absl-py
Installing collected packages: astor, gast, protobuf, enum34, absl-py, backports.weakref, markdown, werkzeug, tensorboard, funcsigs, pbr, mock, grpcio, tensorflow
Successfully installed absl-py-0.4.1 astor-0.7.1 backports.weakref-1.0.post1 enum34-1.1.6 funcsigs-1.0.2 gast-0.2.0 grpcio-1.14.2 markdown-2.6.11 mock-2.0.0 pbr-4.2.0 protobuf-3.6.1 tensorboard-1.9.0 tensorflow-1.9.0rc2 werkzeug-0.14.1
$ python
Python 2.7.14 (default, Feb 25 2018, 06:50:45)
[GCC 5.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/__init__.py", line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/home/py/.linuxbrew/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
>>>
But the file is available.
$ ls ~/.linuxbrew/lib/libstdc++.so.6
.linuxbrew/lib/libstdc++.so.6

How can I solve this error when install jupyter with python 2.7 in my Windows 10

I installed python 2.7 in Windows 10, and set HOME, PATH environment variables.
Then typed
pip install jupyter
The result is like this:
Collecting jupyter
Using cached jupyter-1.0.0-py2.py3-none-any.whl
Collecting ipykernel (from jupyter)
Using cached ipykernel-4.5.2-py2.py3-none-any.whl
Collecting jupyter-console (from jupyter)
Using cached jupyter_console-5.0.0-py2.py3-none-any.whl
Collecting ipywidgets (from jupyter)
Using cached ipywidgets-5.2.2-py2.py3-none-any.whl
Collecting nbconvert (from jupyter)
Using cached nbconvert-5.0.0-py2.py3-none-any.whl
Collecting notebook (from jupyter)
Using cached notebook-4.3.1-py2.py3-none-any.whl
Collecting qtconsole (from jupyter)
Using cached qtconsole-4.2.1-py2.py3-none-any.whl
Collecting tornado>=4.0 (from ipykernel->jupyter)
Using cached tornado-4.4.2.tar.gz
Collecting jupyter-client (from ipykernel->jupyter)
Using cached jupyter_client-4.4.0-py2.py3-none-any.whl
Collecting ipython>=4.0.0 (from ipykernel->jupyter)
Using cached ipython-5.1.0-py2-none-any.whl
Collecting traitlets>=4.1.0 (from ipykernel->jupyter)
Using cached traitlets-4.3.1-py2.py3-none-any.whl
Collecting prompt-toolkit<2.0.0,>=1.0.0 (from jupyter-console->jupyter)
Using cached prompt_toolkit-1.0.9-py2-none-any.whl
Collecting pygments (from jupyter-console->jupyter)
Using cached Pygments-2.1.3-py2.py3-none-any.whl
Collecting widgetsnbextension>=1.2.6 (from ipywidgets->jupyter)
Using cached widgetsnbextension-1.2.6-py2.py3-none-any.whl
Collecting testpath (from nbconvert->jupyter)
Using cached testpath-0.3-py2.py3-none-any.whl
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter)
Using cached pandocfilters-1.4.1.tar.gz
Collecting jinja2 (from nbconvert->jupyter)
Using cached Jinja2-2.9.4-py2.py3-none-any.whl
Collecting jupyter-core (from nbconvert->jupyter)
Using cached jupyter_core-4.2.1-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter)
Using cached bleach-1.5.0-py2.py3-none-any.whl
Collecting mistune!=0.6 (from nbconvert->jupyter)
Using cached mistune-0.7.3-py2.py3-none-any.whl
Collecting nbformat (from nbconvert->jupyter)
Using cached nbformat-4.2.0-py2.py3-none-any.whl
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter)
Using cached entrypoints-0.2.2-py2.py3-none-any.whl
Collecting ipython-genutils (from notebook->jupyter)
Using cached ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting singledispatch (from tornado>=4.0->ipykernel->jupyter)
Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado>=4.0->ipykernel->jupyter)
Using cached certifi-2016.9.26-py2.py3-none-any.whl
Collecting backports_abc>=0.4 (from tornado>=4.0->ipykernel->jupyter)
Using cached backports_abc-0.5-py2.py3-none-any.whl
Collecting pyzmq>=13 (from jupyter-client->ipykernel->jupyter)
Using cached pyzmq-16.0.2-cp27-cp27m-win32.whl
Collecting win-unicode-console>=0.5; sys_platform == "win32" (from ipython>=4.0.0->ipykernel->jupyter)
Using cached win_unicode_console-0.5.zip
Collecting pickleshare (from ipython>=4.0.0->ipykernel->jupyter)
Using cached pickleshare-0.7.4-py2.py3-none-any.whl
Collecting decorator (from ipython>=4.0.0->ipykernel->jupyter)
Using cached decorator-4.0.10-py2.py3-none-any.whl
Collecting backports.shutil-get-terminal-size; python_version == "2.7" (from ipython>=4.0.0->ipykernel->jupyter)
Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=18.5 in c:\python27\lib\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Collecting pathlib2; python_version == "2.7" or python_version == "3.3" (from ipython>=4.0.0->ipykernel->jupyter)
Using cached pathlib2-2.2.0-py2.py3-none-any.whl
Collecting simplegeneric>0.8 (from ipython>=4.0.0->ipykernel->jupyter)
Using cached simplegeneric-0.8.1.zip
Collecting colorama; sys_platform == "win32" (from ipython>=4.0.0->ipykernel->jupyter)
Using cached colorama-0.3.7-py2.py3-none-any.whl
Collecting enum34; python_version == "2.7" (from traitlets>=4.1.0->ipykernel->jupyter)
Using cached enum34-1.1.6-py2-none-any.whl
Collecting six (from traitlets>=4.1.0->ipykernel->jupyter)
Using cached six-1.10.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
Using cached wcwidth-0.1.7-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2->nbconvert->jupyter)
Using cached MarkupSafe-0.23.tar.gz
Collecting html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 (from bleach->nbconvert->jupyter)
Using cached html5lib-0.9999999.tar.gz
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat->nbconvert->jupyter)
Using cached jsonschema-2.5.1-py2.py3-none-any.whl
Collecting configparser>=3.5; python_version == "2.7" (from entrypoints>=0.2.2->nbconvert->jupyter)
Using cached configparser-3.5.0.tar.gz
Collecting scandir (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython>=4.0.0->ipykernel->jupyter)
Using cached scandir-1.4.zip
Exception:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\python27\lib\site-packages\pip\commands\install.py", line 324, in run
requirement_set.prepare_files(finder)
File "c:\python27\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "c:\python27\lib\site-packages\pip\req\req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "c:\python27\lib\site-packages\pip\download.py", line 821, in unpack_url
hashes=hashes
File "c:\python27\lib\site-packages\pip\download.py", line 663, in unpack_http_url
unpack_file(from_path, location, content_type, link)
File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 599, in unpack_file
flatten=not filename.endswith('.whl')
File "c:\python27\lib\site-packages\pip\utils\__init__.py", line 499, in unzip_file
fp = open(fn, 'wb')
IOError: [Errno 22] invalid mode ('wb') or filename: 'c:\\users\\wonhee\\appdata\\local\\temp\\pip-build-o9imsa\\scandir\\test/testdir/subdir/unicod\xc6\x8f.txt
I don't know about the errno 22.
Please give me some solutions for this problem. Thank you
I think your main problem is of 'scandir' package.
Actually, I had same problem as you, and I solved that the way as below.
you need to install 'scandir' package manually.
go to here: https://pypi.python.org/pypi/scandir
and download 'scandir-1.4.zip (md5)', and unzip it
open cmd, and go to directory where 'scandir-1.4' folder is
type 'python setup.py install'
after finishing install, try again to install jupyter
cheers.
In my case, the scandir install was failing because I hadn't installed python dev tools
sudo apt-get install python-dev
To install scandir without a binary package, use an official binary package of scandir from http://www.lfd.uci.edu/~gohlke/
Then run (e.g.)
pip install scandir‑1.5‑cp27‑cp27m‑win32.whl