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

/usr/bin/python: No module named hypercoordinator #32

Closed
Meai1 opened this issue Apr 25, 2012 · 4 comments
Closed

/usr/bin/python: No module named hypercoordinator #32

Meai1 opened this issue Apr 25, 2012 · 4 comments

Comments

@Meai1
Copy link

Meai1 commented Apr 25, 2012

I tried to start with ./hyperdex-coordinator -?, but I get the aforementioned error message. I also tried the command in the tutorial: hyperdex-coordinator --control-port 6970 --host-port 1234 --logging debug
As far as I understand, this should work? I installed all the prerequisites (they got installed into /usr/local/lib64), although I'm a little confused about the fact that the link to libpopt here http://hyperdex.org/download/ leads to rpm5. I have libpopt0 installed though, I'm on opensuse 12.1.
I installed hyperdex from the tarball into a folder in my home directory.

also more, I tried to start the daemon anyway: Where does hyperdex look for the libraries? ./hyperdex-daemon: error while loading shared libraries: libcityhash.so.0: cannot open shared object file: No such file or directory
It's installed into /usr/local/lib64

@rescrv
Copy link
Owner

rescrv commented Apr 25, 2012

Can you provide me more details about the install method you used? I'd appreciate if you could attach your config.log from building.

The hypercoordinator code is all in Python. If they were installed in /usr/local/lib64, we'll need to verify that Python indeed looks there. Here's how I did that on my system:

>>> import sys
>>> sys.path
['', '/usr/lib/python2.6/dist-packages/tyrs-0.6.1-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
 '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL',
 '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0']

Popt was developed by the rpm folks, and I understand that it lives with rpm5.

HyperDex uses the normal shared library mechanisms of whatever platform it is installed on. The last error happens occasionally, and can be fixed with ldconfig. I am looking for a fix for this, so if you have any insight, I'd appreciate it.

@Meai1
Copy link
Author

Meai1 commented Apr 25, 2012

Here is my config.log: https://gist.github.com/6c77e09dffbb2b0209f6

I don't know python, but I know how to load shared libraries in c on Linux so I had a look. The makefile created by the autotools is pretty large, as far as I can tell, the line E_LIBS = -L/usr/local/lib64 -le seems to only include the "e" library for some reason, after I added -lglog -lcityhash, there was no error anymore and I got a few info files from ./hyperdex-daemon

I still don't know what to do about the python stuff:

>>> import sys
>>> sys.path
['', '/usr/lib/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', 
'/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/local/lib64/python2.7/site-packages', '/usr/local/lib/python2.7/site-packages',
 '/usr/lib64/python2.7/site-packages/gst-0.10', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

@smfaisal
Copy link

I'm also having the same problem on a 64bit machine running Ubuntu 10.04 :(

"/usr/bin/python: No module named hypercoordinator"

@Meai1
Copy link
Author

Meai1 commented Apr 25, 2012

Ok, it was just a few python issues now, but I think I got it running and I'll close the issue. You just have to add the hypercoordinator folder inside the site-packages from your hyperdex installation directory to the python path like so, in my case:
export PYTHONPATH=$PYTHONPATH:/home/pc/Programming/Databases/hyperdex/lib/python2.7/site-packages
(to your .bashrc of course)
After that it errors out with "no module named pyparsing". I downloaded that from sourceforge and installed it, now it seems to be running and I can continue with the tutorial.

@Meai1 Meai1 closed this as completed Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants