Giter VIP home page Giter VIP logo

lyra2re-hash-python's People

Contributors

darrenturn90 avatar metalicjames avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lyra2re-hash-python's Issues

Issues with Sponge.h file

I'm having issues with the https://github.com/vertcoin/p2pool-vtc "Running P2Pool" description not working on a Windows machine. When I try running "setup.py" they mention, which adds lyra2re-hash-python as a dependency, or even using "pip install lyra2re2-hash==1.1.2" to install this manually, I 'm getting errors about the Sponge.h file:

Any help would be appreciated.

Installed c:\python27\lib\site-packages\p2pool_vtc-0.2.0-py2.7.egg
Processing dependencies for p2pool-vtc==0.2.0
Searching for lyra2re2-hash
Reading https://pypi.python.org/simple/lyra2re2-hash/
Downloading https://pypi.python.org/packages/38/e1/c449b7e9709a5f328068fe4e0346db67368f58d8ece7f3f4d38a470bdc2b/lyra2re2_hash-1.1.2.tar.gz#md5=29428ca65251f31d98af2d8bf7c90b4f
Best match: lyra2re2-hash 1.1.2
Processing lyra2re2_hash-1.1.2.tar.gz
Writing c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\setup.cfg
Running lyra2re2_hash-1.1.2\setup.py -q bdist_egg --dist-dir c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\egg-dist-tmp-ohauyl
lyra2re2module.c
Lyra2RE.c
Sponge.c
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2054: expected '(' to follow 'inline'
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2085: 'rotr64' : not in formal parameter list
c:\users\omniface\appdata\local\temp\easy_install-bdjcks\lyra2re2_hash-1.1.2\Sponge.h(46) : error C2143: syntax error : missing ';' before '{'
Sponge.c(40) : error C2054: expected '(' to follow 'inline'
Sponge.c(40) : error C2082: redefinition of formal parameter 'initState'
Sponge.c(40) : error C2143: syntax error : missing ';' before '{'
Sponge.c(59) : error C2054: expected '(' to follow 'inline'
Sponge.c(59) : error C2085: 'blake2bLyra' : not in formal parameter list
Sponge.c(59) : error C2143: syntax error : missing ';' before '{'
Sponge.c(78) : error C2054: expected '(' to follow 'inline'
Sponge.c(78) : error C2085: 'reducedBlake2bLyra' : not in formal parameter list
Sponge.c(78) : error C2143: syntax error : missing ';' before '{'
Sponge.c(90) : error C2054: expected '(' to follow 'inline'
Sponge.c(90) : error C2082: redefinition of formal parameter 'squeeze'
Sponge.c(90) : error C2143: syntax error : missing ';' before '{'
Sponge.c(112) : error C2054: expected '(' to follow 'inline'
Sponge.c(112) : error C2082: redefinition of formal parameter 'absorbBlock'
Sponge.c(112) : error C2143: syntax error : missing ';' before '{'
Sponge.c(138) : error C2054: expected '(' to follow 'inline'
Sponge.c(138) : error C2082: redefinition of formal parameter 'absorbBlockBlake2Safe'
Sponge.c(138) : error C2143: syntax error : missing ';' before '{'
Sponge.c(164) : error C2054: expected '(' to follow 'inline'
Sponge.c(164) : error C2082: redefinition of formal parameter 'reducedSqueezeRow0'
Sponge.c(164) : error C2143: syntax error : missing ';' before '{'
Sponge.c(199) : error C2054: expected '(' to follow 'inline'
Sponge.c(199) : error C2082: redefinition of formal parameter 'reducedDuplexRow1'
Sponge.c(199) : error C2143: syntax error : missing ';' before '{'
Sponge.c(259) : error C2054: expected '(' to follow 'inline'
Sponge.c(259) : error C2082: redefinition of formal parameter 'reducedDuplexRowSetup'
Sponge.c(259) : error C2143: syntax error : missing ';' before '{'
Sponge.c(333) : error C2054: expected '(' to follow 'inline'
Sponge.c(333) : error C2082: redefinition of formal parameter 'reducedDuplexRow'
Sponge.c(333) : error C2143: syntax error : missing ';' before '{'
Sponge.c(739) : warning C4018: '<' : signed/unsigned mismatch
error: Setup script exited with error: command 'C:\Users\OmniFace\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2

unable to load extension modules compiled with pypy v7.0.0

I compile this module pypy v7.0.0

pypy setup.py install --record files.txt

When working, I get the following error:


Error while requesting best block header:
Traceback (most recent call last):
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
  File "/opt/lyra2re3/p2pool-vtc/p2pool/util/deferral.py", line 41, in f
    result = yield func(*args, **kwargs)
  File "/usr/local/lib/pypy2.7/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/opt/lyra2re3/p2pool-vtc/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 "/opt/lyra2re3/p2pool-vtc/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 "/opt/lyra2re3/p2pool-vtc/p2pool/bitcoin/networks/vertcoin.py", line 17, in <lambda>
    POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('lyra2re3_hash').getPoWHash(data))
  File "/usr/local/lib/pypy2.7/dist-packages/lyra2re2_hash-1.2.1-py2.7-linux-x86_64.egg/lyra2re3_hash.py", line 7, in <module>
    __bootstrap__()
  File "/usr/local/lib/pypy2.7/dist-packages/lyra2re2_hash-1.2.1-py2.7-linux-x86_64.egg/lyra2re3_hash.py", line 6, in __bootstrap__
    imp.load_dynamic(__name__,__file__)
exceptions.ImportError: unable to load extension module '/usr/local/lib/pypy2.7/dist-packages/lyra2re2_hash-1.2.1-py2.7-linux-x86_64.egg/lyra2re3_hash.pypy-41-x86_64-linux-gnu.so': /usr/local/lib/pypy2.7/dist-packages/lyra2re2_hash-1.2.1-py2.7-linux-x86_64.egg/lyra2re3_hash.pypy-41-x86_64-linux-gnu.so: undefined symbol: _Py_Dealloc

2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.