question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Previous version worked. But this one had error on start.

vmware@vmware-virtual-machine ~ $ Downloads/electrum/electron-cash 
Traceback (most recent call last):
  File "Downloads/electrum/electron-cash", line 95, in <module>
    imp.load_module('electroncash', *imp.find_module('lib'))
  File "/home/vmware/Downloads/electrum/lib/__init__.py", line 3, in <module>
    from wallet import Synchronizer, Wallet, Imported_Wallet
  File "/home/vmware/Downloads/electrum/lib/wallet.py", line 65, in <module>
    import paymentrequest
  File "/home/vmware/Downloads/electrum/lib/paymentrequest.py", line 39, in <module>
    import paymentrequest_pb2 as pb2
  File "/home/vmware/Downloads/electrum/lib/paymentrequest_pb2.py", line 9, in <module>
    from google.protobuf import symbol_database as _symbol_database
  File "/home/vmware/Downloads/electrum/packages/google/protobuf/symbol_database.py", line 184, in <module>
    _DEFAULT = SymbolDatabase(pool=descriptor_pool.Default())
AttributeError: 'module' object has no attribute 'Default'
vmware@vmware-virtual-machine ~ $ 

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
chiwalfrmcommented, Nov 17, 2017

@molecular Thanks! That was it!! After running “sudo pip2 install --upgrad protobuf” it worked!

vmware@vmware-virtual-machine ~ $ cd ~/Downloads/electrum/packages/
vmware@vmware-virtual-machine ~/Downloads/electrum/packages $ python2
Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.protobuf import descriptor_pool
>>> descriptor_pool
<module 'google.protobuf.descriptor_pool' from '/usr/lib/python2.7/dist-packages/google/protobuf/descriptor_pool.pyc'>
>>> 
vmware@vmware-virtual-machine ~/Downloads/electrum/packages $ sudo pip2 install --upgrad protobuf
[sudo] password for vmware: 
Downloading/unpacking protobuf from https://pypi.python.org/packages/4b/01/d6d8536d27d0619ff0e132ae8ec9c8c4738caa7e9ab6eb868d40e26fafb7/protobuf-3.5.0-py2.py3-none-any.whl#md5=1adddde919d3e676545505c27bdc9857
  Downloading protobuf-3.5.0-py2.py3-none-any.whl (388kB): 388kB downloaded
Downloading/unpacking six>=1.9 (from protobuf)
  Downloading six-1.11.0-py2.py3-none-any.whl
Downloading/unpacking setuptools from https://pypi.python.org/packages/d1/56/fe971f02e075c9e712f23d1fe5c427f573fce178c368deebf5794f80b7c9/setuptools-36.7.2-py2.py3-none-any.whl#md5=cb2de0d103f578273c61f7ff640cf697 (from protobuf)
  Downloading setuptools-36.7.2-py2.py3-none-any.whl (482kB): 482kB downloaded
Installing collected packages: protobuf, six, setuptools
  Found existing installation: protobuf 2.5.0
    Not uninstalling protobuf at /usr/lib/python2.7/dist-packages, owned by OS
  Found existing installation: six 1.5.2
    Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
  Found existing installation: setuptools 3.3
    Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed protobuf six setuptools
Cleaning up...
vmware@vmware-virtual-machine ~/Downloads/electrum/packages $ python --version
Python 2.7.6
1reaction
molecularcommented, Nov 17, 2017

something wrong with google.protobuf lib

can you do the following?

#> cd ~/Downloads/electrum/packages
#> python2
Python 2.7.14 (default, Sep 20 2017, 01:25:59)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.protobuf import descriptor_pool
>>> descriptor_pool
<module 'google.protobuf.descriptor_pool' from 'google/protobuf/descriptor_pool.pyc'>

The last line might shed some light about where that descriptor_pool is being loaded from. Maybe you have an older version of protobuf on your system and that’s being used? If so, update python2-protobuf (or whatever it’s called on your system). Maybe pip2 install --upgrad protobuf. But don’t install too many ways: preferrably use your distros package manager to install/upgrade it. If in doubt find /usr | grep python2 | grep protobuf might shed light on what’s installed

Can you also do “python --version”? (I usually run electrum using python2 electron-cash to avoid accidentally running it with python3. I don’t think that’s the issue here, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Standalone Launcher won't work anymore after Patch 9.4 later ...
Upon launch you log in using your regular details. This happened with destiny 2 twice, moving to the blizzard launcher with activision and...
Read more >
[ROM] Trigger v2.9.4 » Why not? » EDT » 4/15/11 | XDA Forums
Great GPS! modded camera, hold power button to focus, let go to take a picture; video player, music player, camera all work below...
Read more >
Light-O-Rama v2.9.4
A Light-O-Rama controller can be controlled by another controller (or a PC running Light-O-Rama software), or it can control itself and/or other controllers,...
Read more >
Library does not exist SAS 9.4 - Programming
Solved: Hi all, I'm new to SAS and I keep getting the error 'Library does not exist'. I am using SAS 9.4 on...
Read more >
Monitoring v2 - failed to create pv for prometheus when using ...
run rancher:v2.5-head single-install; provision a cluster; install Longhorn 1.0.201; install Monitoring v2 9.4.201 with persistent storage ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found