insilichem / pychimera

Use UCSF Chimera Python API in a standard interpreter
http://pychimera.readthedocs.io
GNU Lesser General Public License v3.0
57 stars 10 forks source link

output of pychimera --gui #12

Closed UnixJunkie closed 5 years ago

UnixJunkie commented 5 years ago
# pip install pychimera
Collecting pychimera
Installing collected packages: pychimera
Successfully installed pychimera-0.2.6
# pychimera --gui
Traceback (most recent call last):
  File "/home/berenger/.local/bin/pychimera", line 11, in <module>
    import pychimera.__main__
ImportError: No module named pychimera.__main__
# python --version
Python 2.7.15rc1
jaimergp commented 5 years ago

Hi!

Thanks for the report! I cannot reproduce in my system (Arch Linux + conda), so we'll try to guess what is happening here. For some reason the executable script cannot locate the pychimera package, so it might be a misconfigured environment.

I would need:

Also, you might be able to use python -m pychimera instead of pychimera, but we should resolve the other issue first.

Thanks, Jaime.

UnixJunkie commented 5 years ago
# cat /etc/issue
Ubuntu 18.04.1 LTS
UnixJunkie commented 5 years ago
# pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
UnixJunkie commented 5 years ago
echo $PATH
/home/myuser/.opam/4.06.1/bin:/home/myuser/.gem/ruby/2.3.0/bin:/home/myuser/bin\
:/home/myuser/bin:/home/myuser/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/s\
bin:/usr/bin:/sbin:/bin    
UnixJunkie commented 5 years ago

PYTHONPATH is empty. Should it be set to something?

jaimergp commented 5 years ago

Ok, I think I have a fresh Ubuntu VM somewhere, so I will try to reproduce the error there. I think this might be related to the pip hacks Ubuntu uses for user installations. The environment variables look OK. Did you manage to run python -m pychimera? Also, it would be very useful if you could run this Python call:

python -c "import pychimera, sys; sys.stdout.write(str(pychimera.__path__)+'\n')"

I'll keep you up to date.

jaimergp commented 5 years ago

I have managed to reproduce your error: pychimera works, but pychimera --gui does not. A fix should be available soon... I hope :)

jaimergp commented 5 years ago

Ok, I think this will fix it.

Tests are passing in my local installation; let's see how it goes at Travis.

Please let me know if it works for you. You will have to install it from source like this:

pip uninstall pychimera
pip install https://github.com/insilichem/pychimera/archive/master.zip
UnixJunkie commented 5 years ago

Thanks a lot, amazing time to a working fix and excellent user support. Now, pychimera --gui works!

jaimergp commented 5 years ago

Glad you got it working! I will cut a new release (v0.2.7, I think) after confirming this also works in other systems.

Thanks again for the report and patience to test it!