在我通过 ppa 在我的 Ubuntu 14.04lts Svr 上添加了 Maas 的稳定版本并进行升级后,在导入其图像文件时使用以下命令:
$: sudo maas-import-pxe-files
我收到以下错误:
Traceback (most recent call last):
File "/usr/sbin/maas-import-pxe-files", line 18, in <module>
from provisioningserver.import_images.boot_resources import (
File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 35, in <module>
from provisioningserver.boot import BootMethodRegistry
File "/usr/lib/python2.7/dist-packages/provisioningserver/boot/__init__.py", line 30, in <module>
from provisioningserver.kernel_opts import compose_kernel_command_line
File "/usr/lib/python2.7/dist-packages/provisioningserver/kernel_opts.py", line 24, in <module>
from provisioningserver.driver import ArchitectureRegistry
File "/usr/lib/python2.7/dist-packages/provisioningserver/driver/__init__.py", line 27, in <module>
from provisioningserver.utils.registry import Registry
File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/__init__.py", line 57, in <module>
from crochet import run_in_reactor
ImportError: No module named crochet
同时,无需升级它就可以完美运行。有没有人遇到过和我同样的问题并解决了?
提前感谢您的支持和任何其他建议。
答案1
它缺少依赖项 - python-crochet。我遇到过类似的问题,通过这样做解决了。有关解决方案的更多信息,请访问https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1311765。