ImportError: cannot import name 'InvalidSignatureError'

Installed rasa x as per Installation and Setup

Got the following error when i ran rasa x

rasa x /usr/local/lib/python3.6/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters Traceback (most recent call last): File “/usr/local/bin/rasa”, line 11, 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 290, in rasa_x run_locally(args) File “/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”, line 370, 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 11, 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’

Any help ?

Hi @kkbrat9,

which exact version of rasa / rasa x are you running ? Could you do a pip list and share the result here?

Hi,

I’m currently facing the same problem and it seems like pyJWT is not up to date (1.5.3 instead of 1.7.1) and pip doesn’t want to update it to the last version.

Does someone know hos to force it ?

Thanks.

Thanks all, i am able to get it working now.

@BenChab, upgrading pyJWT to 1.7.1 worked. Here is how i did it.

pip3 install --no-cache-dir -I PyJWT==1.7.1

1 Like

Worked for me too ! Thanks.

Hi, I have the same error. I upgraded PyJWT to 1.7.1 - but the error remains. Is there any other reason for this error?

Thx, Uli

Traceback (most recent call last): File “/usr/local/bin/rasa”, line 11, 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 290, in rasa_x run_locally(args) File “/usr/local/lib/python3.6/dist-packages/rasa/cli/x.py”, line 370, 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 11, 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’

pip3 ls shows PyJWT (1.7.1)