How can I delete an installed library version from code repositories?

Hi All,

I have a problem I am facing:

  • I tried to install Python 3.12 in my repository.
  • However, after the installation, I started to get this error:

Could not solve for environment specs
The following packages are incompatible
├─ python 3.12.3** is requested and can be installed;
└─ transforms 1.1078.0 is not installable because it requires
└─ pyspark 3.4.1.28 , which requires
└─ python <3.11 , which conflicts with any installable versions previously reported.

The error is clear to me - (it is not possible to use 3.11>=). Now, I want to delete the installation request of Python 3.12, but there is no way to do it.

Could you please help me about this issue?

Hey @balhan, it is true that python transforms currently do not support python 3.11.

You can use the libraries tab on the left side of the code repository to chose a new python environment version to use.

This guide shows what the libraries tab is supposed to look like.

Hi @jcorreia , thanks for the response!

Even though I change the version of the python library from the tab you mentioned, I still keep getting the same error.

How can I delete the library version of Python 3.12 from my repo?

@balhan could you show what your meta.yaml file looks like?

Here is my yaml file.

# If you need to modify the runtime requirements for your package,
# update the 'requirements.run' section in this file.

package:
  name: "{{ PACKAGE_NAME }}"
  version: "{{ PACKAGE_VERSION }}"

source:
  path: ../src

requirements:
  # Tools required to build the package. These packages are run on the build system and include
  # things such as revision control systems (Git, SVN) make tools (GNU make, Autotool, CMake) and
  # compilers (real cross, pseudo-cross, or native when not cross-compiling), and any source pre-processors.
  # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build
  build:
    - setuptools

  # Packages required to run the package. These are the dependencies that are installed automatically
  # whenever the package is installed.
  # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#run
  run:
    - transforms {{ PYTHON_TRANSFORMS_VERSION }}
    - transforms-expectations
    - transforms-verbs
    - transforms-external-systems
    - transforms-media
    - aiohttp
    - python 3.10.3

build:
  script: python setup.py install --single-version-externally-managed --record=record.txt

Bottom-line: I tried to select another Python version from the libraries. Double-checked the yaml file. Refreshed the page. But still getting the same error.

The summary of the problem I am experiencing is:
“Users do not have visibility if bumping up a library version will break the environment resolution. And once it is bumped up, there is no straightforward way to roll-it back.”

hey @balhan , it seems like removing the python string from the build block + stating the python patch version has caused some issue with parsing, this meta/yaml will fix your repository back to its normal state:

# If you need to modify the runtime requirements for your package,
# update the 'requirements.run' section in this file.

package:
  name: "{{ PACKAGE_NAME }}"
  version: "{{ PACKAGE_VERSION }}"

source:
  path: ../src

requirements:
  # Tools required to build the package. These packages are run on the build system and include
  # things such as revision control systems (Git, SVN) make tools (GNU make, Autotool, CMake) and
  # compilers (real cross, pseudo-cross, or native when not cross-compiling), and any source pre-processors.
  # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build
  build:
    - python
    - setuptools

  # Packages required to run the package. These are the dependencies that are installed automatically
  # whenever the package is installed.
  # https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#run
  run:
    - transforms {{ PYTHON_TRANSFORMS_VERSION }}
    - transforms-expectations
    - transforms-verbs
    - transforms-external-systems
    - transforms-media
    - aiohttp
    - python 3.10.*
build:
  script: python setup.py install --single-version-externally-managed --record=record.txt

1 Like