gdsfactory / skywater130

skywater 130nm pdk
https://gdsfactory.github.io/skywater130/
MIT License
26 stars 11 forks source link

Dependency Conflict With GF180 Package #73

Open harshkhandeparkar opened 1 year ago

harshkhandeparkar commented 1 year ago

The gf180 and sky130 packages have different gdsfactory version requirements. Installing both together causes the previously installed gdsfactory version to be replaced with the following error.

Uninstalling gdsfactory-7.3.0:
Successfully uninstalled gdsfactory-7.3.0

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sky130 0.8.0 requires gdsfactory[cad]==7.3.0, but you have gdsfactory 7.1.4 which is incompatible.
Successfully installed gdsfactory-7.1.4

(The above error occurred when gf180 was installed after installing sky130)

This issue was encountered in OpenFASoC's https://github.com/idea-fasoc/OpenFASOC/issues/235, where both gf180 and sky130 packages are required to be installed.

samadpls commented 1 year ago

To resolve this, I recommend creating two separate virtual environments, one for each package which allows us to isolate their dependencies, ensuring that the specific gdsfactory versions required by each package are satisfied without causing conflicts.