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
i run pip install gnureadline==6.3.3 in environment throws an error below #2667
Comments
Please provide the command you ran, details of your environment, and versions of pip and setuptools you are using. From a first glance, it looks like either a packaging bug in the gnureadline project, or you don't have ncurses installed and gnureadline requires it to build. |
This is a unicode / ascii bug in pip. We need the pip version to help track it down. The gnureadline error is merely exposing the bug. |
pip version (1.5.4) |
ok, so thats ancient. Please upgrade your pip and then try again - if the unicodedecodeerror still occurs, we'll look into it. You'll still need to install the needed libraries separately of course. |
yes,i upgrade the pip and i run pip install gnureadline==6.3.3 and throws an error |
So the pip ascii/unicode issue seems to have been resolved in the latest version, which is good. The error seems to imply you don't have ncurses. Maybe it's some development package you need to install? Sorry, I can't be more specific as I don't really know Unix that well (and the details would depend on your particular distribution). |
Yup - the remaining issue isn't a pip bug. The problem you have is that the gnureadline python package depends on C libraries, which pip doesn't have any mechanism for handling. So install the ncurses library and it should go better. |
Ok, this isn't a pip bug so I'm going to go ahead and close it. |
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Cleaning up...
Command /home/administrator/projects/rapidpro/env/bin/python -c "import setuptools, tokenize;file='/home/administrator/projects/rapidpro/env/build/gnureadline/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-LVKdd7-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/administrator/projects/rapidpro/env/include/site/python2.7 failed with error code 1 in /home/administrator/projects/rapidpro/env/build/gnureadline
Traceback (most recent call last):
File "/home/administrator/projects/rapidpro/env/bin/pip", line 11, in
sys.exit(main())
File "/home/administrator/projects/rapidpro/env/local/lib/python2.7/site-packages/pip/init.py", line 185, in main
return command.main(cmd_args)
File "/home/administrator/projects/rapidpro/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 66: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: