install fails error:cannot uninstall "pyserial"

I have clean installed raspbian
pi 3b+
ppp installed
python is 2.7.13
have updated and upgraded
but hologram install always stops at

Found existing instalation: pyserial 3.2.1
"ERROR:Cannot uninstall ‘pyserial’.

have clean loaded raspbian
have uninstalled python3
uninstalled python2 and reinstalled

ideas?

update
tried sudo pip install hologram-python
also says the same message

tried this command before sdk install today for another website
sudo apt-get install git git-core build-essential python-dev python-openssl python-smbus python3-pip python-pip screen

with a new pi i am getting this text also had this with the old one the first few times
if anyone want to see the error

100% |████████████████████████████████| 92kB 633kB/s
Collecting wcwidth (from pytest~=4.6.5->hologram-python)
Downloading https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting atomicwrites>=1.0 (from pytest~=4.6.5->hologram-python)
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 353, in run
wb.build(autobuilding=True)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 554, in _prepare_file
require_hashes
File “/usr/lib/python2.7/dist-packages/pip/req/req_install.py”, line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 568, in _get_pages
page = self._get_page(location)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 792, in get_page
“Cache-Control”: “max-age=600”,
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 501, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py”, line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py”, line 423, in send
timeout=timeout
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py”, line 315, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’
pi@raspberrypi:~ $

Are you using this command to install the SDK?

curl -L hologram.io/python-install | bash

yes

Are you using Jessie or Stretch (Raspbian version)?

cat /etc/os-release

you can also this to manually install the version they are asking for:

pip2 install pyserial==3.3

says stretch i just down loaded the zip to a sdcard and ran the install

pyserial installed ok
still fails to install

i loaded form “https://www.raspberrypi.org/downloads/raspbian/” is that not right?

I am also using stretch, just wanted to make sure our environments were the same. Will you post the result of the install command?

just installing again atm
then i have been running sudo apt-get install ppp
then curl -L hologram.io/python-install | bash

should i run something else besides update and upgrade be for curl…

Not that I can remember. I just grabbed a random pi that I was using as a camera monitor and ran the curl script and it installed. I will try a fresh one in a bit if we cant get you sorted out.

ok brand new sdcard with noods
did install
installed ppp
ran curl and here is the out put
pi@raspberrypi:~ $ curl -L hologram.io/python-install | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178 100 178 0 0 866 0 --:–:-- --:–:-- --:–:-- 872
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 3450 100 3450 0 0 2789 0 0:00:01 0:00:01 --:–:-- 2789
Linux system detected
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Reading package lists… Done
python is already installed.
ps is already installed.
kill is already installed.
Reading package lists… Done
Building dependency tree
Reading state information… Done
libpython2.7-dev is already the newest version (2.7.13-2+deb9u3).
libpython2.7-dev set to manually installed.
The following packages were automatically installed and are no longer required:
coinor-libipopt1v5 libmumps-seq-4.10.0 libraw15 realpath
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ip is already installed.
Collecting hologram-python
Downloading https://files.pythonhosted.org/packages/7a/40/2d5c74eb28ee51b0f43ede9b32c9622c5c9b4782fa0afadbb7abb8a1db33/hologram-python-0.8.3.tar.gz (53kB)
100% |████████████████████████████████| 61kB 492kB/s
Requirement already satisfied: enum34~=1.1.6 in /usr/lib/python2.7/dist-packages (from hologram-python)
Collecting hjson~=3.0.0 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/8a/92/6b6b85064f8a88cb3b31901d839e7b45c33e4ee450bb1b3cf0c226cca8ec/hjson-3.0.1.tar.gz (43kB)
100% |████████████████████████████████| 51kB 1.4MB/s
Collecting mock~=3.0.5 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/05/d2/f94e68be6b17f46d2c353564da56e6fb89ef09faeeff3313a046cb810ca9/mock-3.0.5-py2.py3-none-any.whl
Collecting psutil~=5.6.3 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz (435kB)
100% |████████████████████████████████| 440kB 527kB/s
Collecting pyroute2==0.5.* (from hologram-python)
Downloading https://files.pythonhosted.org/packages/f6/80/16a604075345f0c253537d55e5c5282a37c61a1fc8ee0fcc42d1fd2a0739/pyroute2-0.5.6.tar.gz (723kB)
100% |████████████████████████████████| 727kB 282kB/s
Collecting pyserial~=3.4.0 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)
100% |████████████████████████████████| 194kB 642kB/s
Collecting pytest~=4.6.5 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/97/72/d4d6d22ad216f149685f2e93ce9280df9f36cbbc87fa546641ac92f22766/pytest-4.6.5-py2.py3-none-any.whl (230kB)
100% |████████████████████████████████| 235kB 734kB/s
Collecting python-pppd==1.0.3 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/5e/24/a7e81274595d44a6c69ff4e56d20e5b8ef1270f8354d4198c6596cf112d1/python-pppd-1.0.3.tar.gz
Collecting python-sdk-auth~=0.2.2 (from hologram-python)
Downloading https://files.pythonhosted.org/packages/ab/62/048be0fcf3b1510bb418c95d02c96e94466827e02f9610ade3edb185f96b/python_sdk_auth-0.2.2-py2-none-any.whl
Collecting python-wifi~=0.6.1 (from hologram-python)
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 353, in run
wb.build(autobuilding=True)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 554, in _prepare_file
require_hashes
File “/usr/lib/python2.7/dist-packages/pip/req/req_install.py”, line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 465, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 423, in find_all_candidates
for page in self._get_pages(url_locations, project_name):
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 568, in _get_pages
page = self._get_page(location)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 683, in _get_page
return HTMLPage.get_page(link, session=self.session)
File “/usr/lib/python2.7/dist-packages/pip/index.py”, line 792, in get_page
“Cache-Control”: “max-age=600”,
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 501, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py”, line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py”, line 423, in send
timeout=timeout
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py”, line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py”, line 315, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: ‘Retry’ and ‘int’

Try this

Upgrade pip (may not be needed)
sudo pip2 install --upgrade pip

And then
sudo pip2 install pyserial==3.3 --ignore-installed

Then run the installer again
curl -L hologram.io/python-install | bash

that worked you da penguin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.