error message while running

0 votes

The following is a script to call an API. But I am getting the following error message while running it:

Traceback (most recent call last):
  File "user_audit.py", line 2, in <module>
    import requests
  File "c:\Python27\lib\site-packages\requests\__init__.py", line 60, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
  File "c:\Python27\lib\site-packages\requests\packages\__init__.py", line 29, in <module>
    import urllib3
ImportError: No module named urllib3
 

I've confirmed that packages is up to date, tried uninstalling and reinstalling it, but nothing has worked so far. Can someone help?

Feb 25, 2019 in Apache Kafka by nguyen
• 120 points
91 views

1 answer to this question.

+1 vote

Ideally, installing the urllib3 module should solve this error. I am not sure how you installed it so I am posting the command to install urllib3 which helped me solve this error:

$ pip install urllib3

If you used the same command to install and you are still getting this error, please provide more info: code, Operating System, Python version, etc. 

answered Feb 25, 2019 by Omkar
• 69,030 points

Related Questions In Apache Kafka

0 votes
1 answer

Re-balancing error while reading messages from Kafka.

rebalance.backoff.ms defines the time for which Kafka ...READ MORE

answered Jul 9, 2018 in Apache Kafka by Shubham
• 13,450 points
1,166 views
0 votes
1 answer

How to commit message offsets in Kafka for reliable data pipeline?

You can use auto.commit.enable to allow Kafka ...READ MORE

answered Jul 9, 2018 in Apache Kafka by Shubham
• 13,450 points
1,064 views
0 votes
1 answer
0 votes
1 answer

error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

Hi@akhtar, This error occurs because zookeeper is running already. So ...READ MORE

answered Mar 31 in Apache Kafka by MD
• 56,260 points
126 views
0 votes
1 answer

Error: kafka/Kafka : Unsupported major.minor version 52.0

Hi@akhtar, As the above error shows that the ...READ MORE

answered Mar 31 in Apache Kafka by MD
• 56,260 points
323 views
0 votes
1 answer

Error: pass --path /path/to/confluent flag or set environment variable CONFLUENT_HOME

Hi@akhtar, Before starting confluent kafka in your system, ...READ MORE

answered Apr 3 in Apache Kafka by MD
• 56,260 points
345 views
+2 votes
2 answers

Getting error in schema-registry start command

It is working for me with below ...READ MORE

answered Sep 30, 2019 in Apache Kafka by Brajkishore
• 220 points
1,186 views