ShipChain / hydra

Centralized network management for decentralized networks -- helping organize and publish sidechain connection details
https://docs.shipchain.io/docs/validatorGuide.html
Apache License 2.0
8 stars 2 forks source link

Segfault after pip install #17

Closed leewardbound closed 5 years ago

leewardbound commented 5 years ago

Not always, but sometimes, when doing either hydra client update or pip install git+.../hydra.git, at the end of the install process on Ubuntu 18.04, there's a segmentation fault.

It seems to be a non-issue, except for the scary warning message, because the package installs correctly and pip has completely cleaned up.

My best guess is that this is problem upstream in maybe the Cement library, because our pip install process is fairly vanilla from their template, but I can't find any other references to the issue on their bug tracker.

ajhodges commented 5 years ago

I wanna say we decided this happens when you try to update when you're already up to date? Something weird like that.

leewardbound commented 5 years ago

I expect it has a 50-50 chance to disappear when we switch to pypi for distribution anyhow, I'm quite unconcerned with it, just wanted some documentation of it here

ajhodges commented 5 years ago

I believe this is related to this issue: https://github.com/pypa/pip/issues/5366

Updating pip fixes this - but I'm not finding a 'good' way to upgrade ubuntu's system 'pip3', that we've been recommending people to use. Looks like it's stuck at pip==9.0.1. If we try to upgrade the debian pip, the pip3 command breaks.

Potential solutions:

leewardbound commented 5 years ago

Honestly I'm tempted to choose #5, not our bug not our problem, but do feel free to add whatever makes you happy to the validator install guide

ajhodges commented 5 years ago

I think we're going to say that anyone encountering this issue should use sudo pip3 install --upgrade pip to resolve it. But if you are using python for other things on your server, please be aware of the implications - you'll be effectively breaking the debian python3-pip package.

ajhodges commented 5 years ago

New recommendation: sudo apt remove python3-pip curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py --user

This avoids any permission issues when installing hydra.