为什么我不能开始pymol?

时间:2016-05-07 22:44:40

标签: python pymol

我试图运行生物技术软件pymol。它无法找到cmd.py模块。但是,它位于$ PYTHONPATH中的目录中。

[mzhKU_work] @ modules $ python launch_pymol.py 
Traceback (most recent call last):
  File "launch_pymol.py", line 32, in <module>
    import pymol
  File "/Users/mzhKU_work/software/pymol/modules/pymol/__init__.py", line 521, in <module>
    import pymol._cmd
ImportError: No module named _cmd

[mzhKU_work] @ modules $ ls ./pymol/
__init__.py          exporting.py         opengl
__init__.pyc         externing.py         parser.py
api.py               feedingback.py       parsing.py
callback.py          fitting.py           plugins
cgo.py               gui.py               povray.py
checking.py          gui.pyc              preset.py
cmd.py               headering.py         querying.py
cmd.pyc              helping.py           rpc.py
colorramping.py      importing.py         selecting.py
commanding.py        internal.py          selector.py
completing.py        invocation.py        setting.py
computing.py         invocation.pyc       shortcut.py
constants.py         keyboard.py          util.py
constants_palette.py keywords.py          vfont.py
contrib              locking.py           viewing.py
controlling.py       m4x.py               wizard
creating.py          menu.py              wizarding.py
editing.py           monitoring.py        xray.py
editor.py            morphing.py          xwin.py
embed                movie.py             xwin.pyc
experimenting.py     moving.py

[mzhKU_work] @ modules $ echo $PYTHONPATH
[...]/Users/mzhKU_work/software/pymol/modules:/Users/mzhKU_work/software/pymol/modules/pymol:/Users/[...]
[mzhKU_work] @ modules $ 

可能是什么问题?

1 个答案:

答案 0 :(得分:0)

它尝试导入的模块是_cmd,而不是cmd

您的问题看起来像是库中的错误,您可以尝试向开发人员报告。

作为临时解决方案,您可以将cmd.py复制到_cmd.py