Bitcoin Forum
November 06, 2024, 06:31:33 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BTC Reward. How to compile Electrum standalone executable from Python source cod  (Read 405 times)
jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
May 28, 2020, 12:06:54 AM
 #1

Anyone know how to compile Electrum standalone executable from Python source code?

Or can teach me/show me via RDP, I will pay in BTC. Name your price.

Please no time wasters, only if you have successfully done this before.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
May 28, 2020, 10:22:26 AM
Merited by NeuroticFish (1)
 #2

The process depends on the OS you want the executable to be build for.

You can find step-by-step guides on github:

Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
May 29, 2020, 03:40:54 PM
 #3

Or can teach me/show me via RDP, I will pay in BTC. Name your price.

RDP programs like team viewer have been the source of many thefts in the past.  So don't do this. Don't give anyone access to your system.

I suggest you join #electrum irc channel on freenode and ask for help from the developers there.
ewaspiro
Member
**
Offline Offline

Activity: 74
Merit: 10


View Profile
June 01, 2020, 12:30:53 PM
 #4

Anyone know how to compile Electrum standalone executable from Python source code?

Or can teach me/show me via RDP, I will pay in BTC. Name your price.

Please no time wasters, only if you have successfully done this before.

What is your coding experience and what are you trying to achieve? Just compile or you try modify some of the code?

If you ever done coding before the github page is pretty straight forward, if you never compiled a python script before I would recommend trying a simpler code repo to get some skin in the game before trying a complex code like electrum


If I dont reply to your PM means I dont want to have you send me more PMs
jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 10, 2020, 10:59:51 PM
Last edit: June 10, 2020, 11:47:13 PM by jantalsma1
 #5

Or can teach me/show me via RDP, I will pay in BTC. Name your price.

RDP programs like team viewer have been the source of many thefts in the past.  So don't do this. Don't give anyone access to your system.

I suggest you join #electrum irc channel on freenode and ask for help from the developers there.

Thanks for your concern, but not the case here since me and the guy who will teach me how to do this we will work on a freshly installed windows on a separate pc than my personal one. So no worries on that matter. No sensitive information there.

---------------- Now back to the topic

I wanna thank everyone for the replies,

I got a job offer from a premium member, so I will follow that lead and work with him on completion of the goal.

The task is simple, I just need someone to teach me how to compile Electrum standalone executable for windows from source code, and I pay in btc for this job. That's it.

Fair and simple.
BitMaxz
Legendary
*
Offline Offline

Activity: 3430
Merit: 3165


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
June 11, 2020, 12:06:15 AM
 #6

I got a job offer from a premium member, so I will follow that lead and work with him on completion of the goal.

The task is simple, I just need someone to teach me how to compile Electrum standalone executable for windows from source code, and I pay in btc for this job. That's it.

Fair and simple.


Why not compile the Electrum wallet in Linux? You can also do this on Windows you just need to install a virtual box or VMware and install Linux/Ubuntu.

If you have Linux/Ubuntu OS, you can quickly build or compile your own Electrum wallet, so to be able to compile Electrum, you need VirtualBox or VMware run with Linux OS.

You can follow the step by step guide from here below you don't need to hire someone to guide, but if you still want to hire better make a new thread on services section to find someone to guide you pay with BTC.
- https://bitcointalk.org/index.php?topic=5224252.0

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

.... ..Playbet.io..Casino & Sportsbook.....Grab up to  BTC + 800 Free Spins........
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 11, 2020, 09:05:32 AM
 #7

The task is simple, I just need someone to teach me how to compile Electrum standalone executable for windows from source code, and I pay in btc for this job. That's it.


Just take a look at above:

You can find step-by-step guides on github:

That should be enough. That's basically just typing the same commands.
And i am sure there are even more guides available online.

Just try following the guide. If you succeed you can donate that money to the development of electrum.
If you fail while doing a specific task, feel free to ask for further assistance.

jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 11, 2020, 10:36:57 AM
 #8

The problem is that I've never used Linux before, I don't know how to create a virtual machine with Linux, so I am better off someone doing this via rdp on my pc.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 11, 2020, 10:52:50 AM
 #9

The problem is that I've never used Linux before, I don't know how to create a virtual machine with Linux

Take a look here.


[...] so I am better off someone doing this via rdp on my pc.

If you really care about building it from source instead of simply verifying the signature, you should at least do it yourself.
I don't see the reason behind letting soemone else access your computer to compile electrum from source.

You could either use the guide together with a tutorial on how to set up a virtual machine and therefore compile it yourself (which kind of is the reason to compile something yourself) or just verify the signature to be sure you are not using a malicious version of electrum.

No one here wants your money to assist you. Just try it yourself. If you run into problems, there are a lot people here who are willing to help you without being paid for it.

jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 14, 2020, 01:42:49 AM
 #10

Hello,

After 2 days of smashing my head to different walls, I managed to get to this point:

Successfully installed Oracle VirtualBox Manager.
Successfully installed Ubuntu from iso, but only after wasting an hour or more because I had to change a setting in BIOS: "intel virtual machine > disabled to enable"

Then I had to learn basic linux enviroment, which I never done before,

Successfully installed these dependencies/tools:

sudo apt update
sudo apt-get update
sudo apt install git
sudo apt-get install python3
sudo apt-get install python3-pyqt5
sudo apt-get install python3-setuptools
sudo apt-get install python3-pip
sudo apt-get install curl
sudo apt-get install protobuf-compiler
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce

Successfully downloaded Electrum, then ran it using

"python3 Electrum-3.3.8/run_electrum"

Ran a few tests, it works, it's all good, but I lost 2 days. Not complaining that much, I learned a few new things, tomorrow I will attempt to create the Standalone Executable for Windows. I would have been better off having someone with experience beside me to teach me a few things, and I would have been glad to pay for that.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 14, 2020, 09:08:26 AM
 #11

Ran a few tests, it works, it's all good, but I lost 2 days. Not complaining that much, I learned a few new things, tomorrow I will attempt to create the Standalone Executable for Windows. I would have been better off having someone with experience beside me to teach me a few things, and I would have been glad to pay for that.

The learn effect is bigger if you do it on your own, trust me.
However, if you are going to be stuck at some point, or have any questions, feel free to post them here. I (and others most likely too) will gladly assist you without taking money from you.

Since you already learned some linux basics, you already laid the foundation of running a bootable linux distro. It is always nice to know how to at least navigate in a linux environment (e.g. if you need to repair your filesystem, recover deleted files, access coins from a cold wallet setup).

DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2338
Merit: 4541


Join the world-leading crypto sportsbook NOW!


View Profile WWW
June 14, 2020, 05:09:05 PM
Last edit: June 14, 2020, 05:42:12 PM by DireWolfM14
Merited by DaveF (3), ABCbits (2), TheBeardedBaby (1)
 #12

There are some other methods you can use other than a virtual machine.  If you are running Windows 10 you can use WSL instead of a VM.  You can then pick your favorite Linux distro.

If you're goal is to run the most recent version of the alpha/beta releases of Electrum, there is a simpler way.  Now that you have a VM you can just download the latest source and run it in the Linux VM.  You can also install Python on your Windows machine and run Electrum from source by entering the commands in either Powershell or the Python console.  I recently taught myself how to compile the binaries to install Electrum, but now I mostly run the new versions right from source.  Setting up your Windows system with the ability to run from source will save a lot of time.  Once it's done all you have to do is download the latest source code, no more compiling binaries.

Check out these threads for some more help:
https://bitcointalk.org/index.php?topic=5221146.0
https://bitcointalk.org/index.php?topic=5222986.0
https://bitcointalk.org/index.php?topic=5224252.0



  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
DaveF
Legendary
*
Offline Offline

Activity: 3654
Merit: 6660


Crypto Swap Exchange


View Profile WWW
June 14, 2020, 05:36:39 PM
 #13

Also, if you are running Win10 Pro you have the ability to use Hyper-V which is the Microsoft virtualization platform instead of Virtual Box.
Most people find it has better performance then Virtual Box. There are other advantages and some disadvantages which go beyond the discussion of this thread but it is out there if you need it.

Congrats on getting it working.

-Dave

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 21, 2020, 01:34:39 AM
 #14

UPDATE:

I've been busy in real world, could barely get close to the computer. I've finally managed to get down to work and get to the bottom of this.

I've visited this link

https://github.com/spesmilo/electrum/tree/master/contrib/build-wine#windows-binaries

INSTALLED DOCKER

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install -y docker-ce

BUILT IMAGE

$ sudo docker build -t electrum-wine-builder-img contrib/build-wine

NOW COMES THE TRICKY PART FOR ME

$ FRESH_CLONE=contrib/build-wine/fresh_clone && \
    sudo rm -rf $FRESH_CLONE && \
    mkdir -p $FRESH_CLONE && \
    cd $FRESH_CLONE  && \
    git clone https://github.com/spesmilo/electrum.git && \
    cd electrum

and to build

$ git checkout $REV
$ sudo docker run -it \
    --name electrum-wine-builder-cont \
    -v $PWD:/opt/wine64/drive_c/electrum \
    --rm \
    --workdir /opt/wine64/drive_c/electrum/contrib/build-wine \
    electrum-wine-builder-img \
    ./build.sh

Excuse my noobness, but from this official windows binaries build page, if I understand correctly, you need to download a fresh clone from github.

BUT, my intention is to build from the file I downloaded, which is Electrum-3.3.8.tar.gz which I extracted to Electrum-3.3.8 directory. I only want to build Electrum Standalone Executable from this directory and not from a clone from github.

Is this the only possibility? Can anyone confirm? Yes / No

If cloning from github is the only possibility to do this, then I've set up an unrealistic goal from the start which only became apparent now Sad

Waiting for your feedback
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 21, 2020, 12:45:01 PM
Merited by DaveF (1)
 #15

Excuse my noobness, but from this official windows binaries build page, if I understand correctly, you need to download a fresh clone from github.

BUT, my intention is to build from the file I downloaded, which is Electrum-3.3.8.tar.gz which I extracted to Electrum-3.3.8 directory. I only want to build Electrum Standalone Executable from this directory and not from a clone from github.

Is this the only possibility? Can anyone confirm? Yes / No

If cloning from github is the only possibility to do this, then I've set up an unrealistic goal from the start which only became apparent now Sad

You don't need to clone it from github again.
You can definitely use your downloaded (and extracted) .tar.gz.


Just skip the following commands:

$ git checkout $REV

You can keep the rest as it is.
Just make sure that your extracted archive is in the folder "electrum" as it would be when cloning the repository directly and you are fine to go.

jantalsma1 (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 29, 2020, 12:33:21 AM
 #16

It's simply not possible to get Electrum to build the Windows binaries using the build-wine system WITHOUT cloning the git repository first


it doesn't work if you extract the files from the .tar.gz... you will always get the

/opt/wine64/drive_c/electrum /opt/wine64/drive_c/electrum/contrib/build-wine
fatal: not a git repository (or any parent up to mount point /opt/wine64/drive_c)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
🗯 ERROR: build-electrum-git failed


Can anyone find a workaround to build the windows binaries without cloning from the git repository?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 29, 2020, 06:11:30 AM
Last edit: November 15, 2023, 01:17:48 AM by HCP
Merited by ABCbits (2)
 #17

You don't need to clone it from github again.
You can definitely use your downloaded (and extracted) .tar.gz.
...
You can keep the rest as it is.
Just make sure that your extracted archive is in the folder "electrum" as it would be when cloning the repository directly and you are fine to go.
Sadly, this doesn't appear to work as one might expect...

Firstly, when attempting to build the docker image, it struggles with the git version:



If we modify the Dockerfile to use the current git version(1:2.17.1-1ubuntu0.7), then the docker image build goes ok:



However, during the building of the binaries using docker with this command:
Code:
$ sudo docker run -it \
    --name electrum-wine-builder-cont \
    -v $PWD:/opt/wine64/drive_c/electrum \
    --rm \
    --workdir /opt/wine64/drive_c/electrum/contrib/build-wine \
    electrum-wine-builder-img \
    ./build.sh

It will stop with an error saying that it can't find a git repo Undecided



If you then create an "empty" git repo using "git init", and have the .tar.gz files extracted to it... we get a slightly different git error...



So, then we try "git add" and "git commit" etc to create a local version of the repo... it will still error out as it can't seem to deal with the 'locale' files during the build and creates a "*" folder instead of the actual proper locale folders Undecided





which then causes this failure:



I even tried manually downloading the locale files and extracting them into the correct location, and it still errors out. Undecided



However, if you simply do ONE initial "git clone" from the Electrum github repo, all problems will disappear and the build process works flawlessly...


build the docker image:


checkout 3.3.8:


build the binaries:




So, either the 3.3.8 "tag" release .tar.gz on github is missing some critical files... or there is something in the Docker build image that absolutely requires that you have cloned from the github repo to work properly Undecided Anyone have any ideas? Huh

In the meantime, I'll continuing experimenting to see if I can work around the "locale" error...

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


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