maxscheurer / pycontact

Analysis of non-covalent interactions in MD trajectories
https://pycontact.github.io/
GNU General Public License v3.0
51 stars 12 forks source link

'DistanceSelection' is not defined #98

Closed almeida85 closed 8 months ago

almeida85 commented 8 months ago

Hello,

I installed PyContact and I got this error:

Traceback (most recent call last):
  File "/opt/anaconda3/bin/pycontact", line 33, in <module>
    sys.exit(load_entry_point('pycontact==1.0.5', 'console_scripts', 'pycontact')())
  File "/opt/anaconda3/bin/pycontact", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/opt/anaconda3/lib/python3.9/importlib/metadata.py", line 86, in load
    module = import_module(match.group('module'))
  File "/opt/anaconda3/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/pycontact.py", line 11, in <module>
    from .gui.MainWindow import MainWindow
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/gui/MainWindow.py", line 18, in <module>
    from .SasaWidgets import SasaWidget
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/gui/SasaWidgets.py", line 17, in <module>
    from .Dialogues import TopoTrajLoaderDialog
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/gui/Dialogues.py", line 8, in <module>
    from PyContact.core.ContactAnalyzer import Analyzer
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/core/ContactAnalyzer.py", line 20, in <module>
    from .aroundPatch import AroundSelection
  File "/opt/anaconda3/lib/python3.9/site-packages/PyContact/core/aroundPatch.py", line 14, in <module>
    class AroundSelection(DistanceSelection):
NameError: name 'DistanceSelection' is not defined

Any help will be appreciated.

Best regards