Skip to content

Instantly share code, notes, and snippets.

@alunduil
Created October 17, 2020 08:36
Show Gist options
  • Save alunduil/b7478070df427909517d2ac0d87a2f7c to your computer and use it in GitHub Desktop.
Save alunduil/b7478070df427909517d2ac0d87a2f7c to your computer and use it in GitHub Desktop.
stdin
[INFO] Installing environment for https://github.com/psf/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/bin/python3.7', '/home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/bin/pip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Processing /home/alunduil/.cache/pre-commit/repopgzbqzre
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: attrs>=18.1.0 in /nix/store/bbicl709z65vh33nhjipm5apmsv81li8-python3.7-attrs-19.3.0/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (19.3.0)
Requirement already satisfied: toml>=0.9.4 in /nix/store/69iw9fh3l619kf7n6235vpmjzam6aks9-python3.7-toml-0.10.0/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (0.10.0)
Requirement already satisfied: typed-ast>=1.4.0 in /nix/store/35vv230gwz9939xfg3sargjz30dkv08v-python3.7-typed-ast-1.4.0/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (1.4.0)
Requirement already satisfied: click>=6.5 in /nix/store/02mkfzlja90abihab4fxg2kwz9z8aly7-python3.7-click-7.0/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (7.0)
Requirement already satisfied: pathspec<1,>=0.6 in /nix/store/1nxx82y3b867irnz9icmi5rqssjfqyav-python3.7-pathspec-0.6.0/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (0.6.0)
Requirement already satisfied: regex in /nix/store/w8sf1c2m5frv9n9rjx2idr58v5yyp7pb-python3.7-regex-2019.12.20/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (2019.12.20)
Requirement already satisfied: appdirs in /nix/store/0bvsc9xcrsqsaariladv37rp7hhly21k-python3.7-appdirs-1.4.3/lib/python3.7/site-packages (from black==0.1.dev1+g6bedb5c) (1.4.3)
Building wheels for collected packages: black
Building wheel for black (PEP 517): started
Building wheel for black (PEP 517): finished with status 'error'
Running setup.py clean for black
Failed to build black
stderr:
ERROR: Command errored out with exit status 1:
command: /home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/bin/python3.7 /home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /run/user/1000/tmpqh3pzgqp
cwd: /run/user/1000/pip-req-build-ti0eiw8_
Complete output (100 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying black.py -> build/lib
copying blackd.py -> build/lib
copying _black_version.py -> build/lib
creating build/lib/blib2to3
copying blib2to3/pytree.py -> build/lib/blib2to3
copying blib2to3/__init__.py -> build/lib/blib2to3
copying blib2to3/pygram.py -> build/lib/blib2to3
creating build/lib/blib2to3/pgen2
copying blib2to3/pgen2/driver.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/__init__.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/tokenize.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/conv.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/literals.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/grammar.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/parse.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/token.py -> build/lib/blib2to3/pgen2
copying blib2to3/pgen2/pgen.py -> build/lib/blib2to3/pgen2
copying blib2to3/Grammar.txt -> build/lib/blib2to3
copying blib2to3/PatternGrammar.txt -> build/lib/blib2to3
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/blib2to3
copying build/lib/blib2to3/PatternGrammar.txt -> build/bdist.linux-x86_64/wheel/blib2to3
copying build/lib/blib2to3/Grammar.txt -> build/bdist.linux-x86_64/wheel/blib2to3
creating build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/pgen.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/token.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/parse.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/grammar.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/literals.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/conv.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/tokenize.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/__init__.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pgen2/driver.py -> build/bdist.linux-x86_64/wheel/blib2to3/pgen2
copying build/lib/blib2to3/pygram.py -> build/bdist.linux-x86_64/wheel/blib2to3
copying build/lib/blib2to3/__init__.py -> build/bdist.linux-x86_64/wheel/blib2to3
copying build/lib/blib2to3/pytree.py -> build/bdist.linux-x86_64/wheel/blib2to3
copying build/lib/_black_version.py -> build/bdist.linux-x86_64/wheel
copying build/lib/blackd.py -> build/bdist.linux-x86_64/wheel
copying build/lib/black.py -> build/bdist.linux-x86_64/wheel
running install_egg_info
running egg_info
creating black.egg-info
writing black.egg-info/PKG-INFO
writing dependency_links to black.egg-info/dependency_links.txt
writing entry points to black.egg-info/entry_points.txt
writing requirements to black.egg-info/requires.txt
writing top-level names to black.egg-info/top_level.txt
writing manifest file 'black.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/setuptools_scm/git.py:68: UserWarning: "/run/user/1000/pip-req-build-ti0eiw8_" is shallow and may cause errors
warnings.warn('"{}" is shallow and may cause errors'.format(wd.path))
warning: no files found matching '*.rst'
warning: no files found matching '*.txt' under directory 'tests'
writing manifest file 'black.egg-info/SOURCES.txt'
Copying black.egg-info to build/bdist.linux-x86_64/wheel/black-0.1.dev1+g6bedb5c-py3.7.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-x86_64/wheel/black-0.1.dev1+g6bedb5c.dist-info/WHEEL
creating '/run/user/1000/pip-wheel-zl8bf0mp/tmpu_rghni9/black-0.1.dev1+g6bedb5c-py36-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
Traceback (most recent call last):
File "/home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/alunduil/.cache/pre-commit/repopgzbqzre/py_env-python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
metadata_directory)
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 217, in build_wheel
wheel_directory, config_settings)
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
self.run_setup()
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 65, in <module>
"blackd=blackd:patched_main [d]",
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 352, in run
wf.write_files(archive_root)
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/wheel/wheelfile.py", line 124, in write_files
self.write(path, arcname)
File "/run/user/1000/pip-build-env-q0bfj1cx/overlay/lib/python3.7/site-packages/wheel/wheelfile.py", line 135, in write
zinfo = ZipInfo(arcname or filename, date_time=get_zipinfo_datetime(st.st_mtime))
File "/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/zipfile.py", line 357, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
----------------------------------------
ERROR: Failed building wheel for black
ERROR: Could not build wheels for black which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.3.1; however, version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Check the log at /home/alunduil/.cache/pre-commit/pre-commit.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment