-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error instalation web3.py in linux subsystem for windows #531
Comments
Ran into this error trying to set up the ubuntu sub-system as well. This was helpful...I feel like there might have been another level of error beyond that too that needed fixing but happy to help if you reach that point. Also a problem I'm running into now with this set up is being able to run tests since loading conftest.py requires a comparison of a linux file path with a windows file path that is causing it to error out. So just beware that is on the horizon. Biggest thing would be getting rid of the ethereum dependency which requires the pkg-config install for windows. Which I know they are working on (a couple issues down). |
For posterity's sake...if you do run into the testing problem I mentioned above, my problem was with the pycache folders. So if you delete those before you run tests you should be fine. |
I have no familiarity with Ubuntu subsystem for Windows 10, but this is the core of the problem:
|
Today, I´ve tried to install web3.py in an ubuntu real system inside a VPS. The console has given me the same error like yesterday using ubuntu subsystem for windows. So, I proceeded to install gcc using the generic package manager from linux like you told me @carver . And, I had the following message (I´ve done this operation outside the virtualenv ) :
Then, I get into the virtual env executing the instruction from web3.py latest documentation:
After that, I tried again install web3 using:
But, the same issue:
I´ve tried the same installation gcc inside the virtualenv, but the same issue again. If we are talking about the ubuntu subsystem for windows, when I type:
I have the following answer:
That it´s maybe logical because the developers of this tool for windows have locked all access to files of ubuntu from users because it would cause issues in the system and possible damages in the Linux system. That´s why when I use this subsystem for programming...I have to manage and create the folders and files inside the windows system using the Linux command tool. @bweick I really do appreciate your contribution, but I don´t understand what are you trying to tell me. How did you fix the installation problem? removing the cache folder? Because I am not running tests still. |
I was just adding that comment about pycache for future reference if you ran into the same problem when you had the subsystem all set up. As for solving the current problem...I found that installing the packages outlined by Dana Friedlander in that StackOverflow post helped solve the problem. |
@jorgeog96 You're getting a different error, so the fix for @bweick won't work for you. It looks like you need the python header files, via something like |
Hello guys @carver , I tried
and I have the following error: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/root/.venv-py3/include/python3.5m -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.5/cytoolz/dicttoolz.o Failed building wheel for cytoolz
Command "/root/.venv-py3/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-813f7x07/cytoolz/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-l022867b-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.venv-py3/include/site/python3.5/cytoolz" failed with error code 1 in /tmp/pip-build-813f7x07/cytoolz/ |
Finally, I type something like you told me @bweick and I found out this post with a similar issue https://stackoverflow.com/questions/25675977/installing-pillow-error-setup-script-exited-with-error-command-x86-64-linux-g For me, install the dev package in this way works apparently:
I received the following output after the post: Successfully installed certifi-2017.11.5 chardet-3.0.4 cytoolz-0.9.0 eth-abi-0.5.0 eth-keyfile-0.4.1 eth-keys-0.1.0b4 eth-tester-0.1.0b10 eth-utils-0.7.4 idna-2.6 pycryptodome-3.4.7 pysha3-1.0.2 requests-2.18.4 rlp-0.6.0 semantic-version-2.6.0 urllib3-1.22 web3-3.16.4 So, thank you very much guys, now I can go ahead. |
I needed to do this.
|
Closing as this seems resolved. Comment if that's not the case. |
You may need to install those packages
|
What was wrong?
Error installation after the second try... In the first try was the same issue.
The text was updated successfully, but these errors were encountered: