pryrsistent v0.15.0 fails
See original GitHub issueMy build seems to have broken suspiciously close to your release ~2hrs ago =)
Here is the complete output of my repro:
16:51:15 ⮀ ὐB 100% cmyers@lasersword ⮀ python --version
Python 2.7.16rc1
16:51:19 ⮀ ὐB 100% cmyers@lasersword ⮀ virtualenv --version
15.1.0
16:51:26 ⮀ ὐB 100% cmyers@lasersword ⮀ virtualenv ve
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/cmyers/projects/repro/ve/bin/python2
Also creating executable in /home/cmyers/projects/repro/ve/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
virtualenv ve 1.47s user 0.17s system 86% cpu 1.884 total
16:51:34 ⮀ ὐB 100% cmyers@lasersword ⮀ source ve/bin/activate
16:52:08 ⮀ ὐB 100% cmyers@lasersword ⮀ (ve) ⮀ pip install pyrsistent==v0.15.0
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pyrsistent==v0.15.0
Downloading https://files.pythonhosted.org/packages/e7/fd/5ede6c969bf75eeb0cf438117da6c220d09066d2e2ad2b829924393f658a/pyrsistent-0.15.0.tar.gz (105kB)
|████████████████████████████████| 112kB 553kB/s
Collecting six (from pyrsistent==v0.15.0)
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Building wheels for collected packages: pyrsistent Building wheel for pyrsistent (setup.py) ... error
ERROR: Complete output from command /home/cmyers/projects/repro/ve/bin/python2 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-NJE0aa/pyrsistent/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file_
_, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-PnSkcT --python-tag cp27:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying _pyrsistent_version.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_plist.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pvector.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_field_common.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/__init__.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_compat.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pbag.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_toolz.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pmap.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_helpers.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/typing.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_transformations.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_checked_types.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_immutable.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_precord.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pset.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pdeque.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pclass.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/py.typed -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/__init__.pyi -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/typing.pyi -> build/lib.linux-x86_64-2.7/pyrsistent
running build_ext
building 'pvectorc' extension creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-UboFgi/python2.7-2.7.16~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c pvectorcmodule.c -o bui
ld/temp.linux-x86_64-2.7/pvectorcmodule.o
pvectorcmodule.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-NJE0aa/pyrsistent/setup.py", line 89, in <module>
package_data={'pyrsistent': ['py.typed', '__init__.pyi', 'typing.pyi']},
File "/home/cmyers/projects/repro/ve/local/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/cmyers/projects/repro/ve/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-NJE0aa/pyrsistent/setup.py", line 39, in run
except (CCompilerError, DistutilsExecError, DistutilsPlatformError, FileNotFoundError):
NameError: global name 'FileNotFoundError' is not defined
----------------------------------------
ERROR: Failed building wheel for pyrsistent Running setup.py clean for pyrsistent
Failed to build pyrsistent
Installing collected packages: six, pyrsistent
Running setup.py install for pyrsistent ... error
ERROR: Complete output from command /home/cmyers/projects/repro/ve/bin/python2 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-NJE0aa/pyrsistent/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8oAUJ_/install-record.txt --single-version-externally-managed --compile --install-headers /home/cmyers/projects/repro/ve/include/site/python2.7/pyrsistent:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying _pyrsistent_version.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_plist.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pvector.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_field_common.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/__init__.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_compat.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pbag.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_toolz.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pmap.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_helpers.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/typing.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_transformations.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_checked_types.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_immutable.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_precord.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pset.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pdeque.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/_pclass.py -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/py.typed -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/__init__.pyi -> build/lib.linux-x86_64-2.7/pyrsistent
copying pyrsistent/typing.pyi -> build/lib.linux-x86_64-2.7/pyrsistent
running build_ext
building 'pvectorc' extension
creating build/temp.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-UboFgi/python2.7-2.7.16~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c pvectorcmodule.c -o build/temp.linux-x86_64-2.7/pvectorcmodule.o
pvectorcmodule.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-NJE0aa/pyrsistent/setup.py", line 89, in <module>
package_data={'pyrsistent': ['py.typed', '__init__.pyi', 'typing.pyi']},
File "/home/cmyers/projects/repro/ve/local/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/cmyers/projects/repro/ve/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-NJE0aa/pyrsistent/setup.py", line 39, in run
except (CCompilerError, DistutilsExecError, DistutilsPlatformError, FileNotFoundError):
NameError: global name 'FileNotFoundError' is not defined
----------------------------------------
ERROR: Command "/home/cmyers/projects/repro/ve/bin/python2 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-NJE0aa/pyrsistent/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8oAUJ_/install-record.txt --single-version-externally-managed --compile --install-headers /home/cmyers/projects/repro/ve/include/site/python2.7/pyrsistent" failed with error code 1 in /tmp/pip-install-NJE0aa/pyrsistent/
When I try the earlier version, I get:
16:52:56 ⮀ ὐB 100% cmyers@lasersword ⮀ (ve) ⮀ pip install pyrsistent==v0.14.11
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pyrsistent==v0.14.11
Downloading https://files.pythonhosted.org/packages/8c/46/4e93ab8a379d7efe93f20a0fb8a27bdfe88942cc954ab0210c3164e783e0/pyrsistent-0.14.11.tar.gz (104kB)
|████████████████████████████████| 112kB 521kB/s
Requirement already satisfied: six in ./ve/lib/python2.7/site-packages (from pyrsistent==v0.14.11) (1.12.0)
Building wheels for collected packages: pyrsistent
Building wheel for pyrsistent (setup.py) ... done
Stored in directory: /home/cmyers/.cache/pip/wheels/83/59/9a/a037b9b3c3e93d9275ea0aff9d6064400f372879dfdab01afe
Successfully built pyrsistent
Installing collected packages: pyrsistent
Successfully installed pyrsistent-0.14.11
I am a trained monkey at best, I am trying to build a new internal project I am not super involved in so I don’t have any context at all, but given the above logs I am pretty sure pyrsistent’s most recent release is broke…
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Persistent_connection.Make · async v0.15.0
async v0.15.0: Monadic concurrency library. ... Otherwise it becomes determined the next time t becomes connected or fails to connect or when t...
Read more >v0.15.0 Milestone
channeldb: can't coop close channel after first try fails or times out bug Unintended code behaviour channel closing Related to the closing of...
Read more >kind – Known Issues - Kubernetes
Having problems with kind? This guide covers some known problems and solutions / workarounds. It may additionally be helpful to: check our issue...
Read more >Changelog — ex_check v0.15.0
... mode when previous run resulted in failures (pass --no-retry to override) ... persist when custom config is applied to default tools; Renamed...
Read more >Bitcoin Core version 0.15.0 released
The only downside is that the on-disk database is 15% larger. ... Version 0.14 introduced mempool persistence across restarts (the mempool ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems related to https://github.com/tobgu/pyrsistent/pull/162
FileNotFoundError
is not defined in Python 2Fix released in v0.15.1, please verify. Sorry for the inconvenience!