python-m pip install fullrmc --upgradeimport pdbparser
import fullrmcfrom __future__ import print_function
import sys
print(sys.path)
import pdbparser
print(pdbparser)
import fullrmc
print(fullrmc)
print(fullrmc.get_version())
['', '/env/python', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/local/lib/python2.7/dist-packages/IPython/extensions', '/root/.ipython'] <module 'pdbparser' from '/usr/local/lib/python2.7/dist-packages/pdbparser/__init__.pyc'>
ImportErrorTraceback (most recent call last)
<ipython-input-3-060a7db6cbf4> in <module>() 7 print(pdbparser) 8 ----> 9 import fullrmc 10 print(fullrmc) 11 print(fullrmc.get_version())
/usr/local/lib/python2.7/dist-packages/fullrmc/__init__.py in <module>() 322 # import package info 323 from __pkginfo__ import __version__, __author__, __email__, __onlinedoc__, __repository__, __pypi__ --> 324 from Engine import Engine 325 326 def get_version():
/usr/local/lib/python2.7/dist-packages/fullrmc/Engine.py in <module>() 25 except: 26 import pickle ---> 27 from pdbParser.pdbParser import pdbParser 28 from pdbParser.Utilities.BoundaryConditions import InfiniteBoundaries, PeriodicBoundaries 29 from pyrep import Repository
ImportError: No module named pdbParser.pdbParser
When I use conda list to see the version of the fullrmc, it says that I have fullrmc version 3.3.0.Andy
Hi, everyone,
I believe what you have is the improper environment setting. You may install those packages or modules, but you or Anaconda does not configure them properly so you get those error/warning message.
Here is my experience. Hope it would be helpful. I have to point out that I am new to fullRMC. If I say something wrong or silly, please forgive me.
I use fullRMC on Linux system. I was struggling the conflicts and issues of file/module not found. Finally, I noticed that I did not figure out the Python environment properly. DO NOT USE CONDA TO UPDATE OR INSTALL fullRMC AND REQUIRED PACKAGES. If you did, you would receive the error message you had.
Just remind, fullRMC requires Python (>= 2.7 and < 3).
Here is what I did on Linux. I believe it is same thing for Windows.
“conda env list” # check what kind of environment you are using
“conda create --name=py27 python=2.7” #create python 2.7 environment
“conda activate py27” #activate py27 environment, install everything based in this environment
For Windows, I guess you need add those path into your environment in a similar way. Please google it.
e.g. Andy’s computer cannot find pdbParser. You can check your anaconda2 directory. For me, it looks like “…/apps/anaconda2/lib/python2.7/site-packages/pdbParser”. If you could not find it, try to find it and copy or move it to this directory. Or you can add the path to your *.pth file.
Good Luck,
Liaoyuan (Leon) Wang
python -m pip install 'pdbParser==0.1.5'
import sys
print(sys.path)
Okay, so this works. Both with and without anaconda. I can now import fullrmc, however when I try to run a script I get the following error regarding 'ACID'. This is from my spyder console, but same error other places as well.
Thank you for the help so far.
python -m pip install 'pyrep==1.0.4'I uploaded fullrmc 4.0 earlier than i what i anticipated for you all because there some discrepancy in the libraries version.
To avoid any conflict, install it with python 3 and test it out. I added more features and fixed some bugs of previous versions.
Regards