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

Learn / Install django-server repository #13

Open
ermsdev opened this issue Nov 14, 2019 · 2 comments
Open

Learn / Install django-server repository #13

ermsdev opened this issue Nov 14, 2019 · 2 comments

Comments

@ermsdev
Copy link
Member

ermsdev commented Nov 14, 2019

No description provided.

@ermsdev
Copy link
Member Author

ermsdev commented Nov 14, 2019

We ran into errors with pipenv install while following the readme. the answer found here (pypa/pipenv#3873 (comment)) solved my installation, but didn't help @kadensu. The error on mine was

Installing dependencies from Pipfile.lock (4026e9)…
An error occurred while installing mysqlclient==1.3.13 --hash=sha256:ff8ee1be84215e6c30a746b728c41eb0701a46ca76e343af445b35ce6250644f! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 11/11 — 00:00:11
Installing initially failed dependencies…
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1874, in do_install
[pipenv.exceptions.InstallError]:       keep_outdated=keep_outdated
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 1253, in do_init
[pipenv.exceptions.InstallError]:       pypi_mirror=pypi_mirror,
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 859, in do_install_dependencies
[pipenv.exceptions.InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 763, in batch_install
[pipenv.exceptions.InstallError]:       _cleanup_procs(procs, not blocking, failed_deps_queue, retry=retry)
[pipenv.exceptions.InstallError]:   File "/usr/local/lib/python3.7/site-packages/pipenv/core.py", line 681, in _cleanup_procs
[pipenv.exceptions.InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: ['Collecting mysqlclient==1.3.13', '  Using cached https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz', 'Building wheels for collected packages: mysqlclient', '  Building wheel for mysqlclient (setup.py): started', "  Building wheel for mysqlclient (setup.py): finished with status 'error'", '  Running setup.py clean for mysqlclient', 'Failed to build mysqlclient', 'Installing collected packages: mysqlclient', '    Running setup.py install for mysqlclient: started', "    Running setup.py install for mysqlclient: finished with status 'error'"]
[pipenv.exceptions.InstallError]: ['ERROR: Command errored out with exit status 1:', '   command: /Users/stephen/.local/share/virtualenvs/django-server-1920-ErPVZzkP/bin/python3.7 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\'; __file__=\'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' bdist_wheel -d /private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-wheel-qgfi1neu --python-tag cp37', '       cwd: /private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/', '  Complete output (72 lines):', '  running bdist_wheel', '  running build', '  running build_py', '  creating build', '  creating build/lib.macosx-10.13-x86_64-3.7', '  copying _mysql_exceptions.py -> build/lib.macosx-10.13-x86_64-3.7', '  creating build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/compat.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/connections.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/converters.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/cursors.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/release.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  copying MySQLdb/times.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '  creating build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/CR.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/ER.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '  warning: build_py: byte-compiling is disabled, skipping.', '  ', '  running build_ext', "  building '_mysql' extension", '  creating build/temp.macosx-10.13-x86_64-3.7', "  clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Dversion_info=(1,3,13,'final',0) -D__version__=1.3.13 -I/usr/local/Cellar/mysql/8.0.15/include/mysql -I/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c _mysql.c -o build/temp.macosx-10.13-x86_64-3.7/_mysql.o", "  _mysql.c:257:6: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                          s = PyUnicode_AsUTF8(item);', '                            ^ ~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:287:6: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                          s = PyUnicode_AsUTF8(item);', '                            ^ ~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:564:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                  _stringsuck(ca, value, ssl);', '                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:553:16: note: expanded from macro '_stringsuck'", '          if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                 ^~~~~~~~~~~~~~~~~~~~', "  _mysql.c:565:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                  _stringsuck(capath, value, ssl);', '                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:553:16: note: expanded from macro '_stringsuck'", '          if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                 ^~~~~~~~~~~~~~~~~~~~', "  _mysql.c:566:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                  _stringsuck(cert, value, ssl);', '                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:553:16: note: expanded from macro '_stringsuck'", '          if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                 ^~~~~~~~~~~~~~~~~~~~', "  _mysql.c:567:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                  _stringsuck(key, value, ssl);', '                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:553:16: note: expanded from macro '_stringsuck'", '          if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                 ^~~~~~~~~~~~~~~~~~~~', "  _mysql.c:568:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                  _stringsuck(cipher, value, ssl);', '                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "  _mysql.c:553:16: note: expanded from macro '_stringsuck'", '          if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                 ^~~~~~~~~~~~~~~~~~~~', "  _mysql.c:2530:8: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '          cname = PyUnicode_AsUTF8(name);', '                ^ ~~~~~~~~~~~~~~~~~~~~~~', '  8 warnings generated.', '  clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/_mysql.o -L/usr/local/Cellar/mysql/8.0.15/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-3.7/_mysql.cpython-37m-darwin.so', '  ld: library not found for -lssl', '  clang: error: linker command failed with exit code 1 (use -v to see invocation)', "  error: command 'clang' failed with exit status 1", '  ----------------------------------------', '  ERROR: Failed building wheel for mysqlclient', '    ERROR: Command errored out with exit status 1:', '     command: /Users/stephen/.local/share/virtualenvs/django-server-1920-ErPVZzkP/bin/python3.7 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\'; __file__=\'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-record-2_n_kfca/install-record.txt --single-version-externally-managed --compile --install-headers /Users/stephen/.local/share/virtualenvs/django-server-1920-ErPVZzkP/bin/../include/site/python3.7/mysqlclient', '         cwd: /private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/', '    Complete output (72 lines):', '    running install', '    running build', '    running build_py', '    creating build', '    creating build/lib.macosx-10.13-x86_64-3.7', '    copying _mysql_exceptions.py -> build/lib.macosx-10.13-x86_64-3.7', '    creating build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/compat.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/connections.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/converters.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/cursors.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/release.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    copying MySQLdb/times.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb', '    creating build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/CR.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/ER.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.13-x86_64-3.7/MySQLdb/constants', '    warning: build_py: byte-compiling is disabled, skipping.', '    ', '    running build_ext', "    building '_mysql' extension", '    creating build/temp.macosx-10.13-x86_64-3.7', "    clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -Dversion_info=(1,3,13,'final',0) -D__version__=1.3.13 -I/usr/local/Cellar/mysql/8.0.15/include/mysql -I/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c _mysql.c -o build/temp.macosx-10.13-x86_64-3.7/_mysql.o", "    _mysql.c:257:6: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                            s = PyUnicode_AsUTF8(item);', '                              ^ ~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:287:6: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                            s = PyUnicode_AsUTF8(item);', '                              ^ ~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:564:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                    _stringsuck(ca, value, ssl);', '                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:553:16: note: expanded from macro '_stringsuck'", '            if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                   ^~~~~~~~~~~~~~~~~~~~', "    _mysql.c:565:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                    _stringsuck(capath, value, ssl);', '                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:553:16: note: expanded from macro '_stringsuck'", '            if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                   ^~~~~~~~~~~~~~~~~~~~', "    _mysql.c:566:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                    _stringsuck(cert, value, ssl);', '                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:553:16: note: expanded from macro '_stringsuck'", '            if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                   ^~~~~~~~~~~~~~~~~~~~', "    _mysql.c:567:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                    _stringsuck(key, value, ssl);', '                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:553:16: note: expanded from macro '_stringsuck'", '            if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                   ^~~~~~~~~~~~~~~~~~~~', "    _mysql.c:568:3: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '                    _stringsuck(cipher, value, ssl);', '                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~', "    _mysql.c:553:16: note: expanded from macro '_stringsuck'", '            if(t){d=PyUnicode_AsUTF8(t);ssl_keepref[n_ssl_keepref++]=t;}\\', '                   ^~~~~~~~~~~~~~~~~~~~', "    _mysql.c:2530:8: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]", '            cname = PyUnicode_AsUTF8(name);', '                  ^ ~~~~~~~~~~~~~~~~~~~~~~', '    8 warnings generated.', '    clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/_mysql.o -L/usr/local/Cellar/mysql/8.0.15/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-3.7/_mysql.cpython-37m-darwin.so', '    ld: library not found for -lssl', '    clang: error: linker command failed with exit code 1 (use -v to see invocation)', "    error: command 'clang' failed with exit status 1", '    ----------------------------------------', 'ERROR: Command errored out with exit status 1: /Users/stephen/.local/share/virtualenvs/django-server-1920-ErPVZzkP/bin/python3.7 -u -c \'import sys, setuptools, tokenize; sys.argv[0] = \'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\'; __file__=\'"\'"\'/private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-install-dhq7zhkx/mysqlclient/setup.py\'"\'"\';f=getattr(tokenize, \'"\'"\'open\'"\'"\', open)(__file__);code=f.read().replace(\'"\'"\'\\r\\n\'"\'"\', \'"\'"\'\\n\'"\'"\');f.close();exec(compile(code, __file__, \'"\'"\'exec\'"\'"\'))\' install --record /private/var/folders/rd/23gq_rxn59sct5z48n2v1rvw0000gn/T/pip-record-2_n_kfca/install-record.txt --single-version-externally-managed --compile --install-headers /Users/stephen/.local/share/virtualenvs/django-server-1920-ErPVZzkP/bin/../include/site/python3.7/mysqlclient Check the logs for full command output.']

@ermsdev
Copy link
Member Author

ermsdev commented Nov 14, 2019

For @kadensu the xcode-select path was pointing to an xcode installation that wasn't there instead of the xcode command line tools. based on (https://stackoverflow.com/questions/11456918/change-xcrun-developer-path) we changed it to /Library/Developer/CommandLineTools and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant