sassoftware / python-swat

The SAS Scripting Wrapper for Analytics Transfer (SWAT) package is the Python client to SAS Cloud Analytic Services (CAS). It allows users to execute CAS actions and process the results all from Python.
Other
147 stars 63 forks source link

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

Open gygabyte017 opened 11 months ago

gygabyte017 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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