Hi all, I have problem when installation ubidots for python 2.7 at raspberry pi.
I have tried the following command in the terminal
$ sudo pip install ubidots
and this is
Downloading/unpacking ubidots
Cleaning up…
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 194, in find_requirement
page = self._get_page(main_index_url, req)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 568, in _get_page
session=self.session,
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 694, in get_page
req, link, “connection error: %s” % exc, url,
TypeError: str returned non-string (type Error)
Storing debug log for failure in /root/.pip/pip.log
please help! thanks!
Hi!
I just installed Ubidots library in my Raspberry Pi and it installed without problems. I think this is an error related to pip, could you please do some of the steps below:
Reinstall pip (I’ll suppose that you use Raspbian or any Debian derivative for Raspberry Pi.)
sudo apt-get remove python-pip && sudo apt-get install python-pip
Try to install the ubidots library again
sudo pip install ubidots
If the error happens again, can you please publish the debug log that pip saves in /root/.pip/pip.log? So I can help you with more detailed data.
Regards.
Hi! Thanks for your reply!
Here my log
usr/local/bin/pip run on Fri May 27 16:24:12 2016
Downloading/unpacking ubidots
Getting page Links for ubidots
Cleaning up…
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 194, in find_requirement
page = self._get_page(main_index_url, req)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 568, in _get_page
session=self.session,
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 694, in get_page
req, link, “connection error: %s” % exc, url,
TypeError: str returned non-string (type Error)
Can you check the output of:
pip --version
And then if it’s different than pip 8.1.2 update it with:
pip install -U pip
And then try again to download the library.
thanks juanda95! I was solved this problem with
git clone