-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: windows 10 pip install eth-ape
fails building pyethhash
error: 'alloca.h': No such file or directory
#91
Comments
also experiencing this in anaconda for windows |
Have you tried adding Reference: last comment here ethereum/ethash#87 |
No i have not, I think that @lost-theory was working on trying to resolve this as well so may have some helpful inputs |
Yes, I tried that
Note that the patch in step 2 may be removing some important code. It's not a real fix, just a workaround I came up with to see if the package would build. |
Very up to date fork of ethash that doesn't seem to support Windows: https://github.com/chfast/ethash |
This is the definitive issue on what's blocking Windows support, with next steps on how to fix the issue and making a new release (if pyethash was still maintained): |
So, one thing that would help here is to remove the Otherwise, the trick would be to make some modifications to |
### What I did Added Windows support for the Hardhat network provider. ### How I did it See ApeWorX/ape#91 (comment) for steps on installing Ape on Windows. Once I got that to work, all that was needed was a small amount of OS-specific code to manage the Hardhat process on Windows. ### How to verify it No CI support yet (blocked by ApeWorX/ape#91) but the test suite is passing locally for me: ``` PS C:\Users\orayo\Documents\steve\ape-hardhat> ..\ape-env\Scripts\pytest.exe === test session starts === platform win32 -- Python 3.8.6, pytest-6.2.5, py-1.10.0, pluggy-0.13.1 rootdir: C:\Users\orayo\Documents\steve\ape-hardhat, configfile: pytest.ini plugins: hypothesis-6.23.0, cov-2.12.1, forked-1.3.0, xdist-2.4.0, web3-5.23.1 gw0 [17] / gw1 [17] / gw2 [17] / gw3 [17] ................. [100%] === warnings summary === tests/test_hardhat.py::test_rpc_methods[get_balance-args1-0] c:\users\orayo\documents\steve\ape-env\lib\site-packages\web3\method.py:215: DeprecationWarning: getBalance is deprecated in favor of get_balance warnings.warn( tests/test_hardhat.py::test_rpc_methods[get_nonce-args0-0] c:\users\orayo\documents\steve\ape-env\lib\site-packages\web3\method.py:215: DeprecationWarning: getTransactionCount is deprecated in favor of get_transaction_count warnings.warn( tests/test_hardhat.py::test_rpc_methods[get_code-args2-] c:\users\orayo\documents\steve\ape-env\lib\site-packages\web3\method.py:215: DeprecationWarning: getCode is deprecated in favor of get_code warnings.warn( -- Docs: https://docs.pytest.org/en/stable/warnings.html === 17 passed, 3 warnings in 61.00s (0:01:01) === ```
pip install eth-ape
fails building pyethhash
error: 'alloca.h': No such file or directory
pip install eth-ape
fails building pyethhash
error: 'alloca.h': No such file or directory
No CI support yet this ticket blocked lost-theory in ApeWorX/ape-hardhat#2 |
I installed the APE on Windows, using this workaround to install ethash ethereum/ethash#131 But it still has problems. For example, |
We think we fixed the weird Enum problem here: #1745 |
Oh yes, it's quite a coincidence that MR 3 hours ago fixed my issue. I checked the master branch, and it's working! Thank you. |
Yes that was odd timing! However, I am pretty happy you found a way to get it working on windows 10 and I would like to both document this and include the |
Great! |
this is no longer an issue - ever since: Windows support isn't 100% there yet, but this specific problem has been resolved since: ethereum/py-evm#2121 and Ape is using later versions of eth dependencies already. however we are not 100% windows compat yet. |
Environment information
ape
and plugin versions:What went wrong?
PS> pip install eth-ape
errors installingpyethhash
dependencyfatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
How can it be fixed?
upstream issue in
pyethhash
Consensys/ethjsonrpc#5The text was updated successfully, but these errors were encountered: