Hi Katie, I'm not 100% an expert on the vagaries of the Python import mechanism, but here are a few thing to check/try:
1) Make sure your ui subfolder has an __init__.py file in it.
2) Try importing the package first, i.e.:
import AmberLipidBundle.ui
from AmberLipidBundle.ui.lipid_form import xxx
3) Use a relative import rather than an absolute import, i.e.:
from .ui.lipid_form import xxx
I've got my fingers crossed that one of those does the trick. :-)
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
Hi all,
I am currently working on a membrane builder bundle called AmberLipidBundle. I have folder './src/ui' (containing several .py files, e.g. lipid_form.py) and I import it inside .py files with the line 'from AmberLipidBundle.ui.lipid_form import xxx'.
I have been testing the bundle using the command 'devel build [path]' and everything works fine. But when I switch to the command 'devel install [path]', I get an error:
chimerax.core.toolshed.ToolshedError: start_tool() failed for tool Membrane Builder in bundle AmberLipidBundle:
No module named 'AmberLipidBundle.ui'
Do you have any idea how to fix this? Thank you so much for your help!
_______________________________________________ChimeraX-users mailing listChimeraX-users@cgl.ucsf.eduManage subscription:https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users