patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

Issue with json_formatter.py #34

Closed jacknicoludis closed 5 years ago

jacknicoludis commented 5 years ago

Screen Shot 2019-05-07 at 11 30 03 AM I installed python2.7 from conda. I used conda to install openbabel (conda install openbabel) and pip2 to install imolecule (pip2 install imolecule). When I go to /anaconda2/lib/python2.7/site-packages/imolecule/ the json_formatter.py file is there. Any other suggestions?

patrickfuller commented 5 years ago

I tried to reproduce but couldn't in python2 or 3.

conda create -n py27 python=2.7
conda activate py27
pip install imolecule
python -c "import imolecule"  # works

For help, I only have guesses. Maybe you named another file imolecule.py and the namespacing is messing up? Maybe changing that line to from imolecule import json_formatter as json helps?

Sorry I can't be of more help.

jacknicoludis commented 5 years ago

Thanks for trying. I ended up uninstalling conda and redownloading and setting my environment to 2.7 and it worked.