Ubuntu 16.04
蟒蛇 3.6
我遇到了同样的问题:
起初,我安装了与 RASA 不兼容的 Py3.5,所以我安装了 Py3.6 并在 /usr/bin 中重新链接 python3 和 pip3,我可以顺利运行“rasa init”和“rasa shell”,但是当我运行'rasa x',就会出现这个问题:
scrooge@scrooge-X455LD:~/RASA$ rasa x
回溯(最近一次通话最后):
文件“/usr/local/bin/rasa”,第 8 行,在
sys.exit(main())
文件“/usr/local/lib/python3.6/dist-packages/rasa/main .py”,第 76 行,在main
cmdline_arguments.func(cmdline_arguments)
文件“/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”,第 291 行,在 rasa_x
run_locally(args)
文件“/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”,第 379 行,在 run_locally
from rasax.community import local # pytype: disable=import-error
文件“/usr/local/lib/python3.6/dist-packages/rasax/community/local.py”,第 13 行,在
import rasax.community.jwt
文件“/usr/local/lib/python3.6/dist-packages/rasax/community/jwt.py”,第 5 行,在
from jwt import InvalidSignatureError
ImportError:无法导入名称“InvalidSignatureError”
sys.excepthook 中的错误:
回溯(最近一次通话最后):
文件“/usr/lib/python3/dist-packages/apport_python_hook.py”,第 63 行,在 apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
文件“/usr/lib/python3/dist-packages/apport/ init .py”,第 5 行,在
from apport.report import Report
文件“/usr/lib/python3/dist-packages/apport/report.py”,第 30 行,在
import apport.fileutils
文件“/usr/lib/python3/dist-packages/apport/fileutils.py”,第 23 行,在
from apport.packaging_impl import impl as packaging
文件“/usr/lib/python3/dist-packages/apport/packaging_impl.py”,第 23 行,在
import apt
文件“ /usr/lib/python3/dist-packages/apt/init.py ”,第 23 行,在
import apt_pkg
ModuleNotFoundError:没有名为“apt_pkg”的模块
原来的例外是:
回溯(最近一次通话最后):
文件“/usr/local/bin/rasa”,第 8 行,在
sys.exit(main())
文件“/usr/local/lib/python3.6/dist-packages/rasa/main .py”,第 76 行,在main
cmdline_arguments.func(cmdline_arguments)
文件“/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”,第 291 行,在 rasa_x
run_locally(args)
文件“/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”,第 379 行,在 run_locally
from rasax.community import local # pytype: disable=import-error
文件“/usr/local/lib/python3.6/dist-packages/rasax/community/local.py”,第 13 行,在
import rasax.community.jwt
文件“/usr/local/lib/python3.6/dist-packages/rasax/community/jwt.py”,第 5 行,在
from jwt import InvalidSignatureError
ImportError:无法导入名称“InvalidSignatureError”