Bitcoin Forum
November 01, 2024, 12:40:47 AM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum rewrite in C  (Read 104 times)
paeidovyn (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 16, 2023, 05:23:23 PM
Last edit: December 21, 2023, 04:32:53 AM by paeidovyn
 #1

I've experienced a lot of issues with Python modules not being compatible with electrum. This also applies to other Python scripts, though I want to concentrate on Electrum. I've submitted an issue as a feature request on GitHub.

The logical conclusion to the Python ouroboros is to port Electrum to C.


>>This is not an issue with virtual environments, rather an issue with unreliable module compatibility.<<
>>A typical user is never going to resolve this, therefore any application released in Python must be considered non-production.<<
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8018


Crypto Swap Exchange


View Profile
December 18, 2023, 10:47:48 AM
 #2

I've experienced a lot of issues with Python modules not being compatible with electrum. This also applies to other Python scripts, though I want to concentrate on Electrum. I've submitted an issue as a feature request on GitHub.

The logical conclusion to the Python ouroboros is to port Electrum to C.

Did i miss something? If you or regular user only want to run Electrum, you could download binary from https://electrum.org.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 10993


Crypto Swap Exchange


View Profile
December 19, 2023, 06:08:06 AM
 #3

Correct me if I'm wrong but this sounds like a problem that you have with Python language not with Electrum and I don't see how translating the whole thing to another language like C would solve anything. You should try to improve your Python skills to be able to apply the changes or additions that you want to Electrum.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1778
Merit: 7354


Top Crypto Casino


View Profile WWW
December 20, 2023, 11:55:49 AM
 #4

You can solve this problem with python virtualenvs. A virtualenv lets you create a brand-new python installation where you can install packages without interference from other packages. Using:

Code:
python -m venv ~/electrum
~/electrum/bin/activate
pip install electrum # replace this with the actual file name, of course
~/electrum/bin/electrum # Where the launcher will be ocated
deactivate

You can make a venv just for Electrum and free up your primary site-packages for everything else. No need to port to C.

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

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8018


Crypto Swap Exchange


View Profile
December 21, 2023, 10:16:08 AM
 #5

I see OP edited his thread to add more clarification, so i decide to add new reply.

>>This is not an issue with virtual environments, rather an issue with unreliable module compatibility.<<

In that case, why don't you ask people who create the module/library to pin required library to specific version. For example,

Code:
requests==2.31.0

>>A typical user is never going to resolve this, therefore any application released in Python must be considered non-production.<<

Typical user doesn't have to touch Python anyway. They should just run installer or portable executable which already contain all required file. Electrum already does that with installer, portable version and AppImage.

█▀▀▀











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