Poetry tries to install url dependency with platform='linux' on macOS #8106
Labels
area/solver
Related to the dependency resolver
kind/question
User questions (candidates for conversion to discussion)
status/duplicate
Duplicate issues
Poetry version: 1.5.1
Python version: 3.11.3
OS version and name: macOS 13.4
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below. (does not produce more relevant output, so left it out)Issue
I'm trying to install torch differently for darwin and linux. macOS should come from pypi, linux should come from a url.
My pyproject.toml entry is this:
(previously tried it with variations of platform_system, only using the platform argument, all behave the same though)
Locking works and adds hashes to the lock file. However upon install on macOS, poetry tries to install the linux wheel and this exception is generated:
I have seen that there are multiple torch related tickets, but these seem to discuss other issues and also, this does not seem to be specific to torch, poetry should not even try to install the wheel on macOS.
The text was updated successfully, but these errors were encountered: