Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

pypi2nix wheel fails with ZIP error #87

Closed
@bennofs

Description

@bennofs
$ pypi2nix wheel
Downloading wheels and creating wheelhouse
|-> nix-build /nix/store/xgkkyhjk988libra1cqq2xfvzva5vkz1-pypi2nix-1.0.0/pkgs/pypi2nix/pip.nix --option build-use-chroot false --argstr requirements wheel --argstr cache /tmp/pypi2nix/cache/5eda0ea98768e91b815fa6667e4f0178 --argstr pythonVersion python27 --arg extraBuildInputs [] -I nixpkgs=/run/current-system/nixpkgs:/run/current-system/nixpkgs:nixos-config=/etc/nixos/configuration.nix -o /home/.pypi2nix/out --show-trace
    warning: Nix search path entry ‘/run/current-system/nixpkgs:/run/current-system/nixpkgs:nixos-config=/etc/nixos/configuration.nix’ does not exist, ignoring
    trace: INFO: Deprecated use of MD5 hash in fetchurl to fetch https://pypi.python.org/packages/41/27/9a8d24e1b55bd8c85e4d022da2922cb206f183e2d18fee4e320c9547e751/pip-8.1.1.tar.gz
    trace: INFO: Deprecated use of MD5 hash in fetchurl to fetch https://pypi.python.org/packages/31/6a/0f19a7edef6c8e5065f4346137cc2a08e22e141942d66af2e1e72d851462/pip-8.1.1-py2.py3-none-any.whl
    trace: INFO: Deprecated use of MD5 hash in fetchurl to fetch https://pypi.python.org/packages/15/b7/a76624e5a3b18c8c1c8d33a5240b34cdabb08aef2da44b536a8b53ba1a45/setuptools-21.0.0-py2.py3-none-any.whl
    trace: INFO: Deprecated use of MD5 hash in fetchurl to fetch https://pypi.python.org/packages/c9/1d/bd19e691fd4cfe908c76c429fe6e4436c9e83583c4414b54f6c85471954a/wheel-0.29.0.tar.gz
    trace: INFO: Deprecated use of MD5 hash in fetchurl to fetch https://pypi.python.org/packages/bd/07/28eba9f0a9da3544611db7e1796583a9c61a3c83c26f6a80e4fd790752b1/zc.buildout-2.5.1.tar.gz
    these derivations will be built:
      /nix/store/ripn6br3813jdylxwyf4yds77my2lcyw-pypi2nix-pip.drv
    building path(s) ‘/nix/store/kad7zm39pbbr4w89k6bsh1ym8xgm2405-pypi2nix-pip’
    The directory '/homeless-shelter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    Collecting wheel (from -r requirements.txt (line 1))
      Downloading wheel-0.29.0.tar.gz (54kB)
    Building wheels for collected packages: wheel
      Running setup.py bdist_wheel for wheel: started
      Running setup.py bdist_wheel for wheel: finished with status 'error'
      Complete output from command /nix/store/jnsn1lcgrajfmr6xvjkv5v1x87qwbvfv-python-2.7.12/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/nix-build-pypi2nix-pip.drv-0/tmpB5A7Gspip-wheel-:
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/wheel
      copying wheel/__init__.py -> build/lib/wheel
      copying wheel/egg2wheel.py -> build/lib/wheel
      copying wheel/decorator.py -> build/lib/wheel
      copying wheel/paths.py -> build/lib/wheel
      copying wheel/wininst2wheel.py -> build/lib/wheel
      copying wheel/util.py -> build/lib/wheel
      copying wheel/metadata.py -> build/lib/wheel
      copying wheel/pep425tags.py -> build/lib/wheel
      copying wheel/pkginfo.py -> build/lib/wheel
      copying wheel/__main__.py -> build/lib/wheel
      copying wheel/archive.py -> build/lib/wheel
      copying wheel/install.py -> build/lib/wheel
      copying wheel/bdist_wheel.py -> build/lib/wheel
      creating build/lib/wheel/test
      copying wheel/test/__init__.py -> build/lib/wheel/test
      copying wheel/test/test_keys.py -> build/lib/wheel/test
      copying wheel/test/test_ranking.py -> build/lib/wheel/test
      copying wheel/test/test_basic.py -> build/lib/wheel/test
      copying wheel/test/test_install.py -> build/lib/wheel/test
      copying wheel/test/test_tool.py -> build/lib/wheel/test
      copying wheel/test/test_tagopt.py -> build/lib/wheel/test
      copying wheel/test/test_signatures.py -> build/lib/wheel/test
      copying wheel/test/test_paths.py -> build/lib/wheel/test
      copying wheel/test/test_wheelfile.py -> build/lib/wheel/test
      creating build/lib/wheel/tool
      copying wheel/tool/__init__.py -> build/lib/wheel/tool
      creating build/lib/wheel/signatures
      copying wheel/signatures/__init__.py -> build/lib/wheel/signatures
      copying wheel/signatures/djbec.py -> build/lib/wheel/signatures
      copying wheel/signatures/ed25519py.py -> build/lib/wheel/signatures
      copying wheel/signatures/keys.py -> build/lib/wheel/signatures
      running egg_info
      writing requirements to wheel.egg-info/requires.txt
      writing wheel.egg-info/PKG-INFO
      writing top-level names to wheel.egg-info/top_level.txt
      writing dependency_links to wheel.egg-info/dependency_links.txt
      writing entry points to wheel.egg-info/entry_points.txt
      warning: manifest_maker: standard file '-c' not found

      reading manifest file 'wheel.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'wheel/test/*/dist'
      no previously-included directories found matching 'wheel/test/*/build'
      writing manifest file 'wheel.egg-info/SOURCES.txt'
      copying wheel/eggnames.txt -> build/lib/wheel
      copying wheel/test/pydist-schema.json -> build/lib/wheel/test
      copying wheel/test/test-1.0-py2.py3-none-win32.whl -> build/lib/wheel/test
      creating build/lib/wheel/test/complex-dist
      copying wheel/test/complex-dist/setup.py -> build/lib/wheel/test/complex-dist
      creating build/lib/wheel/test/complex-dist/complexdist
      copying wheel/test/complex-dist/complexdist/__init__.py -> build/lib/wheel/test/complex-dist/complexdist
      creating build/lib/wheel/test/headers.dist
      copying wheel/test/headers.dist/header.h -> build/lib/wheel/test/headers.dist
      copying wheel/test/headers.dist/headersdist.py -> build/lib/wheel/test/headers.dist
      copying wheel/test/headers.dist/setup.py -> build/lib/wheel/test/headers.dist
      creating build/lib/wheel/test/simple.dist
      copying wheel/test/simple.dist/setup.py -> build/lib/wheel/test/simple.dist
      creating build/lib/wheel/test/simple.dist/simpledist
      copying wheel/test/simple.dist/simpledist/__init__.py -> build/lib/wheel/test/simple.dist/simpledist
      installing to build/bdist.linux-x86_64/wheel
      running install
      running install_lib
      creating build/bdist.linux-x86_64
      creating build/bdist.linux-x86_64/wheel
      creating build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/__init__.py -> build/bdist.linux-x86_64/wheel/wheel
      creating build/bdist.linux-x86_64/wheel/wheel/signatures
      copying build/lib/wheel/signatures/__init__.py -> build/bdist.linux-x86_64/wheel/wheel/signatures
      copying build/lib/wheel/signatures/djbec.py -> build/bdist.linux-x86_64/wheel/wheel/signatures
      copying build/lib/wheel/signatures/ed25519py.py -> build/bdist.linux-x86_64/wheel/wheel/signatures
      copying build/lib/wheel/signatures/keys.py -> build/bdist.linux-x86_64/wheel/wheel/signatures
      copying build/lib/wheel/egg2wheel.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/decorator.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/paths.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/wininst2wheel.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/util.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/metadata.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/pep425tags.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/eggnames.txt -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/pkginfo.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/__main__.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/archive.py -> build/bdist.linux-x86_64/wheel/wheel
      copying build/lib/wheel/install.py -> build/bdist.linux-x86_64/wheel/wheel
      creating build/bdist.linux-x86_64/wheel/wheel/tool
      copying build/lib/wheel/tool/__init__.py -> build/bdist.linux-x86_64/wheel/wheel/tool
      copying build/lib/wheel/bdist_wheel.py -> build/bdist.linux-x86_64/wheel/wheel
      creating build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/__init__.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_keys.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test-1.0-py2.py3-none-win32.whl -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_ranking.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_basic.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_install.py -> build/bdist.linux-x86_64/wheel/wheel/test
      creating build/bdist.linux-x86_64/wheel/wheel/test/headers.dist
      copying build/lib/wheel/test/headers.dist/header.h -> build/bdist.linux-x86_64/wheel/wheel/test/headers.dist
      copying build/lib/wheel/test/headers.dist/setup.py -> build/bdist.linux-x86_64/wheel/wheel/test/headers.dist
      copying build/lib/wheel/test/headers.dist/headersdist.py -> build/bdist.linux-x86_64/wheel/wheel/test/headers.dist
      copying build/lib/wheel/test/test_tool.py -> build/bdist.linux-x86_64/wheel/wheel/test
      creating build/bdist.linux-x86_64/wheel/wheel/test/complex-dist
      creating build/bdist.linux-x86_64/wheel/wheel/test/complex-dist/complexdist
      copying build/lib/wheel/test/complex-dist/complexdist/__init__.py -> build/bdist.linux-x86_64/wheel/wheel/test/complex-dist/complexdist
      copying build/lib/wheel/test/complex-dist/setup.py -> build/bdist.linux-x86_64/wheel/wheel/test/complex-dist
      copying build/lib/wheel/test/test_tagopt.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_signatures.py -> build/bdist.linux-x86_64/wheel/wheel/test
      creating build/bdist.linux-x86_64/wheel/wheel/test/simple.dist
      creating build/bdist.linux-x86_64/wheel/wheel/test/simple.dist/simpledist
      copying build/lib/wheel/test/simple.dist/simpledist/__init__.py -> build/bdist.linux-x86_64/wheel/wheel/test/simple.dist/simpledist
      copying build/lib/wheel/test/simple.dist/setup.py -> build/bdist.linux-x86_64/wheel/wheel/test/simple.dist
      copying build/lib/wheel/test/test_paths.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/test_wheelfile.py -> build/bdist.linux-x86_64/wheel/wheel/test
      copying build/lib/wheel/test/pydist-schema.json -> build/bdist.linux-x86_64/wheel/wheel/test
      running install_egg_info
      Copying wheel.egg-info to build/bdist.linux-x86_64/wheel/wheel-0.29.0-py2.7.egg-info
      running install_scripts
      creating build/bdist.linux-x86_64/wheel/wheel-0.29.0.dist-info/WHEEL
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/setup.py", line 56, in <module>
          bdist_wheel = wheel.bdist_wheel:bdist_wheel"""
        File "/nix/store/jnsn1lcgrajfmr6xvjkv5v1x87qwbvfv-python-2.7.12/lib/python2.7/distutils/core.py", line 151, in setup
          dist.run_commands()
        File "/nix/store/jnsn1lcgrajfmr6xvjkv5v1x87qwbvfv-python-2.7.12/lib/python2.7/distutils/dist.py", line 953, in run_commands
          self.run_command(cmd)
        File "/nix/store/jnsn1lcgrajfmr6xvjkv5v1x87qwbvfv-python-2.7.12/lib/python2.7/distutils/dist.py", line 972, in run_command
          cmd_obj.run()
        File "/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/wheel/bdist_wheel.py", line 241, in run
          wheel_name = archive_wheelfile(pseudoinstall_root, archive_root)
        File "/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/wheel/archive.py", line 22, in archive_wheelfile
          return make_wheelfile_inner(base_name)
        File "/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/wheel/archive.py", line 72, in make_wheelfile_inner
          writefile(path, date_time)
        File "/tmp/nix-build-pypi2nix-pip.drv-0/pip-build-r54nXY/wheel/wheel/archive.py", line 57, in writefile
          zinfo = zipfile.ZipInfo(path, date_time)
        File "/nix/store/jnsn1lcgrajfmr6xvjkv5v1x87qwbvfv-python-2.7.12/lib/python2.7/zipfile.py", line 305, in __init__
          raise ValueError('ZIP does not support timestamps before 1980')
      ValueError: ZIP does not support timestamps before 1980

      ----------------------------------------
      Failed building wheel for wheel
      Running setup.py clean for wheel
    Failed to build wheel
    ERROR: Failed to build one or more wheels
    The directory '/homeless-shelter/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
    You are using pip version 8.1.1, however version 8.1.2 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    builder for ‘/nix/store/ripn6br3813jdylxwyf4yds77my2lcyw-pypi2nix-pip.drv’ failed with exit code 1
    error: build of ‘/nix/store/ripn6br3813jdylxwyf4yds77my2lcyw-pypi2nix-pip.drv’ failed

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