I keep getting the error “ImportError: cannot import name ApiClient”
when I try to import the module with “from ubidots import ApiClient”
Install log :
c:\Python27\Scripts>pip install ubidots==1.6.5
Collecting ubidots==1.6.5
Downloading ubidots-1.6.5.tar.gz
Requirement already satisfied: requests>=2.5.1 in c:\python27\lib\site-packages (from ubidots==1.6.5)
Installing collected packages: ubidots
Found existing installation: ubidots 1.6.6
Uninstalling ubidots-1.6.6:
Successfully uninstalled ubidots-1.6.6
Running setup.py install for ubidots … done
Successfully installed ubidots-1.6.5
Is module installed ? → Yes…
pip freeze command gives :
c:\Python27\Scripts>pip freeze
appdirs==1.4.3
attrs==16.3.0
Automat==0.5.0
constantly==15.1.0
incremental==16.10.1
packaging==16.8
pymodbus==1.2.0
pyparsing==2.2.0
pyserial==3.3
requests==2.13.0
six==1.10.0
Twisted==17.1.0
ubidots==1.6.6
zope.interface==4.3.3
c:\Python27\Scripts>
Dubbelcheck with help(“modules”) command in python :
help(“modules ubidots”)
Here is a list of matching modules. Enter any module name to get more help.
ubidots
Trying to import module with
c:\Python27>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
from ubidots import ApiClient
Traceback (most recent call last):
File “”, line 1, in
File “ubidots.py”, line 9, in
from ubidots import ApiClient
ImportError: cannot import name ApiClient
Files are installed :
c:\Python27\Lib\site-packages\ubidots>dir
Volume in drive C has no label.
Volume Serial Number is 5463-B5AA
Directory of c:\Python27\Lib\site-packages\ubidots
28/03/2017 14:14 .
28/03/2017 14:14 …
28/03/2017 14:14 17.154 apiclient.py
28/03/2017 14:14 24.587 apiclient.pyc
28/03/2017 14:14 973 init.py
28/03/2017 14:14 1.533 init.pyc
4 File(s) 44.247 bytes
2 Dir(s) 56.497.758.208 bytes free
So i’m stuck on such a basic thing
Tried :
uninstalled it, reinstalled it, installed older version (1.6.5),…no luck
UPDATE: the same procedure works on pyton3 though, not on python 2.7