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

i run pip install gnureadline==6.3.3 in environment throws an error below #2667

Closed
srinu-dipl opened this issue Apr 9, 2015 · 8 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@srinu-dipl
Copy link

/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)

@pfmoore
Copy link
Member

pfmoore commented Apr 9, 2015

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.

@rbtcollins
Copy link

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.

@srinu-dipl
Copy link
Author

pip version (1.5.4)

@rbtcollins
Copy link

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.

@srinu-dipl
Copy link
Author

yes,i upgrade the pip and i run pip install gnureadline==6.3.3 and throws an error
/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

@pfmoore
Copy link
Member

pfmoore commented Apr 9, 2015

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).

@rbtcollins
Copy link

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.

@dstufft
Copy link
Member

dstufft commented Apr 17, 2015

Ok, this isn't a pip bug so I'm going to go ahead and close it.

@dstufft dstufft closed this as completed Apr 17, 2015
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

4 participants