Bitcoin Forum
July 04, 2024, 11:07:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CANT UPGRADE ELECTRUM IN TAILS B/C "unsupported operand types"  (Read 345 times)
AnonymousBtcTalk (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
October 06, 2017, 03:18:37 PM
 #1

Trying to install electrum 2.9.3 for days....

used:

sudo apt-get install python-qt4 python-pip

and everything went well.

Next I typed:

sudo pip2 install https://download.electrum.org/2.9.3/Electrum-2.9.3.tar.gz

and I got:
"  Collecting https://download.electrum.org/2.9.3/Electrum-2.9.3.tar.gz
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 620, in _prepare_file
    session=self.session, hashes=hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 853, in_download_http_url
    stream=True,
File "/usr/share/python-wheels/request-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/request-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/request-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/adapters.py", line 47, in send
    resp=super(CacheControlAdapter, self).send(request, **kw)
File "/usr/share/python-wheels/request-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: unsupportrd operand type(s) for -=: 'Retry' and 'int'
"

Anyone else ever encountered this??  Im just trying to upgrade Electrum in Tails OS(USB), but stumped...
More than happy to send BTC to those who help!!
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
October 06, 2017, 09:03:55 PM
 #2

i think you figured this out already but the problem appears to be network related. you should download the tarball manually using a browser and then run pip2 on it
AnonymousBtcTalk (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
October 07, 2017, 05:41:51 PM
 #3

Thanks for the response Abdussamad.

Forgive me for being a noob, but how would i go about doing that.  I already have the tarball saved in Persistence, im just unsure, about runing pip2, bc i thought thats what i already tried to do in terminal.

Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
October 08, 2017, 01:19:13 AM
 #4

sudo -H pip2 install /path/to/tarball
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!