On Jul 22, 2024, at 2:53 AM, ishaanawasthi05--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX Team,
I'm trying to use the ChimeraX API in python to automate some analysis. My code is not executing due to some missing/failed imports inside the ChimeraX module.
File "/opt/anaconda3/lib/python3.11/site-packages/chimerax/core/models.py", line 54, in <module>
from chimerax.graphics import Drawing, Pick, PickedTriangle
ModuleNotFoundError: No module named 'chimerax.graphics'
In the same file (models.py) there are also problems with this:
"from .state import State"
Together they are being used in the following class definition:
class Model(State, Drawing):
"""
A Model is a :class:`.Drawing` together with an id number
that allows it to be referenced in a typed command.
....
"""
I haven't been able to find any information on what these imports are, why they are missing, or how to resolve this issue. I also don't know if there are more missing imports, as it keeps failing here. I would appreciate your support in getting the Chimerax API to work — if this is the wrong place to ask, please do point me toward the right forum for ChimeraX.
Thanks so much for the help!
_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/