Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named 'requests_toolbelt'

So, I'm trying to upload my python app to heroku but when I use a script with 'requests_toolbelt' it says is not found.

Here my log:

Traceback (most recent call last):
  File "girl.py", line 12, in <module>
    from Coffe import CoffeAPI
  File "/app/CoffeAPI/__init__.py", line 29, in <module>
    from requests_toolbelt import MultipartEncoder
ImportError: No module named 'requests_toolbelt'

Here my requeriments.txt:

requests-toolbelt==0.7.1
moviepy==0.2.2.11
requests==2.13.0

Do I need an specific buildpack to run 'requests_toolbelt'?

like image 770
Isaac Avatar asked Jul 08 '17 22:07

Isaac


1 Answers

Try installing requests-toolbelt. Use below command to do that.

# pip install requests-toolbelt
like image 175
Pawan Avatar answered Oct 21 '22 18:10

Pawan