Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    p2pool for core 0.16 question

    Newbies - New Members Must Start Here
    pool mining p2pool
    4
    23
    7901
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      J1732 last edited by

      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.

      1 Reply Last reply Reply Quote 1
      • Wellenreiter
        Wellenreiter Moderators last edited by Wellenreiter

        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.

        Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
        Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

        1 Reply Last reply Reply Quote 1
        • J
          J1732 last edited by

          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.

          1 Reply Last reply Reply Quote 1
          • Wellenreiter
            Wellenreiter Moderators last edited by Wellenreiter

            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.

            Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
            Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

            1 Reply Last reply Reply Quote 1
            • J
              J1732 last edited by

              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?

              1 Reply Last reply Reply Quote 1
              • Wellenreiter
                Wellenreiter Moderators last edited by

                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.

                Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                1 Reply Last reply Reply Quote 1
                • J
                  J1732 last edited by

                  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.

                  Wellenreiter 1 Reply Last reply Reply Quote 0
                  • Wellenreiter
                    Wellenreiter Moderators @J1732 last edited by Wellenreiter

                    @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

                    Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                    Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                    1 Reply Last reply Reply Quote 0
                    • J
                      J1732 last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • Wellenreiter
                        Wellenreiter Moderators last edited by

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

                        Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                        Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                        1 Reply Last reply Reply Quote 0
                        • J
                          J1732 last edited by

                          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.

                          Wellenreiter 1 Reply Last reply Reply Quote 0
                          • Wellenreiter
                            Wellenreiter Moderators @J1732 last edited by Wellenreiter

                            m@j1732 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 :(

                            Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                            Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                            1 Reply Last reply Reply Quote 0
                            • J
                              J1732 last edited by

                              ha! Yeah, I added the directory for the .pyd to the path variable :D

                              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.

                              Wellenreiter 1 Reply Last reply Reply Quote 0
                              • Wellenreiter
                                Wellenreiter Moderators @J1732 last edited by

                                @j1732 said in p2pool for core 0.16 question:

                                … this whole thing is just weird

                                I more than agree…

                                Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                                Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                                1 Reply Last reply Reply Quote 0
                                • Wellenreiter
                                  Wellenreiter Moderators last edited by

                                  @J1732

                                  any news here? did you get it working?

                                  Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                                  Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                                  1 Reply Last reply Reply Quote 0
                                  • J
                                    J1732 last edited by

                                    Almost. I created a linux box and got everything to run and compile right. The only issue now is when I try and use an newly generated receipt address from my wallet it won’t work. Runs fine if I use the address you show in the example at the beginning.

                                    Any thoughts?

                                    AcidD 1 Reply Last reply Reply Quote 0
                                    • Wellenreiter
                                      Wellenreiter Moderators last edited by

                                      Feathercoin v0.16 generates bech32 adresses, which are not recognized by the current p2pool versions.

                                      Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                                      Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                                      1 Reply Last reply Reply Quote 0
                                      • AcidD
                                        AcidD Moderators @J1732 last edited by

                                        @j1732 said in p2pool for core 0.16 question:

                                        Almost. I created a linux box and got everything to run and compile right. The only issue now is when I try and use an newly generated receipt address from my wallet it won’t work. Runs fine if I use the address you show in the example at the beginning.

                                        Any thoughts?

                                        So i think feathercoin core 0.16 and onwards will default to segwit / bech32 addresses.

                                        To generate a legacy address that’s you can use the feathecoin-cli

                                        the command would be something like

                                        feathercoin-cli getnewaddress "AddressLabel" "address_type"

                                        so for you, you could do something like

                                        feathercoin-cli getnewaddress "PoolWallet" "legacy"

                                        • FTC Block Explorer + API @ https://fsight.chain.tips
                                        • FTC Beer Money: 6x4LEQV88zRnBvZoH6ZNK6SeRxx4KiTyJs
                                        • FTC bech32 address: fc1q4tclm3cv4v86ez6el76ewmharexfapxhek5a03
                                        • BTC bech32 address: bc1qk8umuccapuafspk9e5szahvp0detafuzugv4ay

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post