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

Dependency conflicts #68

Open
TedTansley opened this issue Apr 1, 2024 · 3 comments
Open

Dependency conflicts #68

TedTansley opened this issue Apr 1, 2024 · 3 comments

Comments

@TedTansley
Copy link

This now requires (in Google Colab) a restart to work with pulling data. It installs outdated packages which creates conflict when trying to connect to google's other apis.

It will uninstall the following packages:

  • cachetools-5.3.3:
  • google-auth-2.27.0:
  • google-auth-oauthlib-1.2.0:
  • google-api-core-2.11.1:

An install the following:

  • cachetools-4.2.4
  • google-api-core-2.10.2
  • google-auth-1.35.0
  • google-auth-oauthlib-0.5.3
  • searchconsole-0.0.3

Works fine to pull data, but then trying to connect to updated packages, it no longer works.

@joshcarty
Copy link
Owner

Sorry for the slow reply - thanks for this @TedTansley!

Are you installing with pip3 install git+https://github.com/joshcarty/google-searchconsole?

@TedTansley
Copy link
Author

Thank you for the reply @joshcarty ! I'm using Google colab and install this way:
!pip install git+https://github.com/joshcarty/google-searchconsole

I have found, however, that by not trying to update the other dependencies that I can get my scripts to work. Though I worry of a later impact.

@joshcarty
Copy link
Owner

Thanks @TedTansley and sorry for the slow replies! I've tried myself in Colab and now understand the issue.

A few years ago we pinned the version of google-auth to versions <2 to resolve a bug that I can't remember.

As you're seeing, that's forcing the other dependencies to install some pretty old versions themselves.

I've created a branch that removes the pin which you can install here:

!pip install git+https://github.com/joshcarty/google-searchconsole@joshuac/unpin-google-auth

I can see it installs successfully without requiring a restart. However, I don't have access to a Search Console property to test it with.

Are you able to test it and see if you can make queries? Thanks!

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

No branches or pull requests

2 participants