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
144 stars 61 forks source link

Update conda dependencies #170

Open joeldw opened 7 months ago

joeldw commented 7 months ago

When using conda to install python-swat (swat from the sas-institute channel) python is downgraded to at most 3.9, and in an environment with other common packages like matplotlib, the downgrade is even further - to 3.6. Can python >3.11 be allowed? And for the second issue, I think the dependency on libuuid < 2.0 is to blame. Can >2.0 be supported?

From index.json, version 1.13.3

"depends": [
    "krb5 >=1.20.1,<1.21.0a0",
    "libnuma",
    "libuuid >=1.41.5,<2.0a0",
    "pandas",
    "python >=3.9,<3.10.0a0",
    "pytz",
    "requests",
    "six"
  ]
bkemper24 commented 5 months ago

I'm not sure where the "python >=3.9,<3.10.0a0" dependency is coming from. python-swat supports python <= 3.11. It does not yet support python 3.12. What operating system and version of anaconda are you running ?

joeldw commented 3 months ago

The "python >=3.9,<3.10.0a0" came from the index.json that I downloaded from the release in this project e.g. https://github.com/sassoftware/python-swat/releases/download/v1.13.3/python-swat-1.13.3+vb23040-linux-64.tar.gz, or from the conda repositories.

Also if it helps clarify, I can create an enviornment with python 3.7 and swat succesfully using conda. But for >3.7, conda is not able to solve specs (below test for 3.8, 3.9, 3.10, and 3.11

(base) [xxxxx@xxxxxx ~]$ conda create -n test38 python=3.8 swat
Channels:
 - defaults
 - sas-institute
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides libuuid >=1.0.3,<2.0a0 needed by swat-1.4.0-py34_0

Could not solve for environment specs
The following packages are incompatible
├─ python 3.8**  is requested and can be installed;
└─ swat is not installable because there are no viable options
   ├─ swat [1.10.0|1.11.0|...|1.9.3] would require
   │  └─ libuuid >=1.0.3,<2.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.4,<3.5.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.7.0|1.7.1|1.8.0|1.8.1] would require
   │  └─ krb5 >=1.18.2,<1.19.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.12.0|1.12.1|...|1.13.3] would require
   │  └─ libuuid >=1.41.5,<2.0a0 , which does not exist (perhaps a missing channel);
   └─ swat [1.12.2|1.13.0] would require
      └─ krb5 >=1.19.4,<1.20.0a0 , which does not exist (perhaps a missing channel).

(base) [xxxxx@xxxxxx ~]$ conda create -n test39 python=3.9 swat
Channels:
 - defaults
 - sas-institute
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides libuuid >=1.0.3,<2.0a0 needed by swat-1.4.0-py34_0

Could not solve for environment specs
The following packages are incompatible
├─ python 3.9**  is requested and can be installed;
└─ swat is not installable because there are no viable options
   ├─ swat [1.10.0|1.11.0|...|1.9.3] would require
   │  └─ libuuid >=1.0.3,<2.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.4,<3.5.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.7.0|1.7.1|1.8.0|1.8.1] would require
   │  └─ krb5 >=1.18.2,<1.19.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.12.0|1.12.1|...|1.13.3] would require
   │  └─ libuuid >=1.41.5,<2.0a0 , which does not exist (perhaps a missing channel);
   └─ swat [1.12.2|1.13.0] would require
      └─ krb5 >=1.19.4,<1.20.0a0 , which does not exist (perhaps a missing channel).

(base) [xxxxx@xxxxxx ~]$ conda create -n test310 python=3.10 swat
Channels:
 - defaults
 - sas-institute
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides libuuid >=1.0.3,<2.0a0 needed by swat-1.4.0-py34_0

Could not solve for environment specs
The following packages are incompatible
├─ python 3.10**  is requested and can be installed;
└─ swat is not installable because there are no viable options
   ├─ swat [1.10.0|1.11.0|...|1.9.3] would require
   │  └─ libuuid >=1.0.3,<2.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.4,<3.5.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.7.0|1.7.1|1.8.0|1.8.1] would require
   │  └─ krb5 >=1.18.2,<1.19.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.12.0|1.12.1|...|1.13.3] would require
   │  └─ libuuid >=1.41.5,<2.0a0 , which does not exist (perhaps a missing channel);
   └─ swat [1.12.2|1.13.0] would require
      └─ krb5 >=1.19.4,<1.20.0a0 , which does not exist (perhaps a missing channel).

(base) [xxxxx@xxxxxx ~]$ conda create -n test311 python=3.11 swat
Channels:
 - defaults
 - sas-institute
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides libuuid >=1.0.3,<2.0a0 needed by swat-1.4.0-py34_0

Could not solve for environment specs
The following packages are incompatible
├─ python 3.11**  is requested and can be installed;
└─ swat is not installable because there are no viable options
   ├─ swat [1.10.0|1.11.0|...|1.9.3] would require
   │  └─ libuuid >=1.0.3,<2.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.4,<3.5.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.5.1|1.5.2|1.6.0|1.6.1] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ swat [1.7.0|1.7.1|1.8.0|1.8.1] would require
   │  └─ krb5 >=1.18.2,<1.19.0a0 , which does not exist (perhaps a missing channel);
   ├─ swat [1.12.0|1.12.1|...|1.13.3] would require
   │  └─ libuuid >=1.41.5,<2.0a0 , which does not exist (perhaps a missing channel);
   └─ swat [1.12.2|1.13.0] would require
      └─ krb5 >=1.19.4,<1.20.0a0 , which does not exist (perhaps a missing channel).