From issues-reply at bitbucket.org Sun Oct 2 13:06:24 2016 From: issues-reply at bitbucket.org (Maciej Fijalkowski) Date: Sun, 02 Oct 2016 17:06:24 -0000 Subject: [pypy-issue] Issue #2409: OS X leaks FDs while failing to open dirs (pypy/pypy) Message-ID: <20161002170624.28923.36500@celery-worker-107.ash1.bb-inf.net> New issue 2409: OS X leaks FDs while failing to open dirs https://bitbucket.org/pypy/pypy/issues/2409/os-x-leaks-fds-while-failing-to-open-dirs Maciej Fijalkowski: Here is the code: ``` #!python import os for x in range(100): for item in os.listdir('mercurial'): try: f = open(os.path.join('mercurial', item)) except (OSError, IOError): pass else: f.close() ``` run it on e.g. mercurial repo, crashes with "Too many open files" From issues-reply at bitbucket.org Mon Oct 3 13:27:10 2016 From: issues-reply at bitbucket.org (Carl Friedrich Bolz) Date: Mon, 03 Oct 2016 17:27:10 -0000 Subject: [pypy-issue] Issue #2410: list.sort(key=...) is slow (pypy/pypy) Message-ID: <20161003172710.37942.50526@celery-worker-105.ash1.bb-inf.net> New issue 2410: list.sort(key=...) is slow https://bitbucket.org/pypy/pypy/issues/2410/listsort-key-is-slow Carl Friedrich Bolz: Tuom Larsen reported this problem on the mailing list. The following code: ``` python from random import random from time import time class point(object): def __init__(self, x, y): self.x, self.y = x, y data = [point(random(), random()) for i in range(2000000)] t = time() data.sort(key=lambda p:p.x) print time() - t ``` is much slower (>3x on my machine) than the manual version: ``` python wrapped_data = [(p.x, p) for p in data] wrapped_data.sort() data = [it[1] for it in wrapped_data] ``` Which is due to a missing JitDriver in the decorate-functionality of the sort implementation. We should fix that. From issues-reply at bitbucket.org Fri Oct 7 07:47:15 2016 From: issues-reply at bitbucket.org (Armin Rigo) Date: Fri, 07 Oct 2016 11:47:15 -0000 Subject: [pypy-issue] Issue #2411: buffer-interface2 review (pypy/pypy) Message-ID: <20161007114715.33476.1168@celery-worker-105.ash1.bb-inf.net> New issue 2411: buffer-interface2 review https://bitbucket.org/pypy/pypy/issues/2411/buffer-interface2-review Armin Rigo: baseobjspace.py: def buffer_w(): there are two new cases depending on ``flags & space.BUF_WRITABLE:`` but the two cases do the same thing? From issues-reply at bitbucket.org Sun Oct 9 07:02:14 2016 From: issues-reply at bitbucket.org (Daniil Yarancev) Date: Sun, 09 Oct 2016 11:02:14 -0000 Subject: [pypy-issue] Issue #2412: find_objdump doesn't support win32 (pypy/pypy) Message-ID: <20161009110214.11652.71862@celery-worker-101.ash1.bb-inf.net> New issue 2412: find_objdump doesn't support win32 https://bitbucket.org/pypy/pypy/issues/2412/find_objdump-doesnt-support-win32 Daniil Yarancev: In pypy / rpython / jit / backend / tool / viewcode.py , find_objdump doesn't search filenames with .exe postfix, so it can't find objdump on Windows (if in path) From issues-reply at bitbucket.org Mon Oct 10 08:51:31 2016 From: issues-reply at bitbucket.org (Daniil Yarancev) Date: Mon, 10 Oct 2016 12:51:31 -0000 Subject: [pypy-issue] Issue #2413: random.uniform(0, 1) can produce "nan" number (pypy/pypy) Message-ID: <20161010125131.1712.64781@celery-worker-101.ash1.bb-inf.net> New issue 2413: random.uniform(0, 1) can produce "nan" number https://bitbucket.org/pypy/pypy/issues/2413/randomuniform-0-1-can-produce-nan-number Daniil Yarancev: Latest build from buildbot (PyPy3) - Python 3.5.1 (c9676f35333a, Oct 09 2016, 04:13:00) Consider the following example: ``` #!python import math import random for x in range(1000): val = random.uniform(0, 1) if math.isnan(val): print(val) ``` So PyPy3 can produce here 0~5 nan's. From issues-reply at bitbucket.org Mon Oct 10 20:36:24 2016 From: issues-reply at bitbucket.org (hisham waleed karam) Date: Tue, 11 Oct 2016 00:36:24 -0000 Subject: [pypy-issue] Issue #2414: Can not install using pip (pypy) (pypy/pypy) Message-ID: <20161011003624.34024.58972@celery-worker-107.ash1.bb-inf.net> New issue 2414: Can not install using pip (pypy) https://bitbucket.org/pypy/pypy/issues/2414/can-not-install-using-pip-pypy hisham waleed karam: What did you do? **trying to install pillow** What did you expect to happen? **Collecting Pillow Installing collected packages: Pillow Successfully installed Pillow-3.4.1** What actually happened? ``` #!python (PYPY_B~1) D:\Graduation Project\pypy_blog\src>pip install pillow Collecting pillow Downloading Pillow-3.4.1.zip (11.0MB) 100% |################################| 11.0MB 61kB/s Building wheels for collected packages: pillow Running setup.py bdist_wheel for pillow ... error Complete output from command d:\gradua~1\pypy_b~1\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hisha\\appdata\\local\\temp\\pip-build-ootvc5\\pillow\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\hisha\appdata\local\temp\tmp09kyzfpip-wheel- --python-tag pp254: Single threaded build for windows running bdist_wheel running build running build_py creating build creating build\lib.win32-2.7 creating build\lib.win32-2.7\PIL copying PIL\BdfFontFile.py -> build\lib.win32-2.7\PIL copying PIL\BmpImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ContainerIO.py -> build\lib.win32-2.7\PIL copying PIL\CurImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\DcxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\DdsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\EpsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ExifTags.py -> build\lib.win32-2.7\PIL copying PIL\features.py -> build\lib.win32-2.7\PIL copying PIL\FitsStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FliImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FontFile.py -> build\lib.win32-2.7\PIL copying PIL\FpxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FtexImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GbrImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GdImageFile.py -> build\lib.win32-2.7\PIL copying PIL\GifImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GimpGradientFile.py -> build\lib.win32-2.7\PIL copying PIL\GimpPaletteFile.py -> build\lib.win32-2.7\PIL copying PIL\GribStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IcnsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IcoImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Image.py -> build\lib.win32-2.7\PIL copying PIL\ImageChops.py -> build\lib.win32-2.7\PIL copying PIL\ImageCms.py -> build\lib.win32-2.7\PIL copying PIL\ImageColor.py -> build\lib.win32-2.7\PIL copying PIL\ImageDraw.py -> build\lib.win32-2.7\PIL copying PIL\ImageDraw2.py -> build\lib.win32-2.7\PIL copying PIL\ImageEnhance.py -> build\lib.win32-2.7\PIL copying PIL\ImageFile.py -> build\lib.win32-2.7\PIL copying PIL\ImageFilter.py -> build\lib.win32-2.7\PIL copying PIL\ImageFont.py -> build\lib.win32-2.7\PIL copying PIL\ImageGrab.py -> build\lib.win32-2.7\PIL copying PIL\ImageMath.py -> build\lib.win32-2.7\PIL copying PIL\ImageMode.py -> build\lib.win32-2.7\PIL copying PIL\ImageMorph.py -> build\lib.win32-2.7\PIL copying PIL\ImageOps.py -> build\lib.win32-2.7\PIL copying PIL\ImagePalette.py -> build\lib.win32-2.7\PIL copying PIL\ImagePath.py -> build\lib.win32-2.7\PIL copying PIL\ImageQt.py -> build\lib.win32-2.7\PIL copying PIL\ImageSequence.py -> build\lib.win32-2.7\PIL copying PIL\ImageShow.py -> build\lib.win32-2.7\PIL copying PIL\ImageStat.py -> build\lib.win32-2.7\PIL copying PIL\ImageTk.py -> build\lib.win32-2.7\PIL copying PIL\ImageTransform.py -> build\lib.win32-2.7\PIL copying PIL\ImageWin.py -> build\lib.win32-2.7\PIL copying PIL\ImImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ImtImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IptcImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Jpeg2KImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\JpegImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\JpegPresets.py -> build\lib.win32-2.7\PIL copying PIL\McIdasImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MicImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MpegImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MpoImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MspImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\OleFileIO.py -> build\lib.win32-2.7\PIL copying PIL\PaletteFile.py -> build\lib.win32-2.7\PIL copying PIL\PalmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PcdImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PcfFontFile.py -> build\lib.win32-2.7\PIL copying PIL\PcxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PdfImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PixarImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PngImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PpmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PsdImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PSDraw.py -> build\lib.win32-2.7\PIL copying PIL\PyAccess.py -> build\lib.win32-2.7\PIL copying PIL\SgiImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\SpiderImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\SunImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TarIO.py -> build\lib.win32-2.7\PIL copying PIL\TgaImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TiffImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TiffTags.py -> build\lib.win32-2.7\PIL copying PIL\WalImageFile.py -> build\lib.win32-2.7\PIL copying PIL\WebPImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\WmfImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XbmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XpmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\_binary.py -> build\lib.win32-2.7\PIL copying PIL\_tkinter_finder.py -> build\lib.win32-2.7\PIL copying PIL\_util.py -> build\lib.win32-2.7\PIL copying PIL\__init__.py -> build\lib.win32-2.7\PIL running egg_info writing Pillow.egg-info\PKG-INFO writing dependency_links to Pillow.egg-info\dependency_links.txt writing top-level names to Pillow.egg-info\top_level.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.sh' no previously-included directories found matching 'docs\_static' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'build_children.sh' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'Pillow.egg-info\SOURCES.txt' copying PIL\OleFileIO-README.md -> build\lib.win32-2.7\PIL running build_ext Traceback (most recent call last): File "", line 1, in File "c:\users\hisha\appdata\local\temp\pip-build-ootvc5\pillow\setup.py", line 753, in zip_safe=not debug_build(), ) File "c:\pypy\lib-python\2.7\distutils\core.py", line 151, in setup dist.run_commands() File "c:\pypy\lib-python\2.7\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "d:\gradua~1\pypy_b~1\site-packages\wheel\bdist_wheel.py", line 199, in run self.run_command('build') File "c:\pypy\lib-python\2.7\distutils\cmd.py", line 334, in run_command self.distribution.run_command(command) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\pypy\lib-python\2.7\distutils\command\build.py", line 127, in run self.run_command(cmd_name) File "c:\pypy\lib-python\2.7\distutils\cmd.py", line 334, in run_command self.distribution.run_command(command) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\pypy\lib-python\2.7\distutils\command\build_ext.py", line 347, in run self.build_extensions() File "c:\users\hisha\appdata\local\temp\pip-build-ootvc5\pillow\setup.py", line 521, in build_extensions ' using --disable-%s, aborting' % (f, f)) ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting ---------------------------------------- Failed building wheel for pillow Running setup.py clean for pillow Failed to build pillow Installing collected packages: pillow Running setup.py install for pillow ... error Complete output from command d:\gradua~1\pypy_b~1\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hisha\\appdata\\local\\temp\\pip-build-ootvc5\\pillow\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\hisha\appdata\local\temp\pip-t_tsjz-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\gradua~1\pypy_b~1\include\site\python2.7\pillow: Single threaded build for windows running install running build running build_py creating build creating build\lib.win32-2.7 creating build\lib.win32-2.7\PIL copying PIL\BdfFontFile.py -> build\lib.win32-2.7\PIL copying PIL\BmpImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\BufrStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ContainerIO.py -> build\lib.win32-2.7\PIL copying PIL\CurImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\DcxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\DdsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\EpsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ExifTags.py -> build\lib.win32-2.7\PIL copying PIL\features.py -> build\lib.win32-2.7\PIL copying PIL\FitsStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FliImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FontFile.py -> build\lib.win32-2.7\PIL copying PIL\FpxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\FtexImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GbrImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GdImageFile.py -> build\lib.win32-2.7\PIL copying PIL\GifImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\GimpGradientFile.py -> build\lib.win32-2.7\PIL copying PIL\GimpPaletteFile.py -> build\lib.win32-2.7\PIL copying PIL\GribStubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Hdf5StubImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IcnsImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IcoImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Image.py -> build\lib.win32-2.7\PIL copying PIL\ImageChops.py -> build\lib.win32-2.7\PIL copying PIL\ImageCms.py -> build\lib.win32-2.7\PIL copying PIL\ImageColor.py -> build\lib.win32-2.7\PIL copying PIL\ImageDraw.py -> build\lib.win32-2.7\PIL copying PIL\ImageDraw2.py -> build\lib.win32-2.7\PIL copying PIL\ImageEnhance.py -> build\lib.win32-2.7\PIL copying PIL\ImageFile.py -> build\lib.win32-2.7\PIL copying PIL\ImageFilter.py -> build\lib.win32-2.7\PIL copying PIL\ImageFont.py -> build\lib.win32-2.7\PIL copying PIL\ImageGrab.py -> build\lib.win32-2.7\PIL copying PIL\ImageMath.py -> build\lib.win32-2.7\PIL copying PIL\ImageMode.py -> build\lib.win32-2.7\PIL copying PIL\ImageMorph.py -> build\lib.win32-2.7\PIL copying PIL\ImageOps.py -> build\lib.win32-2.7\PIL copying PIL\ImagePalette.py -> build\lib.win32-2.7\PIL copying PIL\ImagePath.py -> build\lib.win32-2.7\PIL copying PIL\ImageQt.py -> build\lib.win32-2.7\PIL copying PIL\ImageSequence.py -> build\lib.win32-2.7\PIL copying PIL\ImageShow.py -> build\lib.win32-2.7\PIL copying PIL\ImageStat.py -> build\lib.win32-2.7\PIL copying PIL\ImageTk.py -> build\lib.win32-2.7\PIL copying PIL\ImageTransform.py -> build\lib.win32-2.7\PIL copying PIL\ImageWin.py -> build\lib.win32-2.7\PIL copying PIL\ImImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\ImtImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\IptcImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\Jpeg2KImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\JpegImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\JpegPresets.py -> build\lib.win32-2.7\PIL copying PIL\McIdasImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MicImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MpegImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MpoImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\MspImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\OleFileIO.py -> build\lib.win32-2.7\PIL copying PIL\PaletteFile.py -> build\lib.win32-2.7\PIL copying PIL\PalmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PcdImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PcfFontFile.py -> build\lib.win32-2.7\PIL copying PIL\PcxImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PdfImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PixarImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PngImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PpmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PsdImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\PSDraw.py -> build\lib.win32-2.7\PIL copying PIL\PyAccess.py -> build\lib.win32-2.7\PIL copying PIL\SgiImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\SpiderImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\SunImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TarIO.py -> build\lib.win32-2.7\PIL copying PIL\TgaImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TiffImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\TiffTags.py -> build\lib.win32-2.7\PIL copying PIL\WalImageFile.py -> build\lib.win32-2.7\PIL copying PIL\WebPImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\WmfImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XbmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XpmImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\XVThumbImagePlugin.py -> build\lib.win32-2.7\PIL copying PIL\_binary.py -> build\lib.win32-2.7\PIL copying PIL\_tkinter_finder.py -> build\lib.win32-2.7\PIL copying PIL\_util.py -> build\lib.win32-2.7\PIL copying PIL\__init__.py -> build\lib.win32-2.7\PIL running egg_info writing Pillow.egg-info\PKG-INFO writing dependency_links to Pillow.egg-info\dependency_links.txt writing top-level names to Pillow.egg-info\top_level.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'Pillow.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.sh' no previously-included directories found matching 'docs\_static' warning: no previously-included files found matching '.coveragerc' warning: no previously-included files found matching '.editorconfig' warning: no previously-included files found matching '.landscape.yaml' warning: no previously-included files found matching 'appveyor.yml' warning: no previously-included files found matching 'build_children.sh' warning: no previously-included files found matching 'tox.ini' warning: no previously-included files matching '.git*' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'Pillow.egg-info\SOURCES.txt' copying PIL\OleFileIO-README.md -> build\lib.win32-2.7\PIL running build_ext Traceback (most recent call last): File "", line 1, in File "c:\users\hisha\appdata\local\temp\pip-build-ootvc5\pillow\setup.py", line 753, in zip_safe=not debug_build(), ) File "c:\pypy\lib-python\2.7\distutils\core.py", line 151, in setup dist.run_commands() File "c:\pypy\lib-python\2.7\distutils\dist.py", line 953, in run_commands self.run_command(cmd) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "d:\gradua~1\pypy_b~1\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\pypy\lib-python\2.7\distutils\command\install.py", line 573, in run self.run_command('build') File "c:\pypy\lib-python\2.7\distutils\cmd.py", line 334, in run_command self.distribution.run_command(command) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\pypy\lib-python\2.7\distutils\command\build.py", line 127, in run self.run_command(cmd_name) File "c:\pypy\lib-python\2.7\distutils\cmd.py", line 334, in run_command self.distribution.run_command(command) File "c:\pypy\lib-python\2.7\distutils\dist.py", line 972, in run_command cmd_obj.run() File "c:\pypy\lib-python\2.7\distutils\command\build_ext.py", line 347, in run self.build_extensions() File "c:\users\hisha\appdata\local\temp\pip-build-ootvc5\pillow\setup.py", line 521, in build_extensions ' using --disable-%s, aborting' % (f, f)) ValueError: zlib is required unless explicitly disabled using --disable-zlib, aborting ---------------------------------------- Command "d:\gradua~1\pypy_b~1\bin\pypy.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hisha\\appdata\\local\\temp\\pip-build-ootvc5\\pillow\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\hisha\appdata\local\temp\pip-t_tsjz-record\install-record.txt --single-version-externally-managed --compile --install-headers d:\gradua~1\pypy_b~1\include\site\python2.7\pillow" failed with error code 1 in c:\users\hisha\appdata\local\temp\pip-build-ootvc5\pillow\ ``` What versions of Pillow and Python are you using? **pillow 3.4.1 pypy2-v5.4.1-win32** From issues-reply at bitbucket.org Wed Oct 12 15:48:23 2016 From: issues-reply at bitbucket.org (Guido) Date: Wed, 12 Oct 2016 19:48:23 -0000 Subject: [pypy-issue] Issue #2415: uwsgi_pypy_wsgi_handler TypeError: 'NoneType' object is not callable / pypy + uwsgi + django + nginx (pypy/pypy) Message-ID: <20161012194823.18160.48151@celery-worker-101.ash1.bb-inf.net> New issue 2415: uwsgi_pypy_wsgi_handler TypeError: 'NoneType' object is not callable / pypy + uwsgi + django + nginx https://bitbucket.org/pypy/pypy/issues/2415/uwsgi_pypy_wsgi_handler-typeerror-nonetype Guido: Hi guy, i bulid a virtualenv from https://bitbucket.org/pypy/pypy/downloads/pypy3.3-v5.5.0-alpha-linux64.tar.bz2 binary on ubuntu Ubuntu 14.04.5 LTS Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty (virtenvPyPy) qp at QPwebNginx218:~/virtenvPyPy$ pypy -V Python 2.7.10 (c95650101a99, Sep 06 2016, 11:10:29) [PyPy 5.4.1 with GCC 4.8.2] (virtenvPyPy) qp at QPwebNginx218:~/virtenvPyPy$ pip list attrs (16.2.0) braintree (3.27.0) cffi (1.8.1) cryptography (1.4) cssselect (0.9.2) Django (1.9.7) django-countries (3.4.1) django-debug-toolbar (1.5) django-ipware (1.1.5) django-localflavor (1.3) django-modeltranslation (0.11) django-multiupload (0.5.1) django-payments (0.9.4) django-wkhtmltopdf (3.0.0) enum34 (1.1.6) greenlet (0.4.10) idna (2.1) ipaddress (1.0.16) lxml (3.6.4) MySQL-python (1.2.5) ndg-httpsclient (0.4.1) parsel (1.0.3) Pillow (3.2.0) pip (8.1.2) pyasn1 (0.1.9) pyasn1-modules (0.0.8) pycparser (2.14) PyDispatcher (2.0.5) PyJWT (1.4.0) pyOpenSSL (16.0.0) queuelib (1.4.2) readline (6.2.4.1) requests (2.10.0) Scrapy (1.1.3) scrapy-djangoitem (1.1.1) service-identity (16.0.0) setuptools (28.3.0) six (1.10.0) sqlparse (0.2.1) stripe (1.35.0) suds-jurko (0.6) Twisted (16.4.1) uWSGI (2.0.13.1) w3lib (1.15.0) wheel (0.30.0a0) wkhtmltopdf (0.2) xmltodict (0.10.2) zope.interface (4.3.2) (virtenvPyPy) qpshop2016 at QPwebNginx218:~/virtenvPyPy/calcshop$ uwsgi --ini qp_uwsgi.ini [uWSGI] getting INI configuration from qp_uwsgi.ini *** Starting uWSGI 2.0.13.1 (64bit) on [Wed Oct 12 19:37:52 2016] *** compiled with version: 4.8.4 on 12 October 2016 16:17:00 os: Linux-3.13.0-93-generic #140-Ubuntu SMP Mon Jul 18 21:21:05 UTC 2016 nodename: QPwebNginx218 machine: x86_64 clock source: unix detected number of CPU cores: 4 current working directory: /var/www/virtenvPyPy/calcshop detected binary path: /var/www/virtenvPyPy/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! chdir() to /var/www/virtenvPyPy/calcshop/ your processes number limit is 63713 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to UNIX address /var/www/virtenvPyPy/qpshop2016.sock fd 3 Initialized PyPy with Python 2.7.10 (c95650101a99, Sep 06 2016, 11:10:29) [PyPy 5.4.1 with GCC 4.8.2] PyPy Home: /var/www/virtenvPyPy your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 800448 bytes (781 KB) for 10 cores *** Operational MODE: preforking *** *** no app loaded. going in full dynamic mode *** *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 10828) spawned uWSGI worker 1 (pid: 10829, cores: 1) spawned uWSGI worker 2 (pid: 10830, cores: 1) spawned uWSGI worker 3 (pid: 10831, cores: 1) spawned uWSGI worker 4 (pid: 10832, cores: 1) spawned uWSGI worker 5 (pid: 10833, cores: 1) spawned uWSGI worker 6 (pid: 10834, cores: 1) spawned uWSGI worker 7 (pid: 10835, cores: 1) spawned uWSGI worker 8 (pid: 10836, cores: 1) spawned uWSGI worker 9 (pid: 10837, cores: 1) spawned uWSGI worker 10 (pid: 10838, cores: 1) If i try to go trough NGINX than i get following error: --------------------------- [pid: 10829|app: -1|req: -1/3] 127.16.200.11 () {46 vars in 1103 bytes} [Wed Oct 12 19:39:41 2016] GET / => generated 0 bytes in 1 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0) >From cffi callback : Traceback (most recent call last): File "c callback", line 472, in uwsgi_pypy_wsgi_handler TypeError: 'NoneType' object is not callable [pid: 10835|app: -1|req: -1/4] 127.16.200.11 () {48 vars in 1086 bytes} [Wed Oct 12 19:39:41 2016] GET /favicon.ico => generated 0 bytes in 7 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0) my qp_uwsgi.ini looks like: --------------------------- # mysite_uwsgi.ini file [uwsgi] # Django-related settings # the base directory (full path) chdir = /var/www/virtenvPyPy/calcshop/ # Django's wsgi file module = calcshop.wsgi # the virtualenv (full path) home = /var/www/virtenvPyPy # process-related settings # master master = true # maximum number of worker processes processes = 10 # the socket (use the full path to be safe socket = /var/www/virtenvPyPy/qp.sock # ... with appropriate permissions - may be needed chmod-socket = 664 # clear environment on exit vacuum = true From issues-reply at bitbucket.org Thu Oct 13 13:06:17 2016 From: issues-reply at bitbucket.org (squeaky) Date: Thu, 13 Oct 2016 17:06:17 -0000 Subject: [pypy-issue] Issue #2416: [CFFI] Idle prints warnings on PyPy3 (pypy/pypy) Message-ID: <20161013170617.30073.48159@celery-worker-106.ash1.bb-inf.net> New issue 2416: [CFFI] Idle prints warnings on PyPy3 https://bitbucket.org/pypy/pypy/issues/2416/cffi-idle-prints-warnings-on-pypy3 squeaky: ``` pypy3.3-5.5-alpha-20161013-linux_x86_64-portable/bin/pypy -m idlelib.idle Warning (from warnings module): File "", line 3 UserWarning: implicit cast from 'char *' to 'unsigned short *' will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct) Warning (from warnings module): File "", line 3 UserWarning: implicit cast from 'char *' to 'unsigned short *' will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct) >>> Warning (from warnings module): File "", line 3 UserWarning: implicit cast from 'char * *' to 'char *' will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct) ``` From issues-reply at bitbucket.org Fri Oct 14 09:04:58 2016 From: issues-reply at bitbucket.org (Ludovic Gasc) Date: Fri, 14 Oct 2016 13:04:58 -0000 Subject: [pypy-issue] Issue #2417: segmentation fault when trying to connect on a closed socket with AsyncIO (pypy/pypy) Message-ID: <20161014130458.15485.34968@celery-worker-107.ash1.bb-inf.net> New issue 2417: segmentation fault when trying to connect on a closed socket with AsyncIO https://bitbucket.org/pypy/pypy/issues/2417/segmentation-fault-when-trying-to-connect Ludovic Gasc: Hi, I'm using pypy-c-jit-87739-57696c7e37eb-linux64, nightly version of pypy3.5. If I launch this file without a server that listens on 8000: https://github.com/asyncio-doc/asyncio-doc/blob/master/examples/aiohttp_client.py I've this error: /home/lg/Softwares/pypy-c-jit-87739-57696c7e37eb-linux64/lib-python/3/importlib/_bootstrap.py:223: UserWarning: compiletime version 3.3 of module 'aiohttp._websocket' does not match runtime version 3.5 return f(*args, **kwds) Warning: uncaught exception in callback: bootstrap Traceback (most recent call last): Erreur de segmentation (core dumped) FYI, I'm at PyCON-FR with Ronan, I'm trying to test PyPy3.5 with several AsyncIO snippets. For now, most things works as expected, except ssl module. Have a nice day. From issues-reply at bitbucket.org Fri Oct 14 10:13:38 2016 From: issues-reply at bitbucket.org (David Naylor) Date: Fri, 14 Oct 2016 14:13:38 -0000 Subject: [pypy-issue] Issue #2418: [patch] pypy3-5.5.0 does not compile on PowerPC (pypy/pypy) Message-ID: <20161014141338.15598.99037@celery-worker-108.ash1.bb-inf.net> New issue 2418: [patch] pypy3-5.5.0 does not compile on PowerPC https://bitbucket.org/pypy/pypy/issues/2418/patch-pypy3-550-does-not-compile-on David Naylor: Following on from Issue #2369, the latest release of pypy3 (5.5.0) does not compile on PowerPC without the attached patches. From issues-reply at bitbucket.org Fri Oct 14 10:16:38 2016 From: issues-reply at bitbucket.org (David Naylor) Date: Fri, 14 Oct 2016 14:16:38 -0000 Subject: [pypy-issue] Issue #2419: [patch] FreeBSD has depreciated the use of sys/timeb.h (pypy/pypy) Message-ID: <20161014141638.8059.85612@celery-worker-101.ash1.bb-inf.net> New issue 2419: [patch] FreeBSD has depreciated the use of sys/timeb.h https://bitbucket.org/pypy/pypy/issues/2419/patch-freebsd-has-depreciated-the-use-of David Naylor: The attached patch adds FreeBSD (with OpenBSD) to the list of platforms that do not use "sys/timeb.h". Due to this ftime is obsoleted and a fix to interp_time is needed to avoid importing undefined values TIMEB and c_ftime from rpython.rlib.rtime. From issues-reply at bitbucket.org Fri Oct 14 10:21:11 2016 From: issues-reply at bitbucket.org (David Naylor) Date: Fri, 14 Oct 2016 14:21:11 -0000 Subject: [pypy-issue] Issue #2420: [patch] FreeBSD requires sys/ttycom.h for struct winsize (pypy/pypy) Message-ID: <20161014142111.20231.79976@celery-worker-101.ash1.bb-inf.net> New issue 2420: [patch] FreeBSD requires sys/ttycom.h for struct winsize https://bitbucket.org/pypy/pypy/issues/2420/patch-freebsd-requires-sys-ttycomh-for David Naylor: FreeBSD defines struct winsize in sys/ttycom.h. The attached patch adds the required include for PyPy3 to discover struct winsize. From issues-reply at bitbucket.org Wed Oct 19 08:54:23 2016 From: issues-reply at bitbucket.org (Daniil Yarancev) Date: Wed, 19 Oct 2016 12:54:23 -0000 Subject: [pypy-issue] Issue #2421: multiprocessing.Pool under PyPy3.5 fails (pypy/pypy) Message-ID: <20161019125423.24825.62791@celery-worker-101.ash1.bb-inf.net> New issue 2421: multiprocessing.Pool under PyPy3.5 fails https://bitbucket.org/pypy/pypy/issues/2421/multiprocessingpool-under-pypy35-fails Daniil Yarancev: Trying this simple example with PyPy3.5: ``` #!python from multiprocessing import Pool def f(x): return x*x if __name__ == '__main__': p = Pool(5) print(p.map(f, [1, 2, 3])) ``` CPython 3.5.2 works as expected: [1, 4, 9] PyPy3.5 fails with error: https://paste.pound-python.org/show/IoKfW0weIXMImtbKYvUO/ From issues-reply at bitbucket.org Wed Oct 19 17:54:07 2016 From: issues-reply at bitbucket.org (Pierre-Antoine Champin) Date: Wed, 19 Oct 2016 21:54:07 -0000 Subject: [pypy-issue] Issue #2422: Unexpected inversion of performance between objects and tuple (pypy/pypy) Message-ID: <20161019215407.17989.25095@celery-worker-107.ash1.bb-inf.net> New issue 2422: Unexpected inversion of performance between objects and tuple https://bitbucket.org/pypy/pypy/issues/2422/unexpected-inversion-of-performance Pierre-Antoine Champin: Consider a simple object type made of a few values (e.g. geometrical point). It is possible to implement it with a class, or to use tuples. There are also intermediate solutions, such as a class with __slots__ or a namedtuple. I was wondering what were the implications, in terms of performance, of those different options. My intuition was that, when it comes to comparison, tuples would be more efficient because their comparison operators are built-in, while for objects I needed to implement them with special methods. So I wrote the attached test-case (also available [here](https://gist.github.com/pchampin/38e2a4ac66d6baea44f17a0ce3318293)). It confirmed my intuition: with CPython (2 and 3), comparing tuples (including named tuples) is 10x faster than comparing objects with customized __eq__ and __lt__ methods. However, with Pypy (5.1.1), the results are totally opposite: object comparison are 10 to 20 times faster than tuple comparison, which take roughly the same time in Pypy as in CPython! This is all he more surprising that, in order to implement __eq__ and __lt__ for my classes, I just store their attributes in tuples and compare the two tuples... So why would this be slower when I directly compare tuples ?? It seems to me that Pypy could use the same optimization in both places, and that there might be, if not a bug, at least a missed opportunity here -- although my understanding of the inners of Pypy is admittedly limited.. From issues-reply at bitbucket.org Thu Oct 20 03:34:18 2016 From: issues-reply at bitbucket.org (mattip) Date: Thu, 20 Oct 2016 07:34:18 -0000 Subject: [pypy-issue] Issue #2423: [cpyext] wrong __new__ assigned to tp_new for app-level classes (pypy/pypy) Message-ID: <20161020073418.5380.37658@celery-worker-107.ash1.bb-inf.net> New issue 2423: [cpyext] wrong __new__ assigned to tp_new for app-level classes https://bitbucket.org/pypy/pypy/issues/2423/cpyext-wrong-__new__-assigned-to-tp_new mattip: I created a test in the ``missing-tp_new`` branch that demonstrates how an app-level class's ``__new__`` is not assigned to the ``tp_new`` slot, rather the generic ``object``'s ``__new__`` is assigned instead. AFAICT the problem is in the use of ``typedef = w_type.layout.typedef`` in line 249 of cpyext.py. The typedef is not unique to the w_type, and this non-unique object is used as a part of the key to lookup wrappers in the slotdef.py ``SLOTS`` dictionary. I think this is only a problem for the ``__new__`` method. I tried working around it by creating another ``NEW`` dictionary for the tp_new slot (as a special case in ``update_all_slots``, but could not get the pieces quite in the right place to make it translate. From issues-reply at bitbucket.org Fri Oct 21 10:54:33 2016 From: issues-reply at bitbucket.org (lesshaste) Date: Fri, 21 Oct 2016 14:54:33 -0000 Subject: [pypy-issue] Issue #2424: pypy-dev is required to install numpy from head (pypy/pypy) Message-ID: <20161021145433.31168.63568@celery-worker-107.ash1.bb-inf.net> New issue 2424: pypy-dev is required to install numpy from head https://bitbucket.org/pypy/pypy/issues/2424/pypy-dev-is-required-to-install-numpy-from lesshaste: In the docs at http://pypy.org/download.html#installing-numpy and http://doc.pypy.org/en/latest/install.html steps are set out for installing pypy+numpy . In order for pip install git+https://github.com/numpy/numpy.git to work in ubuntu you need to first install pypy-dev however. This is not mentioned in the docs presently. From issues-reply at bitbucket.org Wed Oct 26 08:22:46 2016 From: issues-reply at bitbucket.org (Daniil Yarancev) Date: Wed, 26 Oct 2016 12:22:46 -0000 Subject: [pypy-issue] Issue #2425: str error from 'future' module in PyPy2 (pypy/pypy) Message-ID: <20161026122246.19083.96028@celery-worker-106.ash1.bb-inf.net> New issue 2425: str error from 'future' module in PyPy2 https://bitbucket.org/pypy/pypy/issues/2425/str-error-from-future-module-in-pypy2 Daniil Yarancev: ## Error ##: ``` #!python >>>> print(str('ghbdtn')) Traceback (most recent call last): File "", line 1, in File "/home/tiber/bench/pypy2-v5.4.1-linux64/site-packages/future/types/newstr.py", line 204, in encode if errors == 'surrogateescape': UnboundLocalError: local variable 'errors' referenced before assignment ``` ## How to reproduce: ## ``` #!bash pypy -m pip install future ``` And try this code: ``` #!python from __future__ import unicode_literals from builtins import str print(str('hello')) ``` From issues-reply at bitbucket.org Sat Oct 29 09:24:09 2016 From: issues-reply at bitbucket.org (Maciej Fijalkowski) Date: Sat, 29 Oct 2016 13:24:09 -0000 Subject: [pypy-issue] Issue #2426: copy.copy performance regression (pypy/pypy) Message-ID: <20161029132409.20072.23450@celery-worker-107.ash1.bb-inf.net> New issue 2426: copy.copy performance regression https://bitbucket.org/pypy/pypy/issues/2426/copycopy-performance-regression Maciej Fijalkowski: This code is ~2x slower on new pypy than on 4.0.1 (when run with 1000000). Possibly changes to how maps work? ``` #!python import copy, sys class A(object): def __init__(self, a, b, c): self.a = a self.b = b self.c = c self.d = a self.e = b a = [A(1, 2, 3), A(4, 5, 6), A(6, 7, 8)] def f(): for i in range(int(sys.argv[1])): copy.copy(a[i % 3]) f() ```