-
-
Notifications
You must be signed in to change notification settings - Fork 571
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 fails on fresh ubuntu 16.04 instance #1463
Comments
@dankegel thank you ++ for this detailed report and sorry for that. I guess this is why I like bundled deps ... that said this needs to be fixed alright. FWIW the icu-dev issue is fairly new and there is a bug reported there. pudo/normality#6 (comment) |
jarco replied, and pointed out that ubuntu 16.04's pip ignores metadata that would avoid the problem. |
@dankegel :on ubuntu,I tried first time on fresh system on py3.6, it working fine .But after (second time) that it says segmentation fault(core dumped).But after installing pipev.It works fine.Last line is omitted that "scancode-tookit installed sucessfully." |
The core dump is because the system pip in ubuntu 18.04 and earlier interacts poorly with simplejson, see #1464 |
I forgot to mention one other failure symptom on Ubuntu 18.04:
This is caused by having an old configparser installed, see If this happens to you, and you're on Ubuntu 18.04, you can get a fixed configparser from https://launchpad.net/~dank/+archive/ubuntu/python-fixes/ |
…utcode-org#1463 Signed-off-by: Dan Kegel <[email protected]>
…rg#1463 Signed-off-by: Dan Kegel <[email protected]>
yeah, this bug is pretty broad. I should have written a couple tighter bugs with just one failure mode each. |
@dankegel that's OK. Eventually that's the issue that need to be ultimately solved! |
The supported OS/Python versions have changed quite a bit and I think this is no longer relevant. |
While pip is not the main install method preferred by the scancode authors,
it's still an important mainstream way to distribute python code, so we should
keep it working.
Trying it on a fresh ubuntu 16.04 instance fails at the moment, e.g.
i.e. there's a missing native package that can't be installed by pip. That's easy to work around:
That succeeds, but note:
That's not going to end well, since more-itertools dropped support for python 2.7,
and indeed:
Filed jaraco/jaraco.functools#10 and
jaraco/jaraco.functools#11 for that.
That's also not too hard to work around:
And that goes swimmingly, using up 1.3 gigabytes of RAM as expected :-)
So, the proper action is probably to wait a while for jaraco.functools to push a fixed version to pypi. If they don't, we could paper over the problem by adding a dependency spec in scancode's setup.{cfg,py}.
Oh, and maybe we could have a line of code to hint to users they need to install native libicu-dev, written generally enough to apply regardless of distro.
The text was updated successfully, but these errors were encountered: