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

[Bug]: Failed building wheel for tornado #566

Open
sobornostea opened this issue Dec 16, 2024 · 2 comments
Open

[Bug]: Failed building wheel for tornado #566

sobornostea opened this issue Dec 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sobornostea
Copy link

sobornostea commented Dec 16, 2024

Current Behavior

When trying to run nix run after running nix flake init --template github:tweag/jupyenv, I get the following error :

error: builder for '/nix/store/jl6gp4dvrzax14n3r6y3mmyvyd1dldlr-python3.12-tornado-6.4.2.drv' failed with exit code 1;
       last 25 log lines:
       >   writing manifest file '/build/pip-modern-metadata-_vgrulx7/tornado.egg-info/SOURCES.txt'
       >   creating '/build/pip-modern-metadata-_vgrulx7/tornado-6.4.2.dist-info'
       >   Preparing metadata (pyproject.toml) ... done
       > Building wheels for collected packages: tornado
       >   Running command Building wheel for tornado (pyproject.toml)
       >   usage: _in_process.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       >      or: _in_process.py --help [cmd1 cmd2 ...]
       >      or: _in_process.py --help-commands
       >      or: _in_process.py cmd --help
       >
       >   error: option --dist-info-dir not recognized
       >   error: subprocess-exited-with-error
       >
       >   × Building wheel for tornado (pyproject.toml) did not run successfully.
       >   │ exit code: 1
       >   ╰─> See above for output.
       >
       >   note: This error originates from a subprocess, and is likely not a problem with pip.
       >   full command: /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/bin/python3.12 /nix/store/b5hj21zkaxlyb8h6jrnl3ic82xs9xckd-python3.12-pip-24.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /build/tmpf6njh766
       >   cwd: /build/tornado-6.4.2
       >   Building wheel for tornado (pyproject.toml) ... error
       >   ERROR: Failed building wheel for tornado
       > Failed to build tornado
       > ERROR: Failed to build one or more wheels
       >
       For full logs, run 'nix log /nix/store/jl6gp4dvrzax14n3r6y3mmyvyd1dldlr-python3.12-tornado-6.4.2.drv'.
error: 1 dependencies of derivation '/nix/store/arq2vfw3z21117p6snd1mma3g2i42m0s-python3-3.12.7-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j2mpmn3gwjdqlwj0hd01i3cm8ifk7nji-chmod-python3-3.12.7-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c67ypbmg1y53lrf2dpvcfic1aglr9m7v-wrapper-chmod-python3-3.12.7-env.drv' failed to build

Expected Behavior

I would expect for all packages to build properly and for a jupyter-lab to start

Steps To Reproduce

  1. Create a new empty folder
  2. Run nix flake init --template github:tweag/jupyenv in it
  3. Run nix run in it

OS

fetching path input 'path:/nix/store/22r7q7s9552gn1vpjigkbhfgcvhsrz68-source'
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.4, NixOS, 25.05 (Warbler), 25.05.20241213.3566ab7`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.1
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/sobornost/.config/nix/nix.conf:/nix/store/knsk0aghhj201xq52cg372c012cd0az4-plasma-workspace-5.27.11.1/etc/xdg/nix/nix.conf:/nix/store/6n73iidx8kd69884hc6wd72kkfcjghvy-kdelibs4support-5.116.0/etc/xdg/nix/nix.conf:/nix/store/1w6krqb8yryc59xxb1i86wgfsnm2ahxs-baloo-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ki3f9mxwm1aa5n1d017dvs50hc1qy0wm-kio-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ghv6la6sfw8cj2nvc4jgyblfll7glrg6-kxmlgui-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/dnfwq3dxsr6s37vbnmfd9rimgx0ns12c-kservice-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/knsk0aghhj201xq52cg372c012cd0az4-plasma-workspace-5.27.11.1/etc/xdg/nix/nix.conf:/nix/store/6n73iidx8kd69884hc6wd72kkfcjghvy-kdelibs4support-5.116.0/etc/xdg/nix/nix.conf:/nix/store/1w6krqb8yryc59xxb1i86wgfsnm2ahxs-baloo-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ki3f9mxwm1aa5n1d017dvs50hc1qy0wm-kio-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ghv6la6sfw8cj2nvc4jgyblfll7glrg6-kxmlgui-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/dnfwq3dxsr6s37vbnmfd9rimgx0ns12c-kservice-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/dnfwq3dxsr6s37vbnmfd9rimgx0ns12c-kservice-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/ki3f9mxwm1aa5n1d017dvs50hc1qy0wm-kio-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ghv6la6sfw8cj2nvc4jgyblfll7glrg6-kxmlgui-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/dnfwq3dxsr6s37vbnmfd9rimgx0ns12c-kservice-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/ki3f9mxwm1aa5n1d017dvs50hc1qy0wm-kio-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ghv6la6sfw8cj2nvc4jgyblfll7glrg6-kxmlgui-5.116.0-bin/etc/xdg/nix/nix.conf:/home/sobornost/.config/kdedefaults/nix/nix.conf:/nix/store/knsk0aghhj201xq52cg372c012cd0az4-plasma-workspace-5.27.11.1/etc/xdg/nix/nix.conf:/nix/store/6n73iidx8kd69884hc6wd72kkfcjghvy-kdelibs4support-5.116.0/etc/xdg/nix/nix.conf:/nix/store/1w6krqb8yryc59xxb1i86wgfsnm2ahxs-baloo-5.116.0/etc/xdg/nix/nix.conf:/nix/store/dnfwq3dxsr6s37vbnmfd9rimgx0ns12c-kservice-5.116.0-bin/etc/xdg/nix/nix.conf:/nix/store/ki3f9mxwm1aa5n1d017dvs50hc1qy0wm-kio-5.116.0/etc/xdg/nix/nix.conf:/nix/store/ghv6la6sfw8cj2nvc4jgyblfll7glrg6-kxmlgui-5.116.0-bin/etc/xdg/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/sobornost/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/sobornost/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/sobornost/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/984rvyvf2mvwhgyx7bwhrjvsgv6ln42d-lix-2.91.1/share`
 - nixpkgs: `/nix/store/22r7q7s9552gn1vpjigkbhfgcvhsrz68-source`

Version

Latest at time of report

Additional Context

The flake does not seem to rely on any kind of flake.lock mechanism, adding one would greatly improve reproducibility (and would allow for this kind of issues to be detected more easily by the flake developers)

Relevant log output

Here is the tornado build log:

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pip-build-hook
Using pipBuildPhase
Using pipShellHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/9fq1dfdfkkjxc1gngj1fwb5rsm9lyppi-tornado-6.4.2.tar.gz
source root is tornado-6.4.2
setting SOURCE_DATE_EPOCH to timestamp 1732243070 of file tornado-6.4.2/setup.cfg
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Removing path dependencies
Finished removing path dependencies
Removing git dependencies
Finished removing git dependencies
Removing wheel-url dependencies
Finished removing wheel-url dependencies
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pipBuildPhase
Creating a wheel...
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not wri>
Processing /build/tornado-6.4.2
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /build/pip-modern-metadata-yn0lf31r/tornado.egg-info
  writing /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/PKG-INFO
  writing dependency_links to /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/dependency_links.txt
  writing top-level names to /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/top_level.txt
  writing manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  reading manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/build'
  warning: no files found matching 'tornado/test/README'
  adding license file 'LICENSE'
  writing manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  creating '/build/pip-modern-metadata-yn0lf31r/tornado-6.4.2.dist-info'
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: tornado
  Running command Building wheel for tornado (pyproject.toml)
  usage: _in_process.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: _in_process.py --help [cmd1 cmd2 ...]
lines 1-54
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pip-build-hook
Using pipBuildPhase
Using pipShellHook
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/9fq1dfdfkkjxc1gngj1fwb5rsm9lyppi-tornado-6.4.2.tar.gz
source root is tornado-6.4.2
setting SOURCE_DATE_EPOCH to timestamp 1732243070 of file tornado-6.4.2/setup.cfg
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Removing path dependencies
Finished removing path dependencies
Removing git dependencies
Finished removing git dependencies
Removing wheel-url dependencies
Finished removing wheel-url dependencies
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pipBuildPhase
Creating a wheel...
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. I>
Processing /build/tornado-6.4.2
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /build/pip-modern-metadata-yn0lf31r/tornado.egg-info
  writing /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/PKG-INFO
  writing dependency_links to /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/dependency_links.txt
  writing top-level names to /build/pip-modern-metadata-yn0lf31r/tornado.egg-info/top_level.txt
  writing manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  reading manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/build'
  warning: no files found matching 'tornado/test/README'
  adding license file 'LICENSE'
  writing manifest file '/build/pip-modern-metadata-yn0lf31r/tornado.egg-info/SOURCES.txt'
  creating '/build/pip-modern-metadata-yn0lf31r/tornado-6.4.2.dist-info'
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: tornado
  Running command Building wheel for tornado (pyproject.toml)
  usage: _in_process.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: _in_process.py --help [cmd1 cmd2 ...]
     or: _in_process.py --help-commands
     or: _in_process.py cmd --help

  error: option --dist-info-dir not recognized
  error: subprocess-exited-with-error

  × Building wheel for tornado (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /nix/store/zv1kaq7f1q20x62kbjv6pfjygw5jmwl6-python3-3.12.7/bin/python3.12 /nix/store/b5hj21zkaxlyb8h6jrnl3ic82xs9xckd-python3.12-pip-24.0/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_>
  cwd: /build/tornado-6.4.2
  Building wheel for tornado (pyproject.toml) ... error
  ERROR: Failed building wheel for tornado
Failed to build tornado
ERROR: Failed to build one or more wheels
@sobornostea sobornostea added the bug Something isn't working label Dec 16, 2024
@sobornostea
Copy link
Author

I added some more logs

@osbm
Copy link

osbm commented Dec 22, 2024

Yeah i am also having this issue and i followed the README instructions without changing anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants