ydataai / ydata-synthetic

Synthetic data generators for tabular and time-series data
https://docs.synthetic.ydata.ai
MIT License
1.38k stars 232 forks source link

Installation Dependancies Failure[BUG] #326

Closed rroosshhaann closed 6 months ago

rroosshhaann commented 6 months ago

I am trying to install ydata-sythetic[streamlit] however with any version of Python >= 3.9 I run into issues with dependencies and it won't install. There isn't an explicit failure, but it never completes, regardless of how long I leave it running.

This happens with ALL Python versions >=3.9. I see that ydata-synthetic requires Python >=3.9 and <3.11; however if I use Python 3.8 all packages will install within about 2 minutes. Of course the code will then fail due to Type errors as a result of Python<3.9

One note, the dependencies mis-match causes pip to begin backtracking through different versions to find a compatible versions, but this never ends. I left it on for about 4 hours last night and it never resolves. The log of the this build is linked below.

See installation log attached for details. build_1.log

Additional context I am trying to install the y-data sythetic[streamlit] app inside a Docker container. But this seems unlikley to be an issue, as I can install the ydata-synthetic streamlit app successfully with Python 3.8 inside the container (however the code fails due to Type errors due to Python version < 3.9)

Note, this particular failure response might be as a result of a potential bug in Pip, when it tries to resolve dependency conflicts by backtracking. Because there is a dependency conflict, pip starts backtracking to find a compatible package, but there is a bug in the backtracking which is why the compilation never ends. I think the root cause however is clashing package dependencies. I'll try with a different version of pip to see if this fixes the backtracking issue.

Configuration OS: (Windows 10 Home) > Docker Docker Base Container: Python 3.10.13-slim Pip version: 23.0.1

Reproduce the error Files for reproduction.zip If you want to reproduce the error, I have attached my Dockerfile, requirements, and streamlit launch script in the zipped folder above. Place them all in the same location, navigate there with your terminal/command line and run docker build -t <name of container>.

rroosshhaann commented 6 months ago

Updating my pip version from pip-23.0.1 to pip-23.3.2 has fixed the issue!!