Closed prithvi2k2 closed 2 years ago
This problem crops up on a regular basis. Why pywin32 should appear on a requirements list for a Linux installation is a mystery. As the "win32" indicates, pywin32 is a Windows-only package which wraps Windows system calls. It does not, can not, and will never work on a Linux system (other than within WINE).
The requirements.txt file should add ; platform_system == "Windows"
to that line.
(I am a pywin32 maintainer.)
RUN pip install -r requirements.txt
Our project doesn't have a requirements.txt. Here are the instructions to get Docker up and running.
The requirements.txt file should add ; platform_system == "Windows"
We have added that. See here: https://github.com/ethereum/web3.py/blob/master/setup.py#L88
Closing, but feel free to reopen a new issue if you can't get this working on docker from @prithvi2k2.
Thanks for your time but I moved to pipenv, atleast for this project, it automatically skips packages which aren't built for linux. Pipenv solved my issue for now. So the culprit is PIP
pip freeze
outputWhat was wrong?
Please include any of the following that are applicable:
FROM python:3.9.12-alpine3.15
RUN pip install -r requirements.txt
This produces below error only when used with Docker build, and works fine in my local windows environmentHow can it be fixed?
Seems like they dropped support for pywin, a thread on same issue https://stackoverflow.com/questions/40981120/python-pip-cannot-find-pywin32-on-windows
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or have a feature request, you're in the right place. If you have implementation or usage questions, please refer to our documentation and/or join the conversation on discord.