Skip to content
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

Unable to find installation candidates for swat (1.13.3) #168

Open
gygabyte017 opened this issue Oct 25, 2023 · 2 comments
Open

Unable to find installation candidates for swat (1.13.3) #168

gygabyte017 opened this issue Oct 25, 2023 · 2 comments

Comments

@gygabyte017
Copy link

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

@bkemper24
Copy link
Contributor

There are a couple of possibilities here.

  1. 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.

  2. 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.

  3. 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 ?

@gygabyte017
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants