Philipp Kratzsch
Philipp Kratzsch

Reputation: 13

ImportError: cannot import name parse_url for slackclient

I'm trying to create a slackbot for my raspberry pi. I got it to work on my MacBook, but on the raspberry pi the slackclient is causing issues. I have manually installed it and installed it using 'pip'. Both times I get errors that are pointed at the installation file. I've attached a screenshot of the exact errors I get when running the python code.

enter image description here

Upvotes: 0

Views: 1164

Answers (1)

Alasdair
Alasdair

Reputation: 309099

It looks as if you might have an old version of requests installed.

If you installed requests with pip, you could try upgrading:

pip install --upgrade requests

If you installed requests using apt or apt-get then I would avoid trying to upgrade with pip. Try creating a virtual environment and installing requests there.

Upvotes: 1

Related Questions