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

Can't install #71

Closed
flakobatako opened this issue Jul 23, 2019 · 1 comment
Closed

Can't install #71

flakobatako opened this issue Jul 23, 2019 · 1 comment

Comments

@flakobatako
Copy link

flakobatako commented Jul 23, 2019

When i try to install via the command:

$ pip3 install pyInquirer

i get this output.

I tried it on a AWS EC2 machine and on my local Linux Mint distro. I trieded with an without venv.

WARNING: The directory '/home/diego/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/diego/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pyInquirer
Downloading https://files.pythonhosted.org/packages/fb/4c/434b7c454010a284b49d6f1d446fe8dc5960415613d8c0225b9e2efb6724/PyInquirer-1.0.3.tar.gz
Collecting prompt_toolkit==1.0.14 (from pyInquirer)
Downloading https://files.pythonhosted.org/packages/ee/3d/b25d35a9f0d381dd1c02d8e04b37c353caaaff4bc32150328eeebe4931f5/prompt_toolkit-1.0.14-py3-none-any.whl (248kB)
|################################| 256kB 2.4MB/s
Collecting Pygments>=2.2.0 (from pyInquirer)
Downloading https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl (883kB)
|################################| 890kB 8.8MB/s
Collecting regex>=2016.11.21 (from pyInquirer)
Downloading https://files.pythonhosted.org/packages/6f/4e/1b178c38c9a1a184288f72065a65ca01f3154df43c6ad898624149b8b4e0/regex-2019.06.08.tar.gz (651kB)
|################################| 655kB 7.4MB/s
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.6/dist-packages (from prompt_toolkit==1.0.14->pyInquirer) (1.12.0)
Collecting wcwidth (from prompt_toolkit==1.0.14->pyInquirer)
Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Building wheels for collected packages: pyInquirer, regex
Building wheel for pyInquirer (setup.py) ... done
Stored in directory: /home/diego/.cache/pip/wheels/52/6c/b1/3e4b0e8daf42a92883c7641c0ea8ffb62e0490ebed2faa55ad
Building wheel for regex (setup.py) ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-v63o8y01/regex/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 /tmp/pip-wheel-i3ad1518 --python-tag cp36:
ERROR: BASE_DIR is /tmp/pip-install-v63o8y01/regex
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing '2019.06.08' to '2019.6.8'
normalized_version,
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/init.py -> build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/regex.py -> build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/_regex_core.py -> build/lib.linux-x86_64-3.6/regex
creating build/lib.linux-x86_64-3.6/regex/test
copying regex_3/regex/test/init.py -> build/lib.linux-x86_64-3.6/regex/test
copying regex_3/regex/test/test_regex.py -> build/lib.linux-x86_64-3.6/regex/test
running build_ext
building 'regex._regex' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/regex_3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.6/regex_3/_regex.o
regex_3/_regex.c:48:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for regex
Running setup.py clean for regex
Successfully built pyInquirer
Failed to build regex
Installing collected packages: wcwidth, prompt-toolkit, Pygments, regex, pyInquirer
Running setup.py install for regex ... error
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-v63o8y01/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-y3f_y9gi/install-record.txt --single-version-externally-managed --compile:
ERROR: BASE_DIR is /tmp/pip-install-v63o8y01/regex
/usr/local/lib/python3.6/dist-packages/setuptools/dist.py:475: UserWarning: Normalizing '2019.06.08' to '2019.6.8'
normalized_version,
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/init.py -> build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/regex.py -> build/lib.linux-x86_64-3.6/regex
copying regex_3/regex/_regex_core.py -> build/lib.linux-x86_64-3.6/regex
creating build/lib.linux-x86_64-3.6/regex/test
copying regex_3/regex/test/init.py -> build/lib.linux-x86_64-3.6/regex/test
copying regex_3/regex/test/test_regex.py -> build/lib.linux-x86_64-3.6/regex/test
running build_ext
building 'regex._regex' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/regex_3
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.6/regex_3/_regex.o
regex_3/_regex.c:48:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-v63o8y01/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-y3f_y9gi/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-v63o8y01/regex/

@flakobatako
Copy link
Author

Never mind i finally got it working.

Problem was regex not pyInquirer. I was missing the python-dev libraries.

But if it's a requirement for the project you should make more evident that python development libraries are necesary in setup instructions for Linux users.

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

No branches or pull requests

1 participant