Bitcoin Forum
May 02, 2024, 09:43:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error Compiling P2Pool Scrypt  (Read 2648 times)
NightAss (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
April 15, 2013, 03:10:15 PM
 #1

trying to install p2pool on windows and for personal reasons I don't want to use the p2pool exe ver

Code:
C:\Documents and Settings\admin>cd..

C:\Documents and Settings>cd..

C:\>cd p2pool

C:\p2pool>cd litecoin_scrypt

C:\p2pool\litecoin_scrypt>C:\Python27\python.exe setup.py build --compile=mingw3
2 install
running build
running build_ext
building 'ltc_scrypt' extension
gcc -mno-cygwin -mdll -O -Wall -I. -IC:\Python27\include -IC:\Python27\PC -c scr
yptmodule.c -o build\temp.win32-2.7\Release\scryptmodule.o
error: command 'gcc' failed: No such file or directory

C:\p2pool\litecoin_scrypt>

how can I get this to work?

1714686216
Hero Member
*
Offline Offline

Posts: 1714686216

View Profile Personal Message (Offline)

Ignore
1714686216
Reply with quote  #2

1714686216
Report to moderator
1714686216
Hero Member
*
Offline Offline

Posts: 1714686216

View Profile Personal Message (Offline)

Ignore
1714686216
Reply with quote  #2

1714686216
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714686216
Hero Member
*
Offline Offline

Posts: 1714686216

View Profile Personal Message (Offline)

Ignore
1714686216
Reply with quote  #2

1714686216
Report to moderator
1714686216
Hero Member
*
Offline Offline

Posts: 1714686216

View Profile Personal Message (Offline)

Ignore
1714686216
Reply with quote  #2

1714686216
Report to moderator
1714686216
Hero Member
*
Offline Offline

Posts: 1714686216

View Profile Personal Message (Offline)

Ignore
1714686216
Reply with quote  #2

1714686216
Report to moderator
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 513



View Profile
April 15, 2013, 03:32:40 PM
 #2

Looks like C:\mingw\bin is not in your path.
Do this first before you try to build the scrypt support:
Code:
set path=%PATH%;C:\mingw\bin

NightAss (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
April 15, 2013, 04:11:49 PM
 #3

Code:
C:\p2pool>cd..

C:\>set path=%PATH%;C:\mingw\bin

C:\>cd /p2pool/litecoin_scrypt

C:\p2pool\litecoin_scrypt>C:\Python27\python.exe setup.py build --compile=mingw3
2 install
running build
running build_ext
building 'ltc_scrypt' extension
C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -I. -IC:\Python27\include -IC:\P
ython27\PC -c scryptmodule.c -o build\temp.win32-2.7\Release\scryptmodule.o
gcc: error: CreateProcess: No such file or directory
error: command 'gcc' failed with exit status 1

C:\p2pool\litecoin_scrypt>

I think its a new error and new is all ways better

exit status 1 looks new
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 513



View Profile
April 15, 2013, 04:52:54 PM
Last edit: April 15, 2013, 05:03:08 PM by Schleicher
 #4

Ok, looks like you have to do it differently.
Try this:
  • Right-click 'My Computer' and select 'Properties'
  • Click the 'Advanced' tab, then 'Environment Variables'.
    This opens the Environment Variables dialog.
  • In the top 'User variables for' pane, select 'PATH' and click 'Edit'.
    If there is no 'PATH' variable, click on 'New' to create it.
  • Add C:\mingw\bin
It should look like this (my Windows version is german):

NightAss (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
April 15, 2013, 05:21:37 PM
Last edit: April 15, 2013, 05:56:29 PM by NightAss
 #5

Code:
C:\>cd p2pool

C:\p2pool>cd litecoin_script
The system cannot find the path specified.

C:\p2pool>cd litecoin_scrypt

C:\p2pool\litecoin_scrypt>C:\Python27\python.exe setup.py build --compile=mingw3
2 install
running build
running build_ext
building 'ltc_scrypt' extension
gcc -mno-cygwin -mdll -O -Wall -I. -IC:\Python27\include -IC:\Python27\PC -c scr
yptmodule.c -o build\temp.win32-2.7\Release\scryptmodule.o
error: command 'gcc' failed: No such file or directory

C:\p2pool\litecoin_scrypt>

I all so went to the dir it self and it was spelt C:\MinGW\bin so i tryed it with the same caps and so on

 same error so did not bother to display it




in the read me for p2pool it says this

     cd litecoin_scrypt
            C:\Python27\python.exe setup.py build --compile=mingw32 install

            If you run into an error with unrecognized command line option '-mno-cygwin', see this:
                http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

but the link is no help at all


thanks for trying to help me fyi been working on this for like 4 days
    
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 513



View Profile
April 15, 2013, 06:59:40 PM
 #6

Rav3n_pl had some problems too. Looks like it doesn't work with 64bit Windows.
https://bitcointalk.org/index.php?topic=18313.msg1284036#msg1284036
He has the compiled files on his Skydrive, just unzip them into the Python directory:
http://sdrv.ms/NtmDt5

NightAss (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
April 15, 2013, 08:46:50 PM
 #7

Code:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\admin>cd..

C:\Documents and Settings>cd..

C:\>cd p2pool

C:\p2pool>python run_p2pool.py --help
C:\p2pool\p2pool\main.py:76: Warning: 'with' will become a reserved keyword in P
ython 2.6
Traceback (most recent call last):
  File "run_p2pool.py", line 3, in <module>
    from p2pool import main
  File "C:\p2pool\p2pool\main.py", line 76
    with open(address_path, 'rb') as f:
            ^
SyntaxError: invalid syntax

C:\p2pool>python run_p2pool.py --help
C:\p2pool\p2pool\main.py:76: Warning: 'with' will become a reserved keyword in P
ython 2.6
Traceback (most recent call last):
  File "run_p2pool.py", line 3, in <module>
    from p2pool import main
  File "C:\p2pool\p2pool\main.py", line 76
    with open(address_path, 'rb') as f:
            ^
SyntaxError: invalid syntax

C:\p2pool>run_p2pool.py --help
Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 563, in <module>
    main()
  File "C:\Python27\lib\site.py", line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "C:\Python27\lib\site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "C:\Python27\lib\site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "C:\Python27\lib\site.py", line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "C:\Python27\lib\sysconfig.py", line 472, in get_config_var
    return get_config_vars().get(name)
  File "C:\Python27\lib\sysconfig.py", line 405, in get_config_vars
    import re
  File "C:\Python27\lib\re.py", line 105, in <module>
    import sre_compile
  File "C:\Python27\lib\sre_compile.py", line 14, in <module>
    import sre_parse
  File "C:\Python27\lib\sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "C:\Python27\lib\sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT

C:\p2pool>run_p2pool.py
Traceback (most recent call last):
  File "C:\Python27\lib\site.py", line 563, in <module>
    main()
  File "C:\Python27\lib\site.py", line 545, in main
    known_paths = addusersitepackages(known_paths)
  File "C:\Python27\lib\site.py", line 278, in addusersitepackages
    user_site = getusersitepackages()
  File "C:\Python27\lib\site.py", line 253, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "C:\Python27\lib\site.py", line 243, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "C:\Python27\lib\sysconfig.py", line 472, in get_config_var
    return get_config_vars().get(name)
  File "C:\Python27\lib\sysconfig.py", line 405, in get_config_vars
    import re
  File "C:\Python27\lib\re.py", line 105, in <module>
    import sre_compile
  File "C:\Python27\lib\sre_compile.py", line 14, in <module>
    import sre_parse
  File "C:\Python27\lib\sre_parse.py", line 17, in <module>
    from sre_constants import *
  File "C:\Python27\lib\sre_constants.py", line 18, in <module>
    from _sre import MAXREPEAT
ImportError: cannot import name MAXREPEAT

C:\p2pool>python run_p2pool.py --help

well new errors thats all ways good  as thay say a change is as good as a holerday

I just wish there was a way you could remote in to my pc and set it up for me  how much would it cost? for u to do that?
Schleicher
Hero Member
*****
Offline Offline

Activity: 675
Merit: 513



View Profile
April 15, 2013, 09:11:46 PM
 #8

You better ask there:
https://bitcointalk.org/index.php?topic=18313.0
I'm not a python expert

NightAss (OP)
Member
**
Offline Offline

Activity: 85
Merit: 10


View Profile
April 15, 2013, 09:17:50 PM
 #9

thanks I will try my luck there

figgerd with 248 pages there I may go unherd

all so you may find it funny I am asking for help setting this up p2pool wile I am hosting http://ltc.cryptocoined.com/

that was is from the exe I need the .py to work for what I have in mind
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!