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

Update conda dependencies #170

Open
joeldw opened this issue Nov 29, 2023 · 4 comments
Open

Update conda dependencies #170

joeldw opened this issue Nov 29, 2023 · 4 comments

Comments

@joeldw
Copy link

joeldw commented Nov 29, 2023

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
Copy link
Contributor

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
Copy link
Author

joeldw commented Apr 12, 2024

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

@joeldw
Copy link
Author

joeldw commented Dec 19, 2024

Am I to infer from this month's release notes that this issue won't be worked on, and SAS has decided not to support conda?

1.15.0 - 2024-12-05
Add Python 3.12 support
Update TK subsystem
Conda packages will no longer be generated

@bkemper24
Copy link
Contributor

That is correct. conda will no longer be supported.
The installation packages that existed previously in the conda channel will still be available, but no new versions of python-swat, including the latest package which provides Python 3.12 support, will be uploaded to the conda site.
Looking at the error message you are seeing ( LibMambaUnsatisfiableError ) it appears that the version of conda you are using is using some type of mamba install. I think that may be what is causing your problem. Unfortunately, mamba is also not supported at this time.

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