Closed lcupellini closed 4 years ago
Thanks for the report.
Please note that MDAnalysis is at 0.20.1 and 0.16.2 is pretty old – please update. (0.20.1 supports Python 2.7).
I tried it with
>>> import MDAnalysis
>>> MDAnalysis.__version__
'0.20.1'
and RotamerConvolve 1.3.0 and I don't get the error – it just works as expected
>>> import rotcon.library
>>> rotcon.library.RotamerLibrary('MTSSL 298K 2015')
<RotamerLibrary 'MTSSL 298K 2015' by Gunnar Jeschke with 216 rotamers>
Did you try with MDAnalysis 0.20.1 and does your error persist, @lcupellini ?
Thank you @orbeckst for the response.
I have investigated the error, which appears whenever I want to use as a library a dcd file in my current working directory (I was copying the library dcd files in my directory). The error persists in version 0.20.1
The exception is thrown in the find_file
fundtion in library.py
, at line 54
if os.path.exists(filename):
return MDAnalysis.core.util.realpath(filename)
You can reproduce the error by creating any file (e.g. test.txt
) in your current working directory, then doing:
>>> import MDAnalysis, rotcon.library
>>> MDAnalysis.__version__
'0.20.1'
>>> rotcon.library.find_file('test.txt')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/software/amber18/miniconda/envs/rotcon/lib/python2.7/site-packages/rotcon/library.py", line 64, in find_file
return MDAnalysis.core.util.realpath(filename)
AttributeError: 'module' object has no attribute 'util'
Of course, that line of code is not reached unless you search for a file in your current directory.
Ok, thanks for the detailed description. I could reproduce the failure. I am pushing a fix.
@lcupellini if you install from source then this issue should be fixed.
Hello, I'm running rotamerConvolveMD 1.3.0 under Linux OpenSuse with python 2.7
I have installed the latest MDAnalysis (0.16.2) with conda, and then rotamerConvolveMD 1.3.0 with pip.
When trying to run convolve-mtss-rotamers.py, there is the following exception in
rotcon/library.py
:I could fix the exception and run the script by adding
after the import of MDAnalysis