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

Remove or update unneeded dependecies (flask, community) #3307

Closed
DanielHabenicht opened this issue Dec 19, 2022 · 1 comment
Closed

Remove or update unneeded dependecies (flask, community) #3307

DanielHabenicht opened this issue Dec 19, 2022 · 1 comment
Labels

Comments

@DanielHabenicht
Copy link

DanielHabenicht commented Dec 19, 2022

Is your feature request related to a problem? Please describe.
When installing newer packages I am running into errors with google colab more and more recently, because the packages preinstalled are outdated, e.g. installing newest version of click (as a dependency of a another package, namely (ldimbenchmark)) results in this error:

Attempting uninstall: click
    Found existing installation: click 7.1.2
    Uninstalling click-7.1.2:
      Successfully uninstalled click-7.1.2
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.
flask 1.1.4 requires click<8.0,>=5.1, but you have click 8.1.3 which is incompatible.
Successfully installed big-o-0.10.2 click-8.1.3 docker-6.0.1 ldimbenchmark-0.1.17 pandas-1.5.2 requests-2.28.1 scikit-learn-1.2.0 tabulate-0.9.0 urllib3-1.26.13 websocket-client-1.4.2 wntr-0.5.0

Describe the solution you'd like

Update or remove it, as it seems no other package depends on it:

!pip install pipdeptree
!pipdeptree -r -p flask
!pipdeptree -r -p community
>>>
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Requirement already satisfied: pipdeptree in /usr/local/lib/python3.8/dist-packages (2.3.3)
Warning!!! Possibly conflicting dependencies found:
* Flask==1.1.4
 - click [required: >=5.1,<8.0, installed: 8.1.3]
------------------------------------------------------------------------
Flask==1.1.4
  - community==1.0.0b1 [requires: Flask]
Warning!!! Possibly conflicting dependencies found:
* Flask==1.1.4
 - click [required: >=5.1,<8.0, installed: 8.1.3]
------------------------------------------------------------------------
community==1.0.0b1

Describe alternatives you've considered
Ignoring the error...
I now have to run:

!pip uninstall google-colab community flask -y  # Workaround for GoogleColab beeing out of date: https://github.com/googlecolab/colabtools/issues/3307
!pip install ipython ipykernel --upgrade        # https://github.com/googlecolab/colabtools/issues/2230
!pip install ldimbenchmark

Additional context
Other errors are coming by outdated ipython version but this is handled here: #2230

@DanielHabenicht DanielHabenicht changed the title Remove or update unneeded dependecies (flask), community Remove or update unneeded dependecies (flask, community) Dec 19, 2022
@cperry-goog
Copy link

We're getting more up to date with these dependencies, for now you can always !pip install --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants