Python Forum
google-auth requirements.txt strange behavior
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
google-auth requirements.txt strange behavior
#3
Found the answer:

google-auth does not have a __init__.py in the "google" folder when installed from wheel so python 2.7 cannot import the oauth2 package inside this folder unless:

Because google-auth instead has a .pth file when it gets installed (google_auth-1.6.2-py3.7-nspkg.pth) this only gets executed if your site-packages is in the list of sites. So in order to make it work you have to:

import site
site.addsitedir('/path/to/my/site-packages')
Reply


Messages In This Thread
RE: google-auth requirements.txt strange behavior - by randalpinto - Dec-21-2018, 12:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Strange behavior list of list mmhmjanssen 3 379 May-09-2024, 11:32 AM
Last Post: mmhmjanssen
  strange behavior of chess library in Python max22 1 382 Jan-18-2024, 06:35 PM
Last Post: deanhystad
  Problem with code / audio is playing randomly, not matching csv requirements Daniel_kcr 2 688 Sep-07-2023, 05:09 PM
Last Post: deanhystad
  when package built, requirements not installed sabuzaki 1 788 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  Program running on RPi 3b+ Very Strange Behavior - Out of Bound Index MadMacks 26 3,504 Mar-07-2023, 09:50 PM
Last Post: MadMacks
  auth - URL SUN 2 1,562 May-20-2022, 07:50 AM
Last Post: SUN
  Strange write()/File behavior kaega2 2 1,730 Jan-28-2022, 02:53 AM
Last Post: kaega2
  What to do when the requirements.txt file does not work Led_Zeppelin 2 6,647 Nov-04-2021, 06:51 PM
Last Post: snippsat
  IBM Watson: Handshake status 403 Forbidden or No section: 'auth' groschat 1 2,848 May-07-2021, 03:44 PM
Last Post: jefsummers
  Examples of Customer requirements ComputerAstronaut 1 1,883 Dec-08-2020, 03:22 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020