Skip to content

Is Python 3.9 still supported? #4776

Open
@JarLob

Description

@JarLob

Trying local deployment. Ran python3.9 -m pipenv shell ang got this error. The internet search says the syntax requires 3.10 or later.

Asking because of these lines:

elif which python3.10 > /dev/null; then
export PYTHON='python3.10'
elif which python3.9 > /dev/null; then
export PYTHON='python3.9'
elif which python3.8 > /dev/null; then
export PYTHON='python3.8'

Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
# python butler.py run_server --bootstrap
Traceback (most recent call last):
  File "/clusterfuzz/butler.py", line 430, in <module>
    sys.exit(main())
  File "/clusterfuzz/butler.py", line 415, in main
    command = importlib.import_module(f'local.butler.{args.command}')
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/clusterfuzz/src/local/butler/run_server.py", line 22, in <module>
    from clusterfuzz._internal.tests.test_libs import test_utils
  File "/clusterfuzz/src/clusterfuzz/_internal/tests/test_libs/test_utils.py", line 30, in <module>
    from clusterfuzz._internal.datastore import data_types
  File "/clusterfuzz/src/clusterfuzz/_internal/datastore/data_types.py", line 22, in <module>
    from clusterfuzz._internal.base import utils
  File "/clusterfuzz/src/clusterfuzz/_internal/base/utils.py", line 920, in <module>
    def current_source_version() -> str | None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions