2

我正在尝试运行生物技术软件 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 $ 

可能是什么问题呢?

4

1 回答 1

1

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

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

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

于 2016-05-07T22:49:15.817 回答