Bug 1900495 - conda fails to build with Python 3.10: default_python value '3.10' not of the form '[23].[0-9]' or ''
Summary: conda fails to build with Python 3.10: default_python value '3.10' not of the...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: conda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-23 08:15 UTC by Tomáš Hrnčiar
Modified: 2021-01-26 09:24 UTC (History)
4 users (show)

Fixed In Version: conda-4.9.2-3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-26 09:24:56 UTC
Type: Bug


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-11-23 08:15:54 UTC
conda fails to build with Python 3.10.0a2.

==================================== ERRORS ====================================
______________________ ERROR collecting conda/exports.py _______________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/test_instructions.py __________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/test_instructions.py", line 6, in <module>
    from conda.exports import execute_instructions
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/test_instructions.py __________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/test_instructions.py", line 6, in <module>
    from conda.exports import execute_instructions
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_____________________ ERROR collecting tests/test_plan.py ______________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/test_plan.py", line 24, in <module>
    from conda.exports import execute_plan
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_____________________ ERROR collecting tests/test_plan.py ______________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/test_plan.py", line 24, in <module>
    from conda.exports import execute_plan
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/conda_env/test_cli.py _________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_cli.py", line 19, in <module>
    from conda_env.cli.main import create_parser, do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/conda_env/test_cli.py _________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_cli.py", line 19, in <module>
    from conda_env.cli.main import create_parser, do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_______________ ERROR collecting tests/conda_env/test_create.py ________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_create.py", line 18, in <module>
    from .utils import make_temp_envs_dir, Commands, run_command
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/utils.py", line 7, in <module>
    from conda_env.cli.main import do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_______________ ERROR collecting tests/conda_env/test_create.py ________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_create.py", line 18, in <module>
    from .utils import make_temp_envs_dir, Commands, run_command
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/utils.py", line 7, in <module>
    from conda_env.cli.main import do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/conda_env/test_env.py _________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_env.py", line 17, in <module>
    from .utils import make_temp_envs_dir, Commands, run_command
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/utils.py", line 7, in <module>
    from conda_env.cli.main import do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
_________________ ERROR collecting tests/conda_env/test_env.py _________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_env.py", line 17, in <module>
    from .utils import make_temp_envs_dir, Commands, run_command
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/utils.py", line 7, in <module>
    from conda_env.cli.main import do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
______________ ERROR collecting tests/conda_env/test_pip_util.py _______________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_pip_util.py", line 2, in <module>
    from conda_env.pip_util import get_pip_installed_packages
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/pip_util.py", line 19, in <module>
    from conda.exports import on_win
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
______________ ERROR collecting tests/conda_env/test_pip_util.py _______________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/test_pip_util.py", line 2, in <module>
    from conda_env.pip_util import get_pip_installed_packages
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/pip_util.py", line 19, in <module>
    from conda.exports import on_win
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
__________________ ERROR collecting tests/conda_env/utils.py ___________________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/conda_env/utils.py", line 7, in <module>
    from conda_env.cli.main import do_call as do_call_conda_env
  File "/builddir/build/BUILD/conda-4.9.2/conda_env/cli/main.py", line 13, in <module>
    import conda.exports  # noqa
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
____________ ERROR collecting tests/core/test_package_cache_data.py ____________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/core/test_package_cache_data.py", line 14, in <module>
    from conda.exports import url_path
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
____________ ERROR collecting tests/core/test_package_cache_data.py ____________
Traceback (most recent call last):
  File "/builddir/build/BUILD/conda-4.9.2/tests/core/test_package_cache_data.py", line 14, in <module>
    from conda.exports import url_path
  File "/builddir/build/BUILD/conda-4.9.2/conda/exports.py", line 107, in <module>
    default_python = conda.base.context.context.default_python
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 1224, in __get__
    raise_errors(errors)
  File "/builddir/build/BUILD/conda-4.9.2/conda/common/configuration.py", line 150, in raise_errors
    raise errors[0]
conda.common.configuration.CustomValidationError: Parameter default = '3.10' declared in <<merged>> is invalid.
default_python value '3.10' not of the form '[23].[0-9]' or ''
=========================== short test summary info ============================
ERROR conda/exports.py - conda.common.configuration.CustomValidationError: Pa...
ERROR tests/test_instructions.py - conda.common.configuration.CustomValidatio...
ERROR tests/test_instructions.py - conda.common.configuration.CustomValidatio...
ERROR tests/test_plan.py - conda.common.configuration.CustomValidationError: ...
ERROR tests/test_plan.py - conda.common.configuration.CustomValidationError: ...
ERROR tests/conda_env/test_cli.py - conda.common.configuration.CustomValidati...
ERROR tests/conda_env/test_cli.py - conda.common.configuration.CustomValidati...
ERROR tests/conda_env/test_create.py - conda.common.configuration.CustomValid...
ERROR tests/conda_env/test_create.py - conda.common.configuration.CustomValid...
ERROR tests/conda_env/test_env.py - conda.common.configuration.CustomValidati...
ERROR tests/conda_env/test_env.py - conda.common.configuration.CustomValidati...
ERROR tests/conda_env/test_pip_util.py - conda.common.configuration.CustomVal...
ERROR tests/conda_env/test_pip_util.py - conda.common.configuration.CustomVal...
ERROR tests/conda_env/utils.py - conda.common.configuration.CustomValidationE...
ERROR tests/core/test_package_cache_data.py - conda.common.configuration.Cust...
ERROR tests/core/test_package_cache_data.py - conda.common.configuration.Cust...
!!!!!!!!!!!!!!!!!!! Interrupted: 16 errors during collection !!!!!!!!!!!!!!!!!!!
====================== 196 deselected, 16 errors in 4.50s ======================
error: Bad exit status from /var/tmp/rpm-tmp.1Mtycu (%check)
    Bad exit status from /var/tmp/rpm-tmp.1Mtycu (%check)


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01782562-conda/

For all our attempts to build conda with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/conda/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Orion Poplawski 2021-01-26 04:37:17 UTC
Hopefully resolved now in latest master.

Comment 2 Tomáš Hrnčiar 2021-01-26 06:24:20 UTC
Builds alright in our Python3.10 COPR. Thank you.

https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/conda/


Note You need to log in before you can comment on or make changes to this bug.