pycontact icon indicating copy to clipboard operation
pycontact copied to clipboard

Error: No module named 'MDAnalysis.core.Selection'

Open neginsafaei opened this issue 3 years ago • 4 comments

Hello I have installed Pycontact with the mentioned installation commands but I got the following error and I have Python 3 installed in my laptop also I can not find the zip file (pycontact-develop). I would be so thankful If you could help me.

pycontact Traceback (most recent call last): File "/home/safaei/anaconda3/bin/pycontact", line 5, in from PyContact.pycontact import main File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/pycontact.py", line 11, in from .gui.MainWindow import MainWindow File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/gui/MainWindow.py", line 18, in from .SasaWidgets import SasaWidget File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/gui/SasaWidgets.py", line 17, in from .Dialogues import TopoTrajLoaderDialog File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/gui/Dialogues.py", line 8, in from PyContact.core.ContactAnalyzer import Analyzer File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/core/ContactAnalyzer.py", line 20, in from .aroundPatch import AroundSelection File "/home/safaei/anaconda3/lib/python3.8/site-packages/PyContact/core/aroundPatch.py", line 7, in from MDAnalysis.core.Selection import * ModuleNotFoundError: No module named 'MDAnalysis.core.Selection'

Thanks a lot Negin Safaee

neginsafaei avatar Jul 21 '22 08:07 neginsafaei

edit: following the fix here (https://github.com/maxscheurer/pycontact/issues/81) worked wonderfully. If you're looking for the development zip, go here: https://github.com/maxscheurer/pycontact

and make sure the drop down menu on the left hand side of your screen says develop. That way when you download the zip from the code dropdown, it's the correct one.

rjdespo avatar Aug 10 '22 16:08 rjdespo

Thanks @rjdespo for linking the related issue! I'm sorry the installation often causes this problem, which is due to the fact that I have not had the chance to thoroughly maintain this repo anymore..

maxscheurer avatar Aug 10 '22 22:08 maxscheurer

Using the development zip doesn't fix the problem. I still receive the same error. Is there any other way around to fix this? Thanks

danko057 avatar May 09 '23 11:05 danko057

If you get the exact same error, you're still using an older version of PyContact. The culprit file has been removed more than two years ago 😄 Probably your environment still has an old version around and the re-install didn't update that one? (Explained also in #81.)

maxscheurer avatar May 09 '23 20:05 maxscheurer