metalicjames / lyra2re-hash-python Goto Github PK
View Code? Open in Web Editor NEWPython module for Vertcoin's Lyra2RE. Used by P2Pool, Stratum-Mining etc
License: Other
Python module for Vertcoin's Lyra2RE. Used by P2Pool, Stratum-Mining etc
License: Other
is it possible to create dll export function to use in .net using DLLImport?
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.