Author

Topic: Unable to install Electrum 2.1.1, please help (Read 1510 times)

newbie
Activity: 5
Merit: 0
Thanks a lot, btchris! I'm able to get it installed now. I wouldn't have realized pip was contributing to the problem.
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
Looks like you can blame this one on Google Wink

pip versions prior to 1.4 (which you three apparently have) will inadvertently install pre-release versions of libraries uploaded to PyPI, and Google uploaded a broken pre-release of Google protobuf on May 1st (here's the bug report).

Luckily, the are two easy work-arounds. (1) upgrade pip (this option will overwrite the system-provided pip):

Code:
sudo pip install --upgrade pip

or (2) force pip to install the most recent stable version of protobuf:

Code:
sudo pip install protobuf==2.6.1

After doing one of the above, just install Electrum normally.
sr. member
Activity: 288
Merit: 250
Same error. Can't install on Raspberry Pi 2:

Can't find required file: ../src/google/protobuf/unittest.proto

 Angry

EDIT:

Installed development version from GitHub
newbie
Activity: 5
Merit: 0
I have exactly the same problem. I tried installing every 2.x version, but all of them have that "Can't find required file: ../src/google/protobuf/unittest.proto" error. Is this due to a missing package or non-standard setting in this distro, I wonder? Whatever package it might be, I'm sure it's available.
newbie
Activity: 6
Merit: 0
Hi,

I'm trying to Install Electrum 2.1.1 on Debian linux:

Code:
user@host:~$  sudo apt-get install python-qt4 python-pip
[sudo] password for user:                                                                                                                                                                                                                                            
Reading package lists... Done                                                                                                                                                                                                                                        
Building dependency tree      
Reading state information... Done
python-pip is already the newest version.
python-qt4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@host:~$  sudo pip install https://download.electrum.org/Electrum-2.1.1.tar.gz
Downloading/unpacking https://download.electrum.org/Electrum-2.1.1.tar.gz
  Downloading Electrum-2.1.1.tar.gz (1.8Mb): 1.8Mb downloaded
  Running setup.py egg_info for package from https://download.electrum.org/Electrum-2.1.1.tar.gz                                                                                                                                                                      
                                                                                                                                                                                                                                                                      
Requirement already satisfied (use --upgrade to upgrade): slowaes>=0.1a1 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)
Requirement already satisfied (use --upgrade to upgrade): ecdsa>=0.9 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)
Requirement already satisfied (use --upgrade to upgrade): pbkdf2 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)
Requirement already satisfied (use --upgrade to upgrade): qrcode in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)
Downloading/unpacking protobuf (from Electrum==2.1.1)
  Running setup.py egg_info for package protobuf
    
Downloading/unpacking tlslite (from Electrum==2.1.1)
  Running setup.py egg_info for package tlslite
    
Downloading/unpacking dnspython (from Electrum==2.1.1)
  Running setup.py egg_info for package dnspython
    
Downloading/unpacking six (from qrcode->Electrum==2.1.1)
  Running setup.py egg_info for package six
    
    no previously-included directories found matching 'documentation/_build'
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from protobuf->Electrum==2.1.1)
Installing collected packages: protobuf, tlslite, dnspython, Electrum, six
  Running setup.py install for protobuf
    Can't find required file: ../src/google/protobuf/unittest.proto
    Generating google/protobuf/unittest_pb2.py...
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt:
    running install

running build

running build_py

Can't find required file: ../src/google/protobuf/unittest.proto

Generating google/protobuf/unittest_pb2.py...

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt failed with error code 255 in /home/user/build/protobuf
Storing complete log in /root/.pip/pip.log
user@host:~$
user@host:~$ electrum
Could not find the database of available applications, run update-command-not-found as root to fix this                                                                                                                                                              
electrum: command not found                                                                                                                                                                                                                                          
user@host:~$

pip.log:

Code:
------------------------------------------------------------
/usr/bin/pip run on Sat May  2 20:40:06 2015
Downloading/unpacking https://download.electrum.org/Electrum-2.1.1.tar.gz

  Downloading from URL https://download.electrum.org/Electrum-2.1.1.tar.gz
  Running setup.py egg_info for package from https://download.electrum.org/Electrum-2.1.1.tar.gz

    running egg_info
    creating pip-egg-info/Electrum.egg-info
    writing requirements to pip-egg-info/Electrum.egg-info/requires.txt
    writing pip-egg-info/Electrum.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/Electrum.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/Electrum.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/Electrum.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/Electrum.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/Electrum.egg-info/SOURCES.txt'
Requirement already satisfied (use --upgrade to upgrade): slowaes>=0.1a1 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)

Requirement already satisfied (use --upgrade to upgrade): ecdsa>=0.9 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)

Requirement already satisfied (use --upgrade to upgrade): pbkdf2 in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)

Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)

  skipping extra security
  skipping extra security
  skipping extra security
Requirement already satisfied (use --upgrade to upgrade): qrcode in /usr/local/lib/python2.7/dist-packages (from Electrum==2.1.1)

Downloading/unpacking protobuf (from Electrum==2.1.1)

  Running setup.py egg_info for package protobuf

    running egg_info
    writing requirements to pip-egg-info/protobuf.egg-info/requires.txt
    writing pip-egg-info/protobuf.egg-info/PKG-INFO
    writing namespace_packages to pip-egg-info/protobuf.egg-info/namespace_packages.txt
    writing top-level names to pip-egg-info/protobuf.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/protobuf.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/protobuf.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/protobuf.egg-info/SOURCES.txt'
  Source in ./build/protobuf has version 3.0.0-alpha-2, which satisfies requirement protobuf (from Electrum==2.1.1)
Downloading/unpacking tlslite (from Electrum==2.1.1)

  Running setup.py egg_info for package tlslite

    running egg_info
    writing pip-egg-info/tlslite.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/tlslite.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/tlslite.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/tlslite.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'pip-egg-info/tlslite.egg-info/SOURCES.txt'
  Source in ./build/tlslite has version 0.4.8, which satisfies requirement tlslite (from Electrum==2.1.1)
Downloading/unpacking dnspython (from Electrum==2.1.1)

  Running setup.py egg_info for package dnspython

    running egg_info
    writing pip-egg-info/dnspython.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/dnspython.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/dnspython.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/dnspython.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/dnspython.egg-info/SOURCES.txt'
  Source in ./build/dnspython has version 1.12.0, which satisfies requirement dnspython (from Electrum==2.1.1)
Downloading/unpacking six (from qrcode->Electrum==2.1.1)

  Running setup.py egg_info for package six

    running egg_info
    writing pip-egg-info/six.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/six.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/six.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/six.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'documentation/_build'

    writing manifest file 'pip-egg-info/six.egg-info/SOURCES.txt'
  Source in ./build/six has version 1.9.0, which satisfies requirement six (from qrcode->Electrum==2.1.1)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from protobuf->Electrum==2.1.1)

Installing collected packages: protobuf, tlslite, dnspython, Electrum, six

  Running setup.py install for protobuf

    Running command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt
    running install
    running build
    running build_py
    Can't find required file: ../src/google/protobuf/unittest.proto

    Generating google/protobuf/unittest_pb2.py...

    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt:

    running install

running build

running build_py

Can't find required file: ../src/google/protobuf/unittest.proto

Generating google/protobuf/unittest_pb2.py...

----------------------------------------

Command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt failed with error code 255 in /home/user/build/protobuf

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 250, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1133, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 577, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools;__file__='/home/user/build/protobuf/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-iMFPO8-record/install-record.txt failed with error code 255 in /home/user/build/protobuf

Help !
Jump to: