HydraChain / hydrachain

Permissioned Distributed Ledger based on Ethereum
MIT License
358 stars 105 forks source link

hydrachain installation problem #55

Open ripulbd opened 8 years ago

ripulbd commented 8 years ago

Hi,

I am trying to install the hydrachain in my ubuntu desktop. It does not seem to install and it aborts with the following error messages:


Linking /tmp/easy_install-9Px6h2/gevent-1.1b3/build/lib.linux-x86_64-2.7/gevent/_util.so to /tmp/easy_install-9Px6h2/gevent-1.1b3/gevent/_util.so File "build/bdist.linux-x86_64/egg/gevent/_socket3.py", line 164 def makefile(self, mode="r", buffering=None, *, ^ SyntaxError: invalid syntax

creating /usr/local/lib/python2.7/dist-packages/gevent-1.1b3-py2.7-linux-x86_64.egg Extracting gevent-1.1b3-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/dist-packages File "/usr/local/lib/python2.7/dist-packages/gevent-1.1b3-py2.7-linux-x86_64.egg/gevent/_socket3.py", line 164 def makefile(self, mode="r", buffering=None, *, ^ SyntaxError: invalid syntax

Adding gevent 1.1b3 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/gevent-1.1b3-py2.7-linux-x86_64.egg error: gevent 1.1b3 is installed but gevent==1.1rc3 is required by set(['devp2p'])


I installed the gevent==1.1rc3 to resolve the issue with no success.

Any idea why it might happen?

Thanks in advance, Ripul

ezdac commented 8 years ago

It's a dependency collision with pyethapp,which is why the gevent 1.1b3 gets installed even if you reinstalled the desired version for hydrachain. If time is pressing, a workaround here would be to pull pyethapp and change the requirements.txt to gevent==1.1rc3 and then install pyethapp inside your python installation/environment via the python setup.py develop command. Proceed with caution, because this could introduce problems in pyethapp and be aware that it changes the way pyethapp is referenced inside of your site-packages (check pip list before and after). As always, this is highly recommended inside a virtualenv(+wrapper). This will work natively without the hassle, once this is evaluated and the requirements are changed. For other questions, please also check the gitter-channel

ripulbd commented 8 years ago

Many thanks for the suggestion. It seems to have resolved the issue.