[Resolved] SDV Installation: Dependency Issue

@kalyan

I noticed a conflict in dependencies, and I was wondering if this issue is from my side.


Looking in indexes: https://pypi.datacebo.com

User for pypi.datacebo.com: lpalayangoda@unomaha.edu

Collecting sdv_enterprise

Downloading https://pypi.datacebo.com/static/sdv-enterprise/sdv_enterprise-0.12.1-py2.py3-none-any.whl

  • 2.2 kB ? 0:00:00

INFO: pip is looking at multiple versions of sdv-enterprise to determine which version is compatible with other requirements. This could take a while.

Downloading https://pypi.datacebo.com/static/sdv-enterprise/sdv_enterprise-0.12.0-py2.py3-none-any.whl

  • 2.2 kB ? 0:00:00

Downloading https://pypi.datacebo.com/static/sdv-enterprise/sdv_enterprise-0.11.1-py2.py3-none-any.whl

  • 2.2 kB ? 0:00:00

ERROR: Cannot install sdv-enterprise==0.11.1, sdv-enterprise==0.12.0 and sdv-enterprise==0.12.1 because these package versions have conflicting dependencies.

The conflict is caused by:

sdv-enterprise 0.12.1 depends on sdv-version==0.12.1

sdv-enterprise 0.12.0 depends on sdv-dayzsynthesizer-multitable==0.12.0

sdv-enterprise 0.11.1 depends on sdv-dayzsynthesizer-multitable==0.11.1

To fix this you could try to:

  1. loosen the range of package versions you’ve specified

  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit Dependency Resolution - pip documentation v26.0.dev0


Thanks,
Lochana

@gaurav : Thank you for the information and suggestions. I tried your new approach; however, I got a similar error while installing. Please refer to the information you requested.

          **Darwin i386 macOS-10.16-x86_64-i386-64bit x86_64**

** 1.12.1**

I tried the following but did get the same result: (1) uninstalling the public SDV version and reinstalling it, (2) creating a virtual environment and trying to install it there. For your information, I have attached the current Python packages on my laptop

The error message is as follows:

Looking in indexes: https://lpalayangoda%40unomaha.edu:****@pypi.datacebo.com
Collecting sdv-enterprise

ERROR: Cannot install sdv-enterprise==0.11.1, sdv-enterprise==0.12.0 and sdv-enterprise==0.12.1 because these package versions have conflicting dependencies.

The conflict is caused by:

  • sdv-enterprise 0.12.1 depends on sdv-metadata==0.12.1*
  • sdv-enterprise 0.12.0 depends on sdv-metadata==0.12.0*
  • sdv-enterprise 0.11.1 depends on sdmetrics-outlier-coverage-metric==0.11.1*

To fix this you could try to:
1. loosen the range of package versions you’ve specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit User Guide - pip documentation v24.1.dev0
packages.txt (14.2 KB)

@lpalayangoda that is unfortunate. It seems that you are trying to install enterprise on a Mac with an Intel chip running macOS 10.16

What is the python version you are using? You can run this code:

import platform
print(platform.python_version())

@gaurav
Thanks for your response. Sorry, I forgot to add that answer in my previous message. The Python version in my base environment is 3.9.12.

@lpalayangoda you may be using an unsupported macOS version. For macOS, we support the version 11 or higher (Big Sur or later).
For future reference, you can refer to our Technical Requirements

To verify your macOS version, can you run this command? This will print out the version you’re on:

import subprocess
p = subprocess.Popen("sw_vers", stdout=subprocess.PIPE)
result = p.communicate()[0]
print(result)

You should be able to use sdv-enterprise if you upgrade your macOS to 11+ and use Python 3.8+.

@gaurav : I am using the most recent MacOS (MacOS 14 - Sonoma 14.4.1 (23E224))

  • Oh, can you run the above code to make sure? Earlier your message said macOS-10.16-x86_64

  • Are you running on an Intel or ARM chip? Your earlier message says Intel (x86_64). You can run arch in your Terminal to check.

  • Assuming you are running macOS 14 on an Intel chip (x86_64), you can do the following to create an sdv_enterprise_install folder and download your platform specific files:

  1. Create folder:
mkdir sdv_enterprise_install
  1. Download sdv-enterprise
pip download sdv-enterprise --platform=macosx_11_0_x86_64 --python-version=3.9 --only-binary=:all: --index-url https://pypi.datacebo.com --timeout 600 --dest sdv_enterprise_install --no-cache-dir
  1. Install sdv-enterprise
pip install sdv-enterprise --find-links sdv_enterprise_install --upgrade --force-reinstall

If you are running on an ARM chip, change the platform from macosx_11_0_x86_64 to macosx_14_0_arm64

@gaurav : Please see the result on the MacOS version.

‘ProductName:\t\tmacOS\nProductVersion:\t\t14.4.1\nBuildVersion:\t\t23E224\n’

This chip is: arm64

I followed the steps; however, I still got the following message.

ERROR: Could not find a version that satisfies the requirement rdt-address==0.12.1 (from sdv-enterprise) (from versions: none)

ERROR: No matching distribution found for rdt-address==0.12.1

FYI, I updated the new version last month.

  • I see, do you still get an error if you run with macosx_14_0_arm64? Can you try upgrading pip?
pip install --upgrade pip
  • Download with macosx_14_0_arm64 platform tag and pin:
pip download sdv-enterprise==0.12.1 --platform=macosx_14_0_arm64 --python-version=3.9 --only-binary=:all: --index-url https://pypi.datacebo.com --timeout 600 --dest sdv_enterprise_install --no-cache-dir
  • Install:
pip install sdv-enterprise==0.12.1 --find-links sdv_enterprise_install --upgrade --force-reinstall
  • Are you using conda as well?

@gaurav: Yes, I updated pip yesterday (pip 23.3.1 ).
Yes, I am using conda.

Please see the error while following the steps.

INFO: pip is looking at multiple versions of sdv-enterprise to determine which version is compatible with other requirements. This could take a while.

ERROR: Could not find a version that satisfies the requirement sdv-version==0.12.1 (from sdv-enterprise) (from versions: none)

ERROR: No matching distribution found for sdv-version==0.12.1

Can you try --platform with macosx_11_0_x86_64? We should match your python interpreted chip.

Even with this approach, the Error appears to be the same.

ERROR: Could not find a version that satisfies the requirement sdv-version==0.12.1 (from sdv-enterprise) (from versions: none)

ERROR: No matching distribution found for sdv-version==0.12.1

You may be using an x86 version of Python even though your chip is arm64.

You can create a conda environment that installs the arm64 version of python:

conda create -n arm64_env
conda activate arm64_env
conda config --env --set subdir osx-arm64
conda install python=3.9

You can then install sdv-enterprise as per the instructions above.

1 Like

@gaurav : Thanks for the advice. It worked. I really appreciate your help in this matter. :slight_smile:

2 Likes

Thanks for confirming. I’m closing out this topic since the issue has been resolved. If you need any additional help troubleshooting, please feel free to start a new thread. Thanks.

1 Like