adafruit / Adafruit_IO_Python

Adafruit IO Python Client Library
Other
225 stars 99 forks source link

Can't import Adafruit_IO -- ImportError: cannot import name MQTTClient #31

Closed bubba198 closed 6 years ago

bubba198 commented 7 years ago

Traceback (most recent call last): File "./mqtt.py", line 9, in from Adafruit_IO import MQTTClient File "/usr/local/lib/python2.7/dist-packages/Adafruit_IO/init.py", line 21, in from .client import Client File "/usr/local/lib/python2.7/dist-packages/Adafruit_IO/client.py", line 23, in import requests File "/usr/lib/python2.7/dist-packages/requests/init.py", line 80, in from . import utils File "/usr/lib/python2.7/dist-packages/requests/utils.py", line 25, in from .compat import parse_http_list as _parse_list_header File "/usr/lib/python2.7/dist-packages/requests/compat.py", line 91, in import cookielib File "/usr/lib/python2.7/cookielib.py", line 32, in import re, urlparse, copy, time, urllib File "/home/chip/copy.py", line 9, in from Adafruit_IO import MQTTClient ImportError: cannot import name MQTTClient

brentru commented 6 years ago

This has been fixed in the latest Adafruit IO Python client. Please update your Python version =>3