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: rpyc #298526

Closed
ErinaInit opened this issue Mar 24, 2024 · 4 comments
Closed

Build failure: rpyc #298526

ErinaInit opened this issue Mar 24, 2024 · 4 comments
Labels
0.kind: build failure A package fails to build

Comments

@ErinaInit
Copy link

Steps To Reproduce

Steps to reproduce the behavior:
nix-shell -p python311Packages.rpyc

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 python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
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/7xkpdlqbhhayn2z94z6l8azgg0jx3y04-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tests/test_win32pipes.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...
* Getting build dependencies for wheel...
* Building wheel...
Successfully built rpyc-6.0.0-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for rpyc-6.0.0-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
Executing pypaInstallPhase
Successfully installed rpyc-6.0.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/svx5z8b51y0y9kcc0143mqf518wj3wfv-python3.11-rpyc-6.0.0
checking for references to /build/ in /nix/store/svx5z8b51y0y9kcc0143mqf518wj3wfv-python3.11-rpyc-6.0.0...
patching script interpreter paths in /nix/store/svx5z8b51y0y9kcc0143mqf518wj3wfv-python3.11-rpyc-6.0.0

Additional context

The log itself looks completely normal, however the build failed with the following errors:

============================= test session starts ==============================
platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0
rootdir: /build/source
collected 93 items / 2 errors / 16 deselected / 77 selected                    

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_affinity.py ____________________
ImportError while importing test module '/build/source/tests/test_affinity.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/7wz6hm9i8wljz0hgwz1wqmn2zlbgavrq-python3-3.11.8/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_affinity.py:4: in <module>
    import support
E   ModuleNotFoundError: No module named 'support'
________________ ERROR collecting tests/test_service_pickle.py _________________
ImportError while importing test module '/build/source/tests/test_service_pickle.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/nix/store/7wz6hm9i8wljz0hgwz1wqmn2zlbgavrq-python3-3.11.8/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_service_pickle.py:7: in <module>
    import cfg_tests
E   ModuleNotFoundError: No module named 'cfg_tests'
=========================== short test summary info ============================
ERROR tests/test_affinity.py
ERROR tests/test_service_pickle.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
======================= 16 deselected, 2 errors in 0.39s =======================
/nix/store/c8dj731bkcdzhgrpawhc8qvdgls4xfjv-stdenv-linux/setup: line 1578: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/bfsq4iq5k9wxmqhmywqvvxqg5f0vxic7-python3.11-rpyc-6.0.0.drv' failed with exit code 2;
       last 10 log lines:
       >     return _bootstrap._gcd_import(name[level:], package, level)
       > tests/test_service_pickle.py:7: in <module>
       >     import cfg_tests
       > E   ModuleNotFoundError: No module named 'cfg_tests'
       > =========================== short test summary info ============================
       > ERROR tests/test_affinity.py
       > ERROR tests/test_service_pickle.py
       > !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
       > ======================= 16 deselected, 2 errors in 0.39s =======================
       > /nix/store/c8dj731bkcdzhgrpawhc8qvdgls4xfjv-stdenv-linux/setup: line 1578: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/bfsq4iq5k9wxmqhmywqvvxqg5f0vxic7-python3.11-rpyc-6.0.0.drv'.

Add any other context about the problem here.

Notify maintainers

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
  • system: "x86_64-linux"
  • host os: Linux 6.1.82, NixOS, 23.11 (Tapir), 23.11.5511.f091af045dff
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.18.1
  • channels(root): "home-manager, nixos-23.11"
  • nixpkgs: /home/erina/.nix-defexpr/channels/nixpkgs

@ErinaInit ErinaInit added the 0.kind: build failure A package fails to build label Mar 24, 2024
@ErinaInit
Copy link
Author

I'm really curious why the output of the nix log differed with what the build said.

@s1341
Copy link
Contributor

s1341 commented Mar 26, 2024

I'm also encountering this. And I see that cfg_tests.py does exist...

@ghpzin
Copy link
Contributor

ghpzin commented Mar 26, 2024

May be relevant:
tomerfiliba-org/rpyc#544 (comment)
so it may be some upstream issue with version 6.0.0

@marsam
Copy link
Contributor

marsam commented Mar 28, 2024

Addressed by #299691

@marsam marsam closed this as completed Mar 28, 2024
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

4 participants