You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure functions doesn't have support for poetry.lock file. When you run func azure functionapp publish databricks-rest-interface for deploying your code, requirements.txt is needed. I decided to poetry export -f requirements.txt -o requirements.txt and do the deployment that way. When I run func azure functionapp publish databricks-rest-interface again I get an error:
ERROR: Could not find a version that satisfies the requirement pywin32==302 (from -r requirements.txt (line 23)) (from versions: none)
ERROR: No matching distribution found for pywin32==302 (from -r requirements.txt (line 23))
When I go to the pywin32 repo the release version is not 302 but rather b302?
I decided to modify the file manually and still get the same error
ERROR: Could not find a version that satisfies the requirement pywin32==b302 (from -r requirements.txt (line 295)) (from versions: none)
ERROR: No matching distribution found for pywin32==b302 (from -r requirements.txt (line 295))
WARNING: You are using pip version 20.2.3; however, version 21.3.1 is available.
You should consider upgrading via the '/tmp/oryx/platforms/python/3.9.7/bin/python3.9 -m pip install --upgrade pip' command.
Done in 4 sec(s).
ERROR: Could not find a version that satisfies the requirement pywin32==b302 (from -r requirements.txt (line 295)) (from versions: none)\nERROR: No matching distribution found for pywin32==b302 (from -r requirements.txt (line 295))
I'm not sure now if this ash to do with poetry or not? 🤔
Activity
redeemefy commentedon Nov 18, 2021
I decided to modify the file manually and still get the same error
I'm not sure now if this ash to do with poetry or not? 🤔
redeemefy commentedon Nov 20, 2021
Doing further investigation I ran the command
poetry show --treeI went to the code for
portalockerand looks like they are requiringpywin32when the OS is Windows?https://github.com/WoLpH/portalocker/blob/3025e66895ce819d806ac7201041af9d0b4f67bb/setup.py#L142
I'm not sure how poetry could be even smarter and know not to include this dependency since I'm developing in MacBook.
dimbleby commentedon Nov 20, 2021
duplicate #3511, fixed at #4686
redeemefy commentedon Nov 20, 2021
I just figured that I'm not in the latest Poetry version. I'm trying to upgrade Poetry and it doesn't upgrade.

dimbleby commentedon Nov 20, 2021
the fix is not in any released version, so even if you get your upgrade working it won't help.
dimbleby commentedon Apr 3, 2022
#4686 did make it into a 1.1 release, please close
github-actions commentedon Mar 1, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.