Closed Manoj1229 closed 3 years ago
What is the output of rasa --version
and pip show twilio
?
@hsm207 Here are the rasa --version and Twilio
Rasa Version
Rasa Version : 2.8.2
Minimum Compatible Version: 2.8.0
Rasa SDK Version : 2.8.1
Rasa X Version : 0.42.0
Python Version : 3.8.11
Operating System : Windows-10-10.0.19042-SP0
Twilio
Name: twilio
Version: 6.50.1
Summary: Twilio API client and TwiML generator
Home-page: https://github.com/twilio/twilio-python/
Author: Twilio
Author-email: help@twilio.com
License: UNKNOWN
Requires: six, pytz, requests, PyJWT
Required-by: rasa
What is the Location where the twilio package is installed?
e.g.
Name: twilio
Version: 6.50.1
Summary: Twilio API client and TwiML generator
Home-page: https://github.com/twilio/twilio-python/
Author: Twilio
Author-email: help@twilio.com
License: UNKNOWN
Location: /opt/venv/lib/python3.8/site-packages
Requires: PyJWT, pytz, six, requests
Required-by: rasa
Location: c:\users\A v1\anaconda3\envs\rasa\lib\site-packages
Do you get the same error when you train the bot using rasa init
?
Do you get the same error when you train the bot using
rasa init
?
I didn't check with rasa init
.
Let me try and know you.
Do you get the same error when you train the bot using
rasa init
?
Yes @hsm207 getting the same Twilio issue
@Manoj1229 what is the output of:
python -c "from twilio.base import *; import sys; print(sys.path)"
python -c "from twilio.base import *; import sys; print(sys.path)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'twilio.base'
What if you run:
python -c "import sys; print(sys.path)"
python -c "import sys; print(sys.path)"
['', 'C:\\Users\\AppsTek V1\\anaconda3\\envs\\rasa\\python38.zip', 'C:\\Users\\AppsTek V1\\anaconda3\\envs\\rasa\\DLLs', 'C:\\Users\\AppsTek V1\\anaconda3\\envs\\rasa\\lib', 'C:\\Users\\AppsTek V1\\anaconda3\\envs\\rasa', 'C:\\Users\\AppsTek V1\\AppData\\Roaming\\Python\\Python38\\site-packages', 'C:\\Users\\AppsTek V1\\anaconda3\\envs\\rasa\\lib\\site-packages']
I see you have installed twilio at c:\users\A v1\anaconda3\envs\rasa\lib\site-packages
but that path is not in your sys.path.
I see you have installed twilio at
c:\users\A v1\anaconda3\envs\rasa\lib\site-packages
but that path is not in your sys.path.
Both are same, It my mistake typo here c:\users\AppsTek V1\anaconda3\envs\rasa\lib\site-packages
I see you have installed twilio at
c:\users\A v1\anaconda3\envs\rasa\lib\site-packages
but that path is not in your sys.path.Both are same, It my mistake typo here
c:\users\AppsTek V1\anaconda3\envs\rasa\lib\site-packages
Here the overview pip show Twilio
:
Name: twilio
Version: 6.50.1
Summary: Twilio API client and TwiML generator
Home-page: https://github.com/twilio/twilio-python/
Author: Twilio
Author-email: help@twilio.com
License: UNKNOWN
Location: c:\users\AppsTek V1\anaconda3\envs\rasa\lib\site-packages
Requires: PyJWT, requests, pytz, six
Required-by: rasa
Can you try running this command:
python -c "import twilio; print(twilio.__file__)"
python -c "import twilio; print(twilio.file)"
C:\Users\AppsTek V1\anaconda3\envs\rasa\lib\site-packages\twilio\__init__.py
python -c "import twilio; print(twilio.file)"
This is not the command I asked you to run. Was there a typo?
Anyway, what is the content of this folder?
C:\Users\AppsTek V1\anaconda3\envs\rasa\lib\site-packages\twilio
@hsm207 The Issue is solved! downgrade the Twilio version to 6.26
Getting an issue on
rasa train