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

Build failure: python3Packages.pydantic-extra-types #277650

Closed
eclairevoyant opened this issue Dec 30, 2023 · 1 comment
Closed

Build failure: python3Packages.pydantic-extra-types #277650

eclairevoyant opened this issue Dec 30, 2023 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Dec 30, 2023

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python3Packages.pydantic-extra-types

Build log

       last 10 log lines:
       > ERROR tests/test_country_code.py
       > ERROR tests/test_json_schema.py
       > ERROR tests/test_mac_address.py
       > ERROR tests/test_phone_numbers.py
       > ERROR tests/test_routing_number.py
       > ERROR tests/test_types_color.py
       > ERROR tests/test_types_payment.py
       > !!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
       > ============================== 8 errors in 0.15s ===============================
Build log
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/fbszylx0flz53f5kpsbl6sl2a36bd4hy-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_types_payment.py
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing pypaBuildPhase
Creating a wheel...
�[1m* Getting build dependencies for wheel...�[0m
�[1m* Building wheel...�[0m
�[1m�[92mSuccessfully built �[4mpydantic_extra_types-2.1.0-py3-none-any.whl�[0m�[1m�[92m�[0m
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed pydantic_extra_types-2.1.0-py3-none-any.whl
Finished executing pypaInstallPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Running phase: pythonOutputDistPhase
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/3bknqw9ak5w5x6cmrx476qc8xig3706j-python3.11-pydantic-extra-types-2.1.0
checking for references to /build/ in /nix/store/3bknqw9ak5w5x6cmrx476qc8xig3706j-python3.11-pydantic-extra-types-2.1.0...
patching script interpreter paths in /nix/store/3bknqw9ak5w5x6cmrx476qc8xig3706j-python3.11-pydantic-extra-types-2.1.0
stripping (with command strip and flags -S -p) in  /nix/store/3bknqw9ak5w5x6cmrx476qc8xig3706j-python3.11-pydantic-extra-types-2.1.0/lib
shrinking RPATHs of ELF executables and libraries in /nix/store/4r1ankg5b21rghrfaz1z7m79ghqgpbxz-python3.11-pydantic-extra-types-2.1.0-dist
checking for references to /build/ in /nix/store/4r1ankg5b21rghrfaz1z7m79ghqgpbxz-python3.11-pydantic-extra-types-2.1.0-dist...
patching script interpreter paths in /nix/store/4r1ankg5b21rghrfaz1z7m79ghqgpbxz-python3.11-pydantic-extra-types-2.1.0-dist
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Running phase: pythonImportsCheckPhase
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: pydantic_extra_types
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Running phase: pytestCheckPhase
Executing pytestCheckPhase
�[1m============================= test session starts ==============================�[0m
platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
rootdir: /build/source
configfile: pyproject.toml
plugins: devtools-0.12.2
�[1mcollecting ... �[0m�[1m
collected 0 items / 8 errors                                                   �[0m

==================================== ERRORS ====================================
�[31m�[1m__________________ ERROR collecting tests/test_coordinate.py ___________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_coordinate.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_coordinate.py:6: in <module>
    from pydantic_core._pydantic_core import ArgsKwargs
E   ModuleNotFoundError: No module named 'pydantic_core'�[0m
�[31m�[1m_________________ ERROR collecting tests/test_country_code.py __________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_country_code.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_country_code.py:6: in <module>
    from pydantic_extra_types.country import (
pydantic_extra_types/country.py:11: in <module>
    from pydantic import GetCoreSchemaHandler, GetJsonSchemaHandler
E   ImportError: cannot import name 'GetCoreSchemaHandler' from 'pydantic' (/nix/store/70q9knr4s3zphlcvxqdmk600d3nsd9c5-python3.11-pydantic-1.10.12/lib/python3.11/site-packages/pydantic/__init__.cpython-311-x86_64-linux-gnu.so)�[0m
�[31m�[1m__________________ ERROR collecting tests/test_json_schema.py __________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_json_schema.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_json_schema.py:4: in <module>
    from pydantic_extra_types.color import Color
pydantic_extra_types/color.py:17: in <module>
    from pydantic import GetJsonSchemaHandler
E   ImportError: cannot import name 'GetJsonSchemaHandler' from 'pydantic' (/nix/store/70q9knr4s3zphlcvxqdmk600d3nsd9c5-python3.11-pydantic-1.10.12/lib/python3.11/site-packages/pydantic/__init__.cpython-311-x86_64-linux-gnu.so)�[0m
�[31m�[1m__________________ ERROR collecting tests/test_mac_address.py __________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_mac_address.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_mac_address.py:6: in <module>
    from pydantic_extra_types.mac_address import MacAddress
pydantic_extra_types/mac_address.py:14: in <module>
    from pydantic import GetCoreSchemaHandler
E   ImportError: cannot import name 'GetCoreSchemaHandler' from 'pydantic' (/nix/store/70q9knr4s3zphlcvxqdmk600d3nsd9c5-python3.11-pydantic-1.10.12/lib/python3.11/site-packages/pydantic/__init__.cpython-311-x86_64-linux-gnu.so)�[0m
�[31m�[1m_________________ ERROR collecting tests/test_phone_numbers.py _________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_phone_numbers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_phone_numbers.py:6: in <module>
    from pydantic_extra_types.phone_numbers import PhoneNumber
pydantic_extra_types/phone_numbers.py:5: in <module>
    from pydantic import GetCoreSchemaHandler
E   ImportError: cannot import name 'GetCoreSchemaHandler' from 'pydantic' (/nix/store/70q9knr4s3zphlcvxqdmk600d3nsd9c5-python3.11-pydantic-1.10.12/lib/python3.11/site-packages/pydantic/__init__.cpython-311-x86_64-linux-gnu.so)�[0m
�[31m�[1m________________ ERROR collecting tests/test_routing_number.py _________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_routing_number.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_routing_number.py:6: in <module>
    from pydantic_extra_types.routing_number import ABARoutingNumber
pydantic_extra_types/routing_number.py:3: in <module>
    from pydantic import GetCoreSchemaHandler
E   ImportError: cannot import name 'GetCoreSchemaHandler' from 'pydantic' (/nix/store/70q9knr4s3zphlcvxqdmk600d3nsd9c5-python3.11-pydantic-1.10.12/lib/python3.11/site-packages/pydantic/__init__.cpython-311-x86_64-linux-gnu.so)�[0m
�[31m�[1m__________________ ERROR collecting tests/test_types_color.py __________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_types_color.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_types_color.py:5: in <module>
    from pydantic_core import PydanticCustomError
E   ModuleNotFoundError: No module named 'pydantic_core'�[0m
�[31m�[1m_________________ ERROR collecting tests/test_types_payment.py _________________�[0m
�[31mImportError while importing test module '/build/source/tests/test_types_payment.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/5k91mg4qjylxbfvrv748smfh51ppjq0g-python3-3.11.6/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_types_payment.py:6: in <module>
    from pydantic_core._pydantic_core import PydanticCustomError
E   ModuleNotFoundError: No module named 'pydantic_core'�[0m
�[36m�[1m=========================== short test summary info ============================�[0m
�[31mERROR�[0m tests/test_coordinate.py
�[31mERROR�[0m tests/test_country_code.py
�[31mERROR�[0m tests/test_json_schema.py
�[31mERROR�[0m tests/test_mac_address.py
�[31mERROR�[0m tests/test_phone_numbers.py
�[31mERROR�[0m tests/test_routing_number.py
�[31mERROR�[0m tests/test_types_color.py
�[31mERROR�[0m tests/test_types_payment.py
!!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
�[31m============================== �[31m�[1m8 errors�[0m�[31m in 0.15s�[0m�[31m ===============================�[0m
/nix/store/d4jf1cbbk494zwgbqz31pxgigpsbh6w2-stdenv-linux/setup: line 1553: pop_var_context: head of shell_variables not a function context

Additional context

n/a

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a 👍 reaction to issues you find important.

@eclairevoyant eclairevoyant added the 0.kind: build failure A package fails to build label Dec 30, 2023
@eclairevoyant eclairevoyant changed the title Build failure: python3Packages.pydanti-extra-types Build failure: python3Packages.pydantic-extra-types Dec 30, 2023
@eclairevoyant
Copy link
Contributor Author

already fixed in #269633

@eclairevoyant eclairevoyant closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

1 participant