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

pip install -r requirements.txt fails #4526

Closed
hobbes3 opened this issue Aug 22, 2016 · 2 comments
Closed

pip install -r requirements.txt fails #4526

hobbes3 opened this issue Aug 22, 2016 · 2 comments

Comments

@hobbes3
Copy link

hobbes3 commented Aug 22, 2016

Expected Behavior

pip install -r requirements.txt should succeed.

Actual Behavior

It fails instead.

Your FULL config.json (remove your username, password, gmapkey and any other private info)

This is a fresh install before even creating a config.conf

Output when issue occurred

The logs are huuuge, so I'll just include the last few pages:

x86_64-linux-gnu-gcc: numpy/linalg/lapack_lite/zlapack_lite.c

numpy/linalg/lapack_lite/zlapack_lite.c: In function ‘zlaed7_’:

numpy/linalg/lapack_lite/zlapack_lite.c:10000:59: warning: variable ‘ind2’ set but not used [-Wunused-but-set-variable]

    static integer i__, k, n1, n2, iq, iw, iz, ptr, ind1, ind2, indx, curr,

                                                        ^

numpy/linalg/lapack_lite/zlapack_lite.c:10000:53: warning: variable ‘ind1’ set but not used [-Wunused-but-set-variable]

    static integer i__, k, n1, n2, iq, iw, iz, ptr, ind1, ind2, indx, curr,

                                                    ^

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/linalg/umath_linalg.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/zlapack_lite.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/dlapack_lite.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/blas_lite.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/dlamch.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/f2c_lite.o -Lbuild/temp.linux-x86_64-2.7 -lnpymath -o build/lib.linux-x86_64-2.7/numpy/linalg/_umath_linalg.so

building 'numpy.random.mtrand' extension

compiling C sources

C compiler: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC



creating build/temp.linux-x86_64-2.7/numpy/random

creating build/temp.linux-x86_64-2.7/numpy/random/mtrand

compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -c'

x86_64-linux-gnu-gcc: numpy/random/mtrand/distributions.c

x86_64-linux-gnu-gcc: numpy/random/mtrand/mtrand.c

x86_64-linux-gnu-gcc: numpy/random/mtrand/initarray.c

x86_64-linux-gnu-gcc: numpy/random/mtrand/randomkit.c

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/numpy/random/mtrand/mtrand.o build/temp.linux-x86_64-2.7/numpy/random/mtrand/randomkit.o build/temp.linux-x86_64-2.7/numpy/random/mtrand/initarray.o build/temp.linux-x86_64-2.7/numpy/random/mtrand/distributions.o -Lbuild/temp.linux-x86_64-2.7 -o build/lib.linux-x86_64-2.7/numpy/random/mtrand.so

running build_scripts

creating build/scripts.linux-x86_64-2.7

Creating build/scripts.linux-x86_64-2.7/f2py

adding 'build/scripts.linux-x86_64-2.7/f2py' to scripts

changing mode of build/scripts.linux-x86_64-2.7/f2py from 644 to 755

running install_lib

creating /usr/local/lib/python2.7/dist-packages/numpy

error: could not create '/usr/local/lib/python2.7/dist-packages/numpy': Permission denied

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-h9I6AI/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-JkZNbv-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-h9I6AI/numpy
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 248, in main
    return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)

Steps to Reproduce

git clone -b dev https://github.com/PokemonGoF/PokemonGo-Bot.git
sudo apt-get install build-essential autoconf libtool pkg-config make python2.7-dev wget git
pyenv local 2.7.12
cd PokemonGo-Bot
pip install -r requirements.txt

Other Information

OS: Debian 8.1

Branch: dev

Git Commit: 695ca70

Python Version: 2.7.12

Any other relevant files/configs (eg: path files)

Short Description

Possible solution

How it would help others

@supergithubo
Copy link

Try to run it as root sudo

@hobbes3
Copy link
Author

hobbes3 commented Aug 22, 2016

It turned out my Python was still using system python since I did su pokemon instead of su - pokemon and pyenv was undefined. I fixed it now.

@hobbes3 hobbes3 closed this as completed Aug 22, 2016
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

2 participants