Author

Topic: Error Compiling P2Pool Scrypt (Read 2651 times)

member
Activity: 85
Merit: 10
April 15, 2013, 05: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
hero member
Activity: 675
Merit: 513
member
Activity: 85
Merit: 10
April 15, 2013, 04: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
    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
    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
    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
    import sre_compile
  File "C:\Python27\lib\sre_compile.py", line 14, in
    import sre_parse
  File "C:\Python27\lib\sre_parse.py", line 17, in
    from sre_constants import *
  File "C:\Python27\lib\sre_constants.py", line 18, in
    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
    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
    import sre_compile
  File "C:\Python27\lib\sre_compile.py", line 14, in
    import sre_parse
  File "C:\Python27\lib\sre_parse.py", line 17, in
    from sre_constants import *
  File "C:\Python27\lib\sre_constants.py", line 18, in
    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?
hero member
Activity: 675
Merit: 513
April 15, 2013, 02:59:40 PM
#6
Rav3n_pl had some problems too. Looks like it doesn't work with 64bit Windows.
https://bitcointalksearch.org/topic/m.1284036
He has the compiled files on his Skydrive, just unzip them into the Python directory:
http://sdrv.ms/NtmDt5
member
Activity: 85
Merit: 10
April 15, 2013, 01:21:37 PM
#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
    
hero member
Activity: 675
Merit: 513
April 15, 2013, 12:52:54 PM
#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):
member
Activity: 85
Merit: 10
April 15, 2013, 12: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
hero member
Activity: 675
Merit: 513
April 15, 2013, 11:32:40 AM
#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
member
Activity: 85
Merit: 10
April 15, 2013, 11:10:15 AM
#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?

Jump to: