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

chore(python): Pin virtualenv for Python 3.7 compatibility #2031

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Oct 29, 2024

This will solve the issue in PR googleapis/google-api-python-client#2507 where we see the following error in the build log for Samples - Python 3.7

******************** TESTING PROJECTS ********************
------------------------------------------------------------
- testing samples/compute
------------------------------------------------------------
No user noxfile_config found: detail: No module named 'noxfile_config'
nox > Running session py-3.7
nox > Creating virtual environment (virtualenv) using python3.7 in .nox/py-3-7
nox > python -m pip install -r requirements.txt
nox > Command python -m pip install -r requirements.txt failed with exit code 1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/__main__.py", line 22, in 
    from pip._internal.cli.main import main as _main
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 11, in 
    from pip._internal.cli.autocompletion import autocomplete
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 10, in 
    from pip._internal.cli.main_parser import create_main_parser
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 9, in 
    from pip._internal.build_env import get_runnable_pip
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/build_env.py", line 18, in 
    from pip._internal.cli.spinners import open_spinner
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/cli/spinners.py", line 9, in 
    from pip._internal.utils.logging import get_indentation
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_internal/utils/logging.py", line 13, in 
    from pip._vendor.rich.console import (
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_vendor/rich/console.py", line 41, in 
    from pip._vendor.typing_extensions import (
  File "/workspace/samples/compute/.nox/py-3-7/lib/python3.7/site-packages/pip/_vendor/typing_extensions.py", line 1039
    def TypedDict(typename, fields=_marker, /, *, total=True, closed=False, **kwargs):
                                            ^
SyntaxError: invalid syntax
nox > Session py-3.7 failed.

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

Successfully merging this pull request may close these issues.

3 participants