Ubuntu 16.04
Python 3.6
I meet the same issue:
At first, I install Py3.5 which is not compatible for RASA so I install Py3.6 and re-link python3 and pip3 in /usr/bin, I can run 'rasa init' and 'rasa shell' smoothly, but when I run 'rasa x', this issue will occur:
scrooge@scrooge-X455LD:~/RASA$ rasa x
Traceback (most recent call last):
File "/usr/local/bin/rasa", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/rasa/main.py", line 76, in main
cmdline_arguments.func(cmdline_arguments)
File "/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py", line 291, in rasa_x
run_locally(args)
File "/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py", line 379, in run_locally
from rasax.community import local # pytype: disable=import-error
File "/usr/local/lib/python3.6/dist-packages/rasax/community/local.py", line 13, in
import rasax.community.jwt
File "/usr/local/lib/python3.6/dist-packages/rasax/community/jwt.py", line 5, in
from jwt import InvalidSignatureError
ImportError: cannot import name 'InvalidSignatureError'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 23, in
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "/usr/local/bin/rasa", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/rasa/main.py", line 76, in main
cmdline_arguments.func(cmdline_arguments)
File "/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py", line 291, in rasa_x
run_locally(args)
File "/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py", line 379, in run_locally
from rasax.community import local # pytype: disable=import-error
File "/usr/local/lib/python3.6/dist-packages/rasax/community/local.py", line 13, in
import rasax.community.jwt
File "/usr/local/lib/python3.6/dist-packages/rasax/community/jwt.py", line 5, in
from jwt import InvalidSignatureError
ImportError: cannot import name 'InvalidSignatureError'