-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
[Poetry]: Can't install xlwings; Could not find a version that satisfies the requirement pywin32==227
#1265
Comments
It's in fact a poetry issue, same as here: python-poetry/poetry#1287 |
Could not find a version that satisfies the requirement pywin32==227
Could not find a version that satisfies the requirement pywin32==227
[wheels would fix]
It seems that xlwings needs to switch to the environment markers specification. Something like this in install_requires = [
"pywin32>=224; sys_platform==win; python_version>=3.7",
"pywin32; sys_platform==win; python_version<3.7",
"psutil>=2.0.0; sys_platform==darwin",
"appscript>=1.0.1; sys_platform==darwin",
] However, I'm not sure how to handle the data_files in this case, since they are in different locations between windows and MacOS. It's unfortunate that xlwings currently doesn't work with poetry, so I'd like to fix that. |
are you using poetry? |
Yes, and the error is still the same as the OP |
Perhaps the way around the issue with setup.py is to use pathlib.symlink_to in init.py, which completely removes the need for data_files. |
for the time being, you should be able to install pywin32 directly, correct? |
The issue is on MacOS. Poetry somehow skips the sys.platform code and tries to install pywin32 on Mac. |
gotcha |
Could not find a version that satisfies the requirement pywin32==227
[wheels would fix]Could not find a version that satisfies the requirement pywin32==227
[wheels would fix]
+1 also having this issue! |
PyPy3 is not support per pywin32, would it be possible to switch to alternate ctypes thing ? like in jupyter/jupyter_core#230 |
see #1603 |
Could not find a version that satisfies the requirement pywin32==227
[wheels would fix]Could not find a version that satisfies the requirement pywin32==227
OS
macOS Mojave
Versions of xlwings, Excel and Python
Python 3.7.4
Describe your issue (incl. Traceback!)
When I install xlwings, it gives an error. (I use
poetry
if that makes any difference. But I think it shouldn't since it usespip
under the hood.)The text was updated successfully, but these errors were encountered: