Bitcoin Forum
May 26, 2024, 01:28:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling Windows Version of Electrum 2.0 Beta [Not 100%]  (Read 2376 times)
Damien74 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 07, 2015, 05:48:50 AM
 #1

I tried this because I wanted the Trezor to work on a friends machine. He can't use his yet :-) (Yep I'm a Mac Wink

Here's a bunch of steps I tried in Windows 7 64-bit. I got somewhere but not close enough sadly.
Keep up the good work Thomas! We all look forward to 2.0 when you are ready :-)

================================================================
Installing Electrum 2.0 Beta on Windows (64-bit)

Install Python
python-2.7.9.amd64.msi

Install GitHub
GitHubSetup.exe

Install PyQt
Install PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x64.exe by Riverbank

Copy latest version of Electrum from GitHub (copies into home folder)
git clone git://github.com/spesmilo/electrum.git

Install required things for compiling
pip install ecdsa slowaes==0.1a1 pbkdf2 requests pyasn1 pyasn1-modules tlslite qrcode SocksiPy-branch

Generate Icons (May need to restart terminal window)
pyrcc4 icons.qrc -o gui/qt/icons_rc.py


At this point you can run Electrum, but there's no Trezor support so I was a bit bummed.
Also I noticed that the generate new bitcoin address is non-functional, just like on the Mac :-)



Include Translations - Failed
python mki18n.py
May not be required as translations are broken due to any one of these - urllib2, os, zipfile, pycurl
Workaround - Install pycurl‑7.19.5.win‑amd64‑py2.7.exe
Not sure why this doesn’t work at all, I’m not a programmer :-)


Making it a single functioning app using Python 2 - Failed
Install py2exe-0.6.9.win64-py2.7.amd64.exe
I didn’t bother too much with this part either.
================================================================
Anyway, just thought I'd put this up in case anyone else (or me in the future) does a Google!
And of course it's not 100%, it's a beta :-)
tl121
Sr. Member
****
Offline Offline

Activity: 278
Merit: 252


View Profile
January 08, 2015, 02:27:03 AM
 #2

I tried this because I wanted the Trezor to work on a friends machine. He can't use his yet :-) (Yep I'm a Mac Wink

Here's a bunch of steps I tried in Windows 7 64-bit. I got somewhere but not close enough sadly.
Keep up the good work Thomas! We all look forward to 2.0 when you are ready :-)

================================================================
Installing Electrum 2.0 Beta on Windows (64-bit)

Install Python
python-2.7.9.amd64.msi

Install GitHub
GitHubSetup.exe

Install PyQt
Install PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x64.exe by Riverbank

Copy latest version of Electrum from GitHub (copies into home folder)
git clone git://github.com/spesmilo/electrum.git

Install required things for compiling
pip install ecdsa slowaes==0.1a1 pbkdf2 requests pyasn1 pyasn1-modules tlslite qrcode SocksiPy-branch

Generate Icons (May need to restart terminal window)
pyrcc4 icons.qrc -o gui/qt/icons_rc.py


At this point you can run Electrum, but there's no Trezor support so I was a bit bummed.
Also I noticed that the generate new bitcoin address is non-functional, just like on the Mac :-)



Include Translations - Failed
python mki18n.py
May not be required as translations are broken due to any one of these - urllib2, os, zipfile, pycurl
Workaround - Install pycurl‑7.19.5.win‑amd64‑py2.7.exe
Not sure why this doesn’t work at all, I’m not a programmer :-)


Making it a single functioning app using Python 2 - Failed
Install py2exe-0.6.9.win64-py2.7.amd64.exe
I didn’t bother too much with this part either.
================================================================
Anyway, just thought I'd put this up in case anyone else (or me in the future) does a Google!
And of course it's not 100%, it's a beta :-)


I got this to work on Windows 7 x64 Pro.  You will need to instal https://github.com//trezor/python-trezor and all of its dependencies.  You can tell if you have succeeded in this by running the "Hello world" test and seeing it talk to your Trezor.  There are a lot of dependencies and some of them are not listed in the instructions.  They will come up in the form of error messages. Make sure your various dependencies are all the same type (i.e. not some 32 bit and some 64 bit). I had originally used a 64 bit setup, but the Visual Basic installation that I found was only 32 bit, so I had to make everything 32 bit.


rascal777
Full Member
***
Offline Offline

Activity: 132
Merit: 100


View Profile
February 09, 2015, 03:37:30 AM
Last edit: February 09, 2015, 05:48:14 AM by rascal777
 #3

I am presently trying to create a more detailed walk-through on how to build electrum in windows 7 or 8.

Questions:

Does using Latest Python 3 Release - Python 3.4.2 work?

Does using the latest Qtsdk 5.4 work?

Can Electrum be built on windows using x64  or does everything have to be set at x86?


I am actually trying to install PyQt-win-gpl-4.11.3 and right now I am stuck at >python configure-ng.py.

It will build all the modules, but then fails at generating the c code for Qtcore module

Exact error is

"Generating the C++ source for the QtCore module...
Error: Unable to create the C++ code."


I seen where some of the information for this thread may have come from:
BTW : I wrote a doc on how to build and install electrum from source on Fedora 15 (probably work on other RH-derivatives also).

Code:
# Set-up dev. env
#
# use yum-ex and get packages PyQt4 PyQt4-devel
# or on command line

$ sudo yum install PyQt4 PyQt4-devel

# separately do same for packages python-setuptools python-pip

$ sudo yum install python-setuptools python-pip

# Install python modules ecdsa slowaes (crypto stuff)

$ sudo easy_install ecdsa
$ sudo easy_install slowaes


# Fetch the electrum project from gitorious
#
$ git clone git://gitorious.org/electrum/electrum.git


$ cd electrum

# build locally QT-icons into electrum/lib/

$ pyrcc4 icons.qrc -o lib/icons_rc.py

# build and install electrum python module

$ sudo python setup.py install


### go home and play :)

$ cd

$ electrum


BTC TIPS  19n2ienyueN4RiC38KFSZMQMgrNLgu9Uuc
rascal777
Full Member
***
Offline Offline

Activity: 132
Merit: 100


View Profile
February 09, 2015, 05:57:06 AM
 #4

I may have answered one of my own questions...

Does using Latest Python 3 Release - Python 3.4.2 work?

NO, because for 1, there are many print statements in the code that are incompatible with Python 3.4.2.  A syntax error is thrown.  (At least I think this is the problem that I am having now, because I can't get Electrum built yet)  (its frustrating, I've put in 6 hours...)


In Python 3, printing values changed from being a distinct statement to being an ordinary function call, so it now needs parentheses around the value to be printed:

>>> print("Hello world!")
Hello world!
In earlier versions of Python 3, the interpreter just reports a generic syntax error, without providing any useful hints as to what might be going wrong:

BTC TIPS  19n2ienyueN4RiC38KFSZMQMgrNLgu9Uuc
Tachikoma
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000



View Profile WWW
February 10, 2015, 08:47:00 AM
 #5

FYI: Trezor support should be build into the Electrum 2.0b2 .exe, if this is not the case let me know.

Most steps for producing a windows binary can be found in the scripts here: https://github.com/maran/electrum-winbuild although these instructions are for wine on Linux the idea is the same on windows.

Electrum: the convenience of a web wallet, without the risks | Bytesized Seedboxes BTC/LTC supported
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!