Pages:
Author

Topic: [REQUESTS] Minimal Electrum builds for Windows - page 3. (Read 47201 times)

newbie
Activity: 49
Merit: 0
I'm getting an error when running the executable. It says:
"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item."
How do I fix this?

This is unusual and could be related to the new build process... Could you confirm if you're running it from C drive or somewhere else? Also, are there any spaces in the path you're running it from?
I am running it from C drive, in my Downloads folder.
legendary
Activity: 1092
Merit: 1016
760930
I'm getting an error when running the executable. It says:
"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item."
How do I fix this?

This is unusual and could be related to the new build process... Could you confirm if you're running it from C drive or somewhere else? Also, are there any spaces in the path you're running it from?
newbie
Activity: 49
Merit: 0
I'm getting an error when running the executable. It says:
"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item."
How do I fix this?
hero member
Activity: 938
Merit: 1000
Awesome, I have not been able to produce a single .exe build on 1.7 so this is most welcome if you can pull it off Smiley
legendary
Activity: 1092
Merit: 1016
760930
OK, I've managed to rewrite a compact build using open-source autoit (aka ahk) scripting. It's still a work in progress. Also I didn't bother with the console functionality now that this is handled inside Electrum itself.

The good news is that this is a lightweight, transparent and auditable process. Expect new compact builds soon!

; Notes:
; -- requires the latest release of AHK and AHK2EXE, PyQt 4.9.6, Python 2.7 and the 7-zip DLL
; -- first, do a git pull master of the Electrum source code and copy that to %APPDATA%\Electrum_SysFiles


The packer script:

Code:

WhichFolder = 1.7.0.1

FileDelete, %A_scriptdir%\Electrum.arc

runwait, cmd /c del *.pyc /s, %WhichFolder%, hide

runwait, d:\tools\7za.dll a "%A_scriptdir%\Electrum.arc" "%WhichFolder%" -r -sfx, d:\tools

FileCount = 0
Loop, %WhichFolder%\*.*, , 1
   FileCount ++
msgbox %FileCount% items compacted.  



The launcher script:

Code:

process, close, python.exe
sleep 100

Rel = 1.7.0.1
commandline = %1% %2% %3% %4% %5% %6% %7% %8%
ReleaseDir = %appdata%\Electrum_SysFiles\%Rel%
  

if 1 !=
 if 1 not contains -P,-w,bitcoin
  {
  exitapp  
 }

 commandline = -P -w "./electrum.dat"
 ReleaseDir = %a_scriptdir%\Electrum_SysFiles\%Rel%


ifNOTexist, %ReleaseDir%
{

FileCreateDir, %ReleaseDir%

Gui, Add, text,, Please wait while unpacking files to the "Electrum_SysFiles" directory...
Gui, Add, Progress, vlvl  -Smooth 0x8 p0 w350 h12 ; PBS_MARQUEE = 0x8
Gui, Add, text,,  Thanks for using flatfly's optimized builds of Electrum!
Gui, -MinimizeBox
Gui, Show, , Electrum for Windows (flatfly build)
; SetTimer, Push, 61  

sleep 850
 
 FileInstall, Electrum.arc, %ReleaseDir%\Electrum.arc, 1
 runwait, %ReleaseDir%\Electrum.arc -y -o"%ReleaseDir%\.." ,, hide
}
    
Groupadd, bado, Electrum 1
Groupadd, bado, Message

EnvSet, path, %ReleaseDir%\`%System`%;%ReleaseDir%\C_\Python27;%path%
Setworkingdir, %ReleaseDir%\C_\ElectrumPY


HourGlassON()
run "%ReleaseDir%\C_\Python27\python.exe"  "%ReleaseDir%\C_\ElectrumPY\electrum" %commandline% ,,hide useErrorLevel
WinWait ahk_group bado
WinActivate
WinShow
HourGlassOFF()


FileDelete, %ReleaseDir%\Electrum.arc
exitapp


HourGlassON()
{
   CursorHandle := DllCall( "LoadCursor", Uint,0, Int, 32650 )
   DllCall( "SetSystemCursor", Uint,CursorHandle, Int, 32512)
}

HourGlassOFF()
{
   DllCall( "SystemParametersInfo", UInt, 0x57, UInt,0, UInt,0, UInt,0 )
}



legendary
Activity: 945
Merit: 1003
Got it. Everything makes sense now!
hero member
Activity: 938
Merit: 1000
-a is a argument you give the "electrum addresses" command for instance.
legendary
Activity: 945
Merit: 1003
Hold shift when clicking the exe.

Thanks! It worked, but now I've got a second problem:

Shift brings up a python cmd promt, but if I try to run a command - e.g. by typing "electrum -a" it just starts the GUI?
hero member
Activity: 938
Merit: 1000
Hold shift when clicking the exe.
legendary
Activity: 945
Merit: 1003
Recently started using electrum so I'm a newbie with this client.

Seems very powerful - IF - you use the coomand prompt. On the other hand, the gui offers only limited functionality.

This leads me to my question: How do I activate the command line interface??
I'm running the flatfly build under windows8. The wiki says a lot about what you can do in the command line interface - but nothing about how to run it??
legendary
Activity: 1092
Merit: 1016
760930
Yeah AHK is often a great answer to this type of little problems Smiley

PS: I'm actually working on a new, purely AHK-based solution for optimized
Windows builds. That would (finally) make my build process fully open source
and deterministic Smiley
sr. member
Activity: 257
Merit: 250
Not trusting third parties with my private keys
Is there any way to sign a message with an address using electrum?  I want to quit using the satoshi client completely.

Is there a way to copy the signed message to the clipboard fast?  It's annoying to select it.

Not that I know of, as of the current release, but I could provide a quick/unofficial patch that automatically copies the signed message to the clipboard, if you're interested.

That would be great!

Here you go! This is a simple mod of the wallet.py file that automatically copies signatures to the clipboard.

To use it, make sure you are running Windows build 1.01e of Electrum,

 go to this directory: %AppData%\Electrum_SysFiles\1.01-e\C_\ElectrumPY\lib
 and replace the original wallet.py file in there with the one below:

Download
Size: 41686 bytes
SHA1: d18a4d273105a80a2e655ddabc2513dd004053ec

(for your info, the only source code changes are lines 477-478 and importing the Qt library - feel free to manually review the file if you're familiar with Python)

Just found a real easy way to do this.  You can append "| clip" to a command and windows 7/vista will copy the output to clipboard.
http://www.howtogeek.com/howto/28473/how-to-copy-output-text-from-the-command-line-to-the-windows-clipboard/

I just used autohotkey to enter "electrum signmessage bitcoinaddress", paste the message, and then autohotkey "| clip" and the signed message is copied to clipboard.
legendary
Activity: 1092
Merit: 1016
760930
@flatfly: I am making here the same remark as I made in bitcats thread. (https://bitcointalksearch.org/topic/m.1445858)

Electrum is free software, released under the GNU GPL Licence.
This means that third parties who distribute builds must publish the source code they used to create the build, the compiling instructions for the build, and any modification they made to the code.

I do not think that using commercial software to create your builds is in itself a violation of the licence.
However, all the modifications you have made to the original code must be published, as well as the method you used to create the build.


Agreed, I will publish that on my web page. 
legendary
Activity: 1896
Merit: 1353
@flatfly: I am making here the same remark as I made in bitcats thread. (https://bitcointalksearch.org/topic/m.1445858)

Electrum is free software, released under the GNU GPL Licence.
This means that third parties who distribute builds must publish the source code they used to create the build, the compiling instructions for the build, and any modification they made to the code.

I do not think that using commercial software to create your builds is in itself a violation of the licence.
However, all the modifications you have made to the original code must be published, as well as the method you used to create the build.

hero member
Activity: 938
Merit: 1000
With all this url switching, have you considered just getting a top level domain so you can change the DNS whenever you move servers. That way people always know where to find your builds Smiley
legendary
Activity: 1092
Merit: 1016
760930
Hi Flatfly,

I like the new page layout !

Have you thought of creating a PGP key and signing the installers ?
I started doing it for multibit a couple of weeks ago and it does not take long to set up.
It was just a matter of installing gpg, creating a key and uploading it to a keyserver.

That way people can verify the download was really built by you. It also makes it easier/safer for other people to mirror your downloads which might be useful in the future if and when Bitcoin gets more popular.

:-)

Thanks for the suggestion! Signing my builds has been on my to-do list for a while, actually. So, coming soon Smiley
legendary
Activity: 1092
Merit: 1016
760930
I like new design... Nice job flatfly!


Glad you like it! However, the Qt framework deserves most of the credit, not me Smiley
legendary
Activity: 1708
Merit: 1066
Hi Flatfly,

I like the new page layout !

Have you thought of creating a PGP key and signing the installers ?
I started doing it for multibit a couple of weeks ago and it does not take long to set up.
It was just a matter of installing gpg, creating a key and uploading it to a keyserver.

That way people can verify the download was really built by you. It also makes it easier/safer for other people to mirror your downloads which might be useful in the future if and when Bitcoin gets more popular.

:-)
donator
Activity: 674
Merit: 523
I like new design... Nice job flatfly!
legendary
Activity: 1092
Merit: 1016
760930
A stable build for new release 1.5.8 is now available.

Reminder - note that my URL has changed:  http://dre.natverk.org/elecwin.htm
Pages:
Jump to: