Author

Topic: Hilfe! Installation P2Pool für Altcoins (Read 1218 times)

full member
Activity: 223
Merit: 100
September 10, 2015, 10:36:46 AM
#3
kompilieren ist vielleicht das falsche Wort. Unter Windows muss man unter anderem folgende Schritte durchführen

Go to https[Suspicious link removed]#md5=31ef47dc10ff13a81a0cb8e6a98a0819
 Download 'WMI-1.4.9.win32.exe (md5)'
 Install WMI



Go to https://github.com/develersrl/gccwinbinaries/releases
 Click the green button 'gcc-mingw-4.3.3-setup.exe'
 Run the installer.
 Make sure to select the radio button 'Link with MSVCR90.DLL'



Go to https[Suspicious link removed]/download
 Download 'pywin32-218.win32-py2.7.exe'
 Install pywin32


 Open a new command prompt
 CD to p2pool file save location and into the subfolder litecoin_scrypt

cd /p2pool-ltc/litecoin_scrypt

 Run the following:

setup.py build --compile=mingw32 install

 If you do not already have Litecoin-qt installed/running, create a litecoin.conf file using a text editor, otherwise modify your existing .conf file as shown:

 CD to %appdata%/litecoincoin/ (for win7)

cd %appdata%/litecoin/
 notepad litecoin.conf

Bei dem Punkt Setup.py build ... erscheint die oben aufgeführte Fehlermeldung. Die Installation wird mit Admin-Rechten durchgeführt.
Starte ich die run_p2pool.py nach der fehlgeschlagenen Installation von mingw32, dann erscheint folgendes:

2015-09-10 16:00:08.027000
2015-09-10 16:00:08.027000 Loading shares...
2015-09-10 16:00:08.028000     ...done loading 0 shares (0 verified)!
2015-09-10 16:00:08.028000
2015-09-10 16:00:08.028000 Initializing work...
2015-09-10 16:00:08.136000 > Unhandled error in Deferred:
2015-09-10 16:00:08.138000 > Unhandled Error
2015-09-10 16:00:08.138000 > Traceback (most recent call last):
2015-09-10 16:00:08.138000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 382, in callback
2015-09-10 16:00:08.138000 >     self._startRunCallbacks(result)
2015-09-10 16:00:08.139000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 490, in _startRunCallbacks
2015-09-10 16:00:08.139000 >     self._runCallbacks()
2015-09-10 16:00:08.140000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 577, in _runCallbacks
2015-09-10 16:00:08.140000 >     current.result = callback(current.result, *args
, **kw)
2015-09-10 16:00:08.140000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 1155, in gotResult
2015-09-10 16:00:08.141000 >     _inlineCallbacks(r, g, deferred)
2015-09-10 16:00:08.141000 > --- ---
2015-09-10 16:00:08.141000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 1099, in _inlineCallbacks
2015-09-10 16:00:08.142000 >     result = g.send(result)
2015-09-10 16:00:08.142000 >   File "C:\P2Pool-BQC\p2pool-altcoins-master\p2pool
\node.py", line 210, in poll_header
2015-09-10 16:00:08.142000 >     handle_header((yield self.factory.conn.value.ge
t_block_header(self.bitcoind_work.value['previous_block'])))
2015-09-10 16:00:08.142000 >   File "C:\P2Pool-BQC\p2pool-altcoins-master\p2pool
\node.py", line 192, in handle_header
2015-09-10 16:00:08.143000 >     if not (self.net.PARENT.POW_FUNC(bitcoin_data.b
lock_header_type.pack(new_header)) <= self.bitcoind_work.value['bits'].target):
2015-09-10 16:00:08.143000 >   File "C:\P2Pool-BQC\p2pool-altcoins-master\p2pool
\bitcoin\networks.py", line 232, in
2015-09-10 16:00:08.143000 >     POW_FUNC=lambda data: pack.IntType(256).unpack(
__import__('ltc_scrypt').getPoWHash(data)),
2015-09-10 16:00:08.144000 > exceptions.ImportError: No module named ltc_scrypt
2015-09-10 16:00:08.146000 > Error while requesting best block header:
2015-09-10 16:00:08.147000 > Traceback (most recent call last):
2015-09-10 16:00:08.147000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 577, in _runCallbacks
2015-09-10 16:00:08.147000 >     current.result = callback(current.result, *args
, **kw)
2015-09-10 16:00:08.147000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 1155, in gotResult
2015-09-10 16:00:08.148000 >     _inlineCallbacks(r, g, deferred)
2015-09-10 16:00:08.148000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 1097, in _inlineCallbacks
2015-09-10 16:00:08.148000 >     result = result.throwExceptionIntoGenerator(g)
2015-09-10 16:00:08.149000 >   File "C:\Python27\lib\site-packages\twisted\pytho
n\failure.py", line 389, in throwExceptionIntoGenerator
2015-09-10 16:00:08.149000 >     return g.throw(self.type, self.value, self.tb)
2015-09-10 16:00:08.149000 > --- ---
2015-09-10 16:00:08.149000 >   File "C:\P2Pool-BQC\p2pool-altcoins-master\p2pool
\util\deferral.py", line 41, in f
2015-09-10 16:00:08.150000 >     result = yield func(*args, **kwargs)
2015-09-10 16:00:08.150000 >   File "C:\Python27\lib\site-packages\twisted\inter
net\defer.py", line 1099, in _inlineCallbacks
2015-09-10 16:00:08.150000 >     result = g.send(result)
2015-09-10 16:00:08.150000 >   File "C:\P2Pool-BQC\p2pool-altcoins-master\p2pool
\node.py", line 210, in poll_header
2015-09-10 16:00:08.151000 >     handle_header((yield self.factory.conn.value.ge

Somit ist die "Kompilierung" von mingw anscheinend notwendig, weil andere P2Pools auf dem Server laufen, somit grundsätzlich kein Installationsproblem zu sein.

Vielen Dank.
sr. member
Activity: 373
Merit: 250
September 10, 2015, 06:54:00 AM
#2
das scrypt-modul macht wohl probleme ( dir ist klar dass du das für keines der drei genannten coins brauchst? )

ich weiss nicht was man bei windows beachten muss (adminrechte? ), aber unter linux installiert man es so:

git clone https://github.com/forrestv/p2pool
cd p2pool
cd litecoin_scrypt
python setup.py install
cd ..
python run_p2pool.py --net litecoin [ + weitere argumente... ]

warum eigentlich kompillieren und mingw? sollte python nicht nativ unter windows laufen?
full member
Activity: 223
Merit: 100
September 10, 2015, 01:56:10 AM
#1
Guten Morgen zusammen,

ich lese seit länger Zeit aufmerksam die Einträger hier im Forum und habe mich entschlossen endlich anzumelden.
Seit einiger Zeit betreibe ich meinen eigenen P2Pool für Bitcoins, Terracoins und Mazacoins. Jetzt versuche ich mich an der Installation eines P2Pools für Altcoins, leider erhalte ich immer wieder beim Compilieren des Mingw-Moduls folgenden "Fehler":

c:\mingw\bin\gcc.exe -shared -s build\temp.win-amd64-2.7\Release\scryptmodule.o build\temp.win-amd64-2.7\Release\scrypt.o build\temp.win-amd64-2.7\Release\ltc_scrypt.def -LC:\Python27-64\libs -LC:\Python27-64\PCbuild\amd64 -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\ltc_scrypt.pyd
scryptmodule.c: In function 'scrypt_getpowhash':
scryptmodule.c:15:5: warning: implicit declaration of function 'scrypt_1024_1_1_256' [-Wimplicit-function-declaration]
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0x1e): undefined reference to `__imp__PyArg_ParseTuple'
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0x35): undefined reference to `__imp__PyMem_Malloc'
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0x44): undefined reference to `__imp__PyString_AsString'
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0x83): undefined reference to `__imp__Py_BuildValue'
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0x8e): undefined reference to `__imp__PyMem_Free'
build\temp.win-amd64-2.7\Release\scryptmodule.o:scryptmodule.c:(.text+0xcd): undefined reference to `__imp__Py_InitModule4'
collect2.exe: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Ich habe die Installation auf einem Windows 2008 R2 Server und einem Windows 7 64 Bit System versucht.
Folgenden Komponenten sind installiert:

- Python 2.7 (32 BIT)
- Twisted 13.2
- Zope Interface
- Python Apis
- neuste Mingw-Version

Vielen Dank für die Hilfe.

Gruß

Zimbo
Jump to: