Bitcoin Forum
April 18, 2025, 12:02:41 AM *
News: ibminer is now selling real-world Merit Poker collectibles
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error: could not find paymentrequest_pb2.py. Create it with 'contrib/generate_pa  (Read 79 times)
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 511
Merit: 262


View Profile WWW
February 11, 2025, 10:53:18 PM
 #1

I built/packaged Electrum 4.5.8, and when I trying running it, I get this:
Code:
Error: could not find paymentrequest_pb2.py. Create it with 'contrib/generate_payreqpb2.sh'
How do I fix this? I tried running
Code:
generate_payreqpb2.sh
, but I don’t know if it created any files or put them in the right place. Can someone please explain this?

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
Geremia (OP)
Sr. Member
****
Offline Offline

Activity: 511
Merit: 262


View Profile WWW
February 14, 2025, 04:14:32 AM
Merited by pooya87 (2), ABCbits (1)
 #2

The issue was that I had protobuf 3.19.6 installed locally (with pip) and protobuf 29.3 installed globally. I removed the local, pip-installed version, and Electrum now works.

BTC tip jar | my BTC wiki, BTC StackExchange | Tox ID: 65C3E8810738AD9D175234808FCB317A1103632903436203D45411AE97C03F54C34861AB6663
Join Kraken. | The best, free book on Bitcoin: Mastering Bitcoin
Nos cum prole pia benedicat Virgo Maria.
NotATether
Legendary
*
Offline Offline

Activity: 1946
Merit: 8288


Wheel of Whales 🐳


View Profile WWW
February 22, 2025, 07:35:25 AM
 #3

This is why you should use Electrum in a .venv, or at least make sure you're not installing other package that conflict with Electrum's dependencies. You can prevent a lot of other weird errors from happening that way.

███████████▄
████████▄▄██
█████████▀█
███████████▄███████▄
█████▄█▄██████████████
████▄█▀▄░█████▄████████
████▄███░████████████▀
████░█████░█████▀▄▄▄▄▄
█████░█
██░█████████▀▀
░▄█▀
███░░▀▀▀██████
▀███████▄█▀▀▀██████▀
░░████▄▀░▀▀▀▀████▀
 

█████████████████████████
████████████▀░░░▀▀▀▀█████
█████████▀▀▀█▄░░░░░░░████
████▀▀░░░░░░░█▄░▄░░░▐████
████▌░░░░▄░░░▐████░░▐███
█████░░░▄██▄░░██▀░░░█████
█████▌░░▀██▀░░▐▌░░░▐█████
██████░░░░▀░░░░█░░░▐█████
██████▌░░░░░░░░▐█▄▄██████
███████▄░░▄▄▄████████████
█████████████████████████

█████████████████████████
████████▀▀░░░░░▀▀████████
██████░░▄██▄░▄██▄░░██████
█████░░████▀░▀████░░█████
████░░░░▀▀░░░░░▀▀░░░░████
████░░▄██░░░░░░░██▄░░████
████░░████░░░░░████░░████
█████░░▀▀░▄███▄░▀▀░░████
██████░░░░▀███▀░░░░██████
████████▄▄░░░░░▄▄████████
█████████████████████████
.
...SOL.....USDT...
...FAST PAYOUTS...
...BTC...
...TON...
ABCbits
Legendary
*
Offline Offline

Activity: 3206
Merit: 8689


Crypto Swap Exchange


View Profile
February 23, 2025, 09:22:28 AM
Merited by Cricktor (1)
 #4

This is why you should use Electrum in a .venv, or at least make sure you're not installing other package that conflict with Electrum's dependencies. You can prevent a lot of other weird errors from happening that way.

IMO pipx is better choice since OP wants to run program, rather than software development.

You can globally install an application by running

Code:
pipx install PACKAGE

This automatically creates a virtual environment, installs the package, and adds the package's associated applications (entry points) to a location on your PATH. For example, pipx install pycowsay makes the pycowsay command available globally, but sandboxes the pycowsay package in its own virtual environment. pipx never needs to run as sudo to do this.

For OP's usage, this command should work (tested on my Debian 12 VM).

Code:
$ sudo apt install pipx
$ pipx ensurepath
$ pipx install git+https://github.com/spesmilo/electrum.git@4.5.8
$ which electrum
/home/user/.local/bin/electrum

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!