Supported Feathercoin client versions: Current production Version: 0.16.1.

Old Production Version: 0.16

Info: If you have problems to post, create one post in the ‘newbies’ category and try again. If you have further problems, find support under Guides

p2pool for core 0.16 question



  • When I updated the p2pool to the new version and attempt to run, I get the following error:

    p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\bitcoin\data.py", line 262, in address_to_pubkey_hash
    raise ValueError(‘address not for this net!’)

    Can anyone help me resolve it?


  • Regular Member

    @j1732 Have you specified --net feathercoin?



  • Yes, with only server=1, and user/pass (not really needed) in the feathercoin.conf file



  • just in case it’s helpful here’s the full stack trace:

    Fatal error:
    Traceback (most recent call last):
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 567, in _startRunCallbacks
    self._runCallbacks()
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 1386, in _inlineCallbacks
    result = g.send(result)
    — <exception caught here> —
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\main.py”, line 145, in main
    my_pubkey_hash = bitcoin_data.address_to_pubkey_hash(address, net.PARENT)
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\bitcoin\data.py”, line 262, in address_to_pubkey_hash
    raise ValueError(‘address not for this net!’)
    exceptions.ValueError: address not for this net!

    .bat file
    python run_p2pool.py --net feathercoin

    .conf file
    server=1
    rpcuser=node
    rpcpassword=youreamazingsecurepassword


  • Moderators

    @J1732
    You need to specify a payout address for feathercoin, the build in hard coded address is a bitcoin address.

    Here is my way to start it:

    run_p2pool.py -d A  --net feathercoin  --max-conns 40 --outgoing-conns 10 -a 6hKSRFNhahz3Hmf9hnxUnU9wvyXs8KZgcJ -f 1.0 --give-author 0 --w 19327  <rpc username from feathercoin.conf>  <rpc password from feathercoin.conf>
    

    The -a parameter is my feathercoin address, where the pool fee is payed to.



  • Okay, that resolved that error and now I get one about the neoscrypt dll, I’ve run the setup.py in the neoscrypt folder. What am I missing?

    Error while requesting best block header:
    Traceback (most recent call last):
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
    File “C:\Python27\lib\site-packages\twisted\python\failure.py”, line 422, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
    — <exception caught here> —
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\util\deferral.py”, line 41, in f
    result = yield func(*args, **kwargs)
    File “C:\Python27\lib\site-packages\twisted\internet\defer.py”, line 1386, in _inlineCallbacks
    result = g.send(result)
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\node.py”, line 218, in poll_header
    handle_header((yield self.factory.conn.value.get_block_header(self.bitcoind_work.value[‘previous_block’])))
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\node.py”, line 200, in handle_header
    if not (self.net.PARENT.POW_FUNC(bitcoin_data.block_header_type.pack(new_header)) <= self.bitcoind_work.value[‘bits’].target):
    File “C:…\Desktop\p2pool-neoscrypt-16\p2pool-neoscrypt-16\p2pool\bitcoin\networks\feathercoin.py”, line 17, in <lambda>
    POW_FUNC = lambda data: pack.IntType(256).unpack(import(‘neoscrypt’).getPoWHash(data))
    exceptions.ImportError: DLL load failed: The specified module could not be found.


  • Moderators

    You are missing he dll file containing the neoscrypt code.

    Did you perform the extra steps as described in the Requirements section of the README.md file?

    Especially

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

    That line creates the dll you are missing, but it does’t work, if you have not taken the other steps described in the README.md file.



  • Yes, I followed the steps in the readme. The neoscrypt installed into my site-packages folder. It’s still throwing that error. I’ve also added the site-packages folder into my path environment variable.


  • Moderators

    If you are on a windows server, it could be placed into the directory, where the windows dll are located. normally it should work, if the dll is in the same directory, where the p2pool binaries are, but honnestly I’ve no real clue, where windows searches for dll files.



  • I don’t have anything like a neoscrypt.dll file… I’ve got a neoscrypt.pyd and a neoscrypt.egg could one of these work?

    IF so, where would the p2pool code be looking for the dlls?


  • Moderators

    When you did the

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

    did you get any output? it should compile the neoscrypt module, so there should be some output of your c-compiler on the console/cmd window.

    Can you paste that output?

    Normally the command also should create a directory ‘build’ under the neoscrypt directory, which temporary holds the files.

    if you don’t have that directory try

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

    and check for the directory and it’s content.



  • When I run the setup.py for neoscrypt this is the output in the console;

    C:\Python27\Lib\site-packages\p2pool-neoscrypt-master\neoscrypt>python C:\Python27\Lib\site-packages\p2pool-neoscrypt-master\neoscrypt\setup.py build --compile=mingw32 install
    running build
    running build_ext
    running install
    running install_lib
    running install_egg_info
    Removing C:\Python27\Lib\site-packages\neoscrypt-1.0-py2.7.egg-info
    Writing C:\Python27\Lib\site-packages\neoscrypt-1.0-py2.7.egg-info

    C:\Python27\Lib\site-packages\p2pool-neoscrypt-master\neoscrypt>pause
    Press any key to continue . . .

    Which appears like it works correctly as the build directory is created.


  • Moderators

    @j1732 said in p2pool for core 0.16 question:

    running install_lib

    Writing C:\Python27\Lib\site-packages\neoscrypt-1.0-py2.7.egg-info

    I think, these are the important steps.
    install_lib installs the library
    Writing C:\Python27\Lib\site-packages\neoscrypt-1.0-py2.7.egg-info writes the information about the library like author, email address, license and platform.

    I’m at the end of my knowledge. 😞

    The only thing I can think of is, that the file extension of the created file is not dll.

    can you do anther setup.py, but without the final ‘install’ parameter?

    Then you can check the content of the build directory and see what the exact file name(s) of the creates file(s) is.

    I’m working on linux and have no experience with p2pool on windows.
    I found some hints with google ‘setup p2pool on windows’, but i’m not sure if that will help you, sorry



  • Running just the build creates the neoscrypt.pyd file. It seems like the issue is that the python scripts run when starting the pool just don’t know where to find it.

    It’s odd because I’ve run this setup guide on another windows machine and not had a single issue.


  • Moderators

    may be you can google, where python looks for the pyd files on windows?



  • yeah, I tried that with not much luck… the only thing I could find was a path issue, and I’ve added every directory I could think of to the path just to see if it helped. It didn’t.


  • Moderators

    [email protected] said in p2pool for core 0.16 question:

    yeah, I tried that with not much luck… the only thing I could find was a path issue, and I’ve added every directory I could think of to the path just to see if it helped. It didn’t.

    I hope you aded the path, where the pyd file was installed. 😉

    Also, did I get it right, that you got it working on another pc with the same OS?

    Then as a last try you could copy the whole p2pool directory form that pc to the one with problems and see if it works, but I’m guessing now.

    I have no idea anymore how to isolate and fix the problem 😞



  • ha! Yeah, I added the directory for the .pyd to the path variable 😃

    I tried copying over the whole folder and it was no good. I’m going to try a new install on a completely different machine and see what happens… this whole thing is just weird.


  • Moderators

    @j1732 said in p2pool for core 0.16 question:

    … this whole thing is just weird

    I more than agree…


  • Moderators

    @J1732

    any news here? did you get it working?