python-swat
python-swat copied to clipboard
Unable to find installation candidates for swat (1.13.3)
Hi, I'm getting this error when installing latest release with poetry on macos:
poetry add swat
Using version ^1.13.3 for swat
Updating dependencies
Resolving dependencies... (2.7s)
Package operations: 2 installs, 0 updates, 0 removals
• Installing requests (2.31.0)
• Installing swat (1.13.3): Failed
RuntimeError
Unable to find installation candidates for swat (1.13.3)
However installing directly from the url works fine:
poetry add https://github.com/sassoftware/python-swat/releases/download/v1.13.3/python-swat-1.13.3+REST-only-osx-64.tar.gz
Updating dependencies
Resolving dependencies... (0.5s)
Package operations: 1 install, 0 updates, 0 removals
• Installing swat (1.13.3 https://github.com/sassoftware/python-swat/releases/download/v1.13.3/python-swat-1.13.3+REST-only-osx-64.tar.gz)
Writing lock file
Why is this happening? Thank you
There are a couple of possibilities here.
-
What version of python on you using ? The names of the wheel packages only include up through python 3.11, so if you are running Python 12 then poetry and pip would not find a wheel package name that "matches" cp312. The tar.gz files on the other hand don't care about your python version during installation, so it would install the tar.gz file, although I'm not sure it would actually run once it was installed.
-
What is the version of your macos ? The python-swat wheel packages for macos include macosx_11_0_arm64.whl and macosx_10_9_x86_64.whl . You should be able to see what tags your mac supports using a command like "pip3 debug --verbose", then scroll down to the "Compatible tags:" section of the output to see if your mac supports either of the ones provided for swat.
-
python-swat does not officially support poetry, so there may be something in the wheel package that poetry does not like. Do you know if doing a pip install instead of poetry works on your mac ?
Thank you @bkemper24 yes indeed I checked out the environment and it is using python 3.12, so that is the reason indeed. About the tags for macos I see it supports x86_64.
So I guess let's wait for a future release where python3.12 gets supported by swat.
Thank you