From issues-reply at bitbucket.org Thu Sep 1 05:02:01 2016 From: issues-reply at bitbucket.org (Konstantin Lopuhin) Date: Thu, 01 Sep 2016 09:02:01 -0000 Subject: [pypy-issue] Issue #2389: Different behavior of bytes.decode('utf8', 'custom_replace') (pypy/pypy) Message-ID: <20160901090201.33817.99682@celery-worker-108.ash1.bb-inf.net> New issue 2389: Different behavior of bytes.decode('utf8', 'custom_replace') https://bitbucket.org/pypy/pypy/issues/2389/different-behavior-of-bytesdecode-utf8 Konstantin Lopuhin: The following program: ``` import codecs codecs.register_error('custom_replace', lambda exc: (u'\ufffd', exc.start+1)) s1 = b"WORD\xe3\xab" print(repr(s1.decode('utf8', 'custom_replace'))) print(repr(s1.decode('utf8', 'replace'))) s2 = b"\xef\xbb\xbfWORD\xe3\xabWORD2" print(repr(s2.decode('utf8', 'custom_replace'))) print(repr(s2.decode('utf8', 'replace'))) ``` produces different results on CPython 2.7 (I tried 2.7.6 and 2.7.12) and on PyPy 5.4.0: ``` $ pypy test.py u'WORD\ufffd' u'WORD\ufffd' u'\ufeffWORD\ufffd\ufffdWORD2' u'\ufeffWORD\ufffdWORD2' $ python test.py u'WORD\ufffd\ufffd' u'WORD\ufffd' u'\ufeffWORD\ufffd\ufffdWORD2' u'\ufeffWORD\ufffdWORD2' ``` And I think CPython is more consistent here: with a custom replace function, it replaces each invalid byte with given symbol, but PyPy in some cases does a different thing. The context: this code is used in w3lib here https://github.com/scrapy/w3lib/blob/v1.14.2/w3lib/encoding.py#L176 (the CPython bug reference might be slightly misleading here) to emulate browser behavior for invalid utf8 handling, and CPython with custom_replace agrees with browser behavior here. From issues-reply at bitbucket.org Thu Sep 1 10:36:32 2016 From: issues-reply at bitbucket.org (cuitao1982) Date: Thu, 01 Sep 2016 14:36:32 -0000 Subject: [pypy-issue] Issue #2390: error when build pypy from source (pypy/pypy) Message-ID: <20160901143632.21349.4343@celery-worker-107.ash1.bb-inf.net> New issue 2390: error when build pypy from source https://bitbucket.org/pypy/pypy/issues/2390/error-when-build-pypy-from-source cuitao1982: OS: ubuntu 16.04 kernel: 4.4.0-34-lowlatency gcc: gcc-6 the error is showed in following image:![Screenshot from 2016-09-01 09-31-37.png](https://bitbucket.org/repo/R7AbB/images/946564842-Screenshot%20from%202016-09-01%2009-31-37.png) From issues-reply at bitbucket.org Fri Sep 2 01:30:23 2016 From: issues-reply at bitbucket.org (Ryan Liu) Date: Fri, 02 Sep 2016 05:30:23 -0000 Subject: [pypy-issue] Issue #2391: build from source, dead loop! (pypy/pypy) Message-ID: <20160902053023.31132.89591@celery-worker-105.ash1.bb-inf.net> New issue 2391: build from source, dead loop! https://bitbucket.org/pypy/pypy/issues/2391/build-from-source-dead-loop Ryan Liu: Build pypy 5.4 use python2.7.10 on CentOS6 64bit python2.7 ../../rpython/bin/rpython --opt=jit File "/root/pypy2-v5.4.0-src/rpython/tool/algo/graphlib.py", line 100, in visit visit(edge.target) [translation:ERROR] RuntimeError: maximum recursion depth exceeded [translation] start debugger... > /root/pypy2-v5.4.0-src/rpython/tool/algo/graphlib.py(100)visit() -> visit(edge.target) (Pdb+) From issues-reply at bitbucket.org Sat Sep 3 11:19:33 2016 From: issues-reply at bitbucket.org (Stuart Axon) Date: Sat, 03 Sep 2016 15:19:33 -0000 Subject: [pypy-issue] Issue #2392: Differences with sysconfig + distutils.sysconfig undervirtualenv (pypy/pypy) Message-ID: <20160903151933.29787.26700@celery-worker-105.ash1.bb-inf.net> New issue 2392: Differences with sysconfig + distutils.sysconfig undervirtualenv https://bitbucket.org/pypy/pypy/issues/2392/differences-with-sysconfig Stuart Axon: There are some differences with sysconfig and distutils.sysconfig when under a virtualenv. I get_path('include') is wrong but others may be too - needs further testing. Here is my original message mail to the list: ---------------------------------------------------------------------- If I create a virtualenv: /mnt/data/home/stu/.virtualenvs/pypy-venv Then run try and get the include path using sysconfig it is incorrect: >>>> import sysconfig >>>> sysconfig.get_path('include') '/mnt/data/home/stu/local/include' It should be: /mnt/data/home/stu/.virtualenvs/pypy-venv/include or possibly where that symlink points to: /usr/lib/pypy/include This then affects python-config which means I get stuck trying to compile pygobject. S++ ---------------------------------------------------------------------- A bit more info: sysconfig._get_default_scheme() returns 'pypy-local'. If I change this to return 'pypy' then the include path is correct. I'm not fully sure how it supposed to decide between the two ? S++ From issues-reply at bitbucket.org Sat Sep 3 22:12:47 2016 From: issues-reply at bitbucket.org (Alexander Whatley) Date: Sun, 04 Sep 2016 02:12:47 -0000 Subject: [pypy-issue] Issue #2393: Cannot build Pypy 5.4.0 (pypy/pypy) Message-ID: <20160904021247.18732.35691@celery-worker-101.ash1.bb-inf.net> New issue 2393: Cannot build Pypy 5.4.0 https://bitbucket.org/pypy/pypy/issues/2393/cannot-build-pypy-540 Alexander Whatley: OS: Bash on Windows (Ubuntu 14.04), Windows 10 Anniversary Update I followed all of the steps on the website [here](http://pypy.readthedocs.io/en/latest/build.html#install-build-time-dependencies) to build PyPy 5.4.0 from source. I installed all of the necessary packages, but I get an error message telling me that pkg-config was unable to find libffi. Any help? alex at ALEXANDERPC:/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/goal$ python2 ../../rpython/bin/rpython --opt=2 [translation:info] 2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Dec 6 2015, 18:08:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] [platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown' [translation:info] Translating target as defined by targetpypystandalone [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/gcctest [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_0.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_0.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_0.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_0 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/c /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_1.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_1.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -I/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/c /mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/c/src/thread.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/rpython/translator/c/src/thread.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_1.o /tmp/usession-release-pypy2.7-v5.4.0-5/rpython/translator/c/src/thread.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_1 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_2.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_2.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_2.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_2 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_3.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_3.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_3.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_3 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_4.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_4.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_5.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_5.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_5.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_5 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_6.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_6.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_6.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_6 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_7.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_7.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_8.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_8.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_8.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_8 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_9.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_9.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_9.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_9 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_10.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_10.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_10.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_10 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_11.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_11.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_12.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_12.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_12.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_12 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_13.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_13.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_13.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_13 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_14.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_14.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_14.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_14 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_15.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_15.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_15.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_15 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_16.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_16.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_16.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_16 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_17.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_17.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_17.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_17 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_18.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_18.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_18.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_18 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_19.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_19.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_19.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_19 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_20.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_20.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_20.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_20 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_21.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_21.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_21.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_21 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_22.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_22.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_22.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_22 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_23.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_23.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_24.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_24.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_24.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_24 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_25.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_25.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_25.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_25 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_26.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_26.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_26.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_26 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_27.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_27.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_27.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_27 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_28.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_28.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_29.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_29.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_29.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_29 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_30.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_30.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_30.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_30 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_31.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_31.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_31.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_31 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_32.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_32.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_32.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_32 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_33.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_33.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_33.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_33 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_34.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_34.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_34.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_34 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_35.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_35.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_35.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_35 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_36.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_36.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_36.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_36 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_37.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_37.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_37.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_37 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_38.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_38.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_38.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_38 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_39.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_39.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_39.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_39 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_40.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_40.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_40.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_40 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_41.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_41.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_41.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_41 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_42.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_42.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_42.o -pthread -Wl,--export-dynamic -lutil -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_42 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_43.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_43.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_43.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_43 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_44.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_44.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_44.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_44 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_45.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_45.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_45.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_45 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_46.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_46.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_46.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_46 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_47.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_47.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_47.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_47 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -fPIC -fvisibility=hidden -g -O0 -DRPY_EXTERN=RPY_EXPORTED -DRPYTHON_LL2CTYPES /tmp/usession-release-pypy2.7-v5.4.0-5/module_cache/module_0.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/module_cache/module_0.o [platform:execute] gcc -shared /tmp/usession-release-pypy2.7-v5.4.0-5/module_cache/module_0.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/shared_cache/externmod.so [translation] PyPy config object: [translation] [objspace] [std] intshortcut = True optimized_list_getitem = True withspecialisedtuple = True [usemodules] __pypy__ = True _ast = True _cffi_backend = True _codecs = True _collections = True _continuation = True _csv = True _hashlib = True _io = True _jitlog = True _locale = True _lsprof = True _md5 = True _minimal_curses = True _multibytecodec = True _multiprocessing = True _pickle_support = True _pypyjson = True _random = True _rawffi = True _sha = True _socket = True _sre = True _ssl = True _testing = True _vmprof = True _weakref = True array = True binascii = True bz2 = True cStringIO = True cmath = True cppyy = True cpyext = True crypt = True errno = True fcntl = True gc = True imp = True marshal = True math = True micronumpy = True mmap = True operator = True parser = True pwd = True pyexpat = True select = True signal = True struct = True symbol = True termios = True thread = True time = True token = True unicodedata = True zipimport = True zlib = True [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_48.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_48.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_48.o -pthread -Wl,--export-dynamic -ldl -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_48 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_49.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_49.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_49.o -pthread -Wl,--export-dynamic -lintl -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_49 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_50.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_50.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_50.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_50 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_51.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_51.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_51.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_51 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_52.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_52.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_52.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_52 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_53.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_53.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_53.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_53 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_54.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_54.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_54.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_54 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_55.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_55.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_55.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_55 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_56.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_56.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_56.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_56 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_57.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_57.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_57.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_57 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_58.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_58.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_58.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_58 [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_59.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_59.o [platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_60.c -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_60.o [platform:execute] gcc /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_60.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.4.0-5/platcheck_60 [translation:info] Error: File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/goal/translate.py", line 283, in main default_goal='compile') File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/driver.py", line 566, in from_targetspec spec = target(driver, args) File "targetpypystandalone.py", line 295, in target return self.get_entry_point(config) File "targetpypystandalone.py", line 343, in get_entry_point space = make_objspace(config) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/tool/option.py", line 35, in make_objspace return Space(config) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/interpreter/baseobjspace.py", line 415, in __init__ self.initialize() File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/objspace/std/objspace.py", line 100, in initialize self.make_builtins() File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/interpreter/baseobjspace.py", line 609, in make_builtins self.install_mixedmodule(mixedname, installed_builtin_modules) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/interpreter/baseobjspace.py", line 640, in install_mixedmodule modname = self.setbuiltinmodule(mixedname) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/interpreter/baseobjspace.py", line 486, in setbuiltinmodule mod = Module(self, self.wrap(name)) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/module/cppyy/__init__.py", line 37, in __init__ from pypy.module.cppyy import capi File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/module/cppyy/capi/__init__.py", line 12, in from pypy.module.cppyy.capi.loadable_capi import * File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/module/cppyy/capi/loadable_capi.py", line 2, in from rpython.rlib import jit, jit_libffi, libffi, rdynload, objectmodel File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/rlib/jit_libffi.py", line 4, in from rpython.rlib import clibffi, jit File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/rlib/clibffi.py", line 82, in include_dirs = platform.include_dirs_for_libffi(), File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/platform/__init__.py", line 236, in include_dirs_for_libffi dirs = self._include_dirs_for_libffi() File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/platform/linux.py", line 34, in _include_dirs_for_libffi check_result_dir=True) File "/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/platform/posix.py", line 89, in _pkg_config raise ValueError(msg) [translation:ERROR] ValueError: running 'pkg-config libffi --cflags-only-I' failed: Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found and the default ['/usr/include/libffi'] is not a valid directory [translation] start debugger... > /mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/rpython/translator/platform/posix.py(89)_pkg_config() -> raise ValueError(msg) (Pdb+) exit alex at ALEXANDERPC:/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/goal$ pkg-config libffi alex at ALEXANDERPC:/mnt/c/Users/Alexander/Google Drive/Programming/PyPy/pypy2-v5.4.0-src/pypy2-v5.4.0-src/pypy/goal$ pkg-config libffi --cflags-only-I Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found From issues-reply at bitbucket.org Mon Sep 5 09:37:42 2016 From: issues-reply at bitbucket.org (Hexcode Technologies) Date: Mon, 05 Sep 2016 13:37:42 -0000 Subject: [pypy-issue] Issue #2394: Integrate portable-pypy builds as official builds (pypy/pypy) Message-ID: <20160905133742.19114.61306@celery-worker-105.ash1.bb-inf.net> New issue 2394: Integrate portable-pypy builds as official builds https://bitbucket.org/pypy/pypy/issues/2394/integrate-portable-pypy-builds-as-official Hexcode Technologies: squeaky-pl did awesome job of building protable version of pypy , that is very very convineient use across many linuxes , and can easily embed pypy into projects. That is the most portable Python in existance. Would be very very nice if pypy can integrate such portable build , that remove the trouble of building ourselves and pypy build breaking across different oses. I think it won't be much of a trouble to integrate portable build like: https://github.com/squeaky-pl/portable-pypy From issues-reply at bitbucket.org Tue Sep 6 02:05:49 2016 From: issues-reply at bitbucket.org (Marius Gedminas) Date: Tue, 06 Sep 2016 06:05:49 -0000 Subject: [pypy-issue] Issue #2395: Pillow no longer works with PyPy2 5.4.0 (SystemError: _PyString_Resize called on already created string) (pypy/pypy) Message-ID: <20160906060549.23450.86773@celery-worker-107.ash1.bb-inf.net> New issue 2395: Pillow no longer works with PyPy2 5.4.0 (SystemError: _PyString_Resize called on already created string) https://bitbucket.org/pypy/pypy/issues/2395/pillow-no-longer-works-with-pypy2-540 Marius Gedminas: I've upgraded pypy from version 5.3.1+dfsg-1~ppa1~ubuntu14.04 to version 5.4.0+dfsg-2~ppa1~ubuntu14.04 and if would appear that Pillow can no longer save PNG images. The traceback looks like this: ``` Traceback (most recent call last): File "/var/lib/jenkins/jobs/imgdiff/workspace/.tox/pypy/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "tests.py", line 61, in test_all_ok self.main('example1.png', 'example2.png', '--viewer=true') File "tests.py", line 34, in main imgdiff.main(['imgdiff'] + list(args)) File "/var/lib/jenkins/jobs/imgdiff/workspace/imgdiff.py", line 166, in main spawn_viewer(opts.viewer, img, name, grace=opts.grace) File "/var/lib/jenkins/jobs/imgdiff/workspace/imgdiff.py", line 252, in spawn_viewer img.save(imgfile) File "/var/lib/jenkins/jobs/imgdiff/workspace/.tox/pypy/site-packages/PIL/Image.py", line 1685, in save save_handler(self, fp, filename) File "/var/lib/jenkins/jobs/imgdiff/workspace/.tox/pypy/site-packages/PIL/PngImagePlugin.py", line 792, in _save [("zip", (0, 0)+im.size, 0, rawmode)]) File "/var/lib/jenkins/jobs/imgdiff/workspace/.tox/pypy/site-packages/PIL/ImageFile.py", line 479, in _save l, s, d = e.encode(bufsize) SystemError: _PyString_Resize called on already created string ``` Steps to reproduce: 1. git clone https://github.com/mgedmin/imgdiff 2. cd imgdiff 3. tox -e pypy From issues-reply at bitbucket.org Wed Sep 7 12:47:18 2016 From: issues-reply at bitbucket.org (Armin Rigo) Date: Wed, 07 Sep 2016 16:47:18 -0000 Subject: [pypy-issue] Issue #2396: PyMemoryView_GET_BUFFER: bogus view.c__format (pypy/pypy) Message-ID: <20160907164718.35215.19059@celery-worker-108.ash1.bb-inf.net> New issue 2396: PyMemoryView_GET_BUFFER: bogus view.c__format https://bitbucket.org/pypy/pypy/issues/2396/pymemoryview_get_buffer-bogus Armin Rigo: Bogus lines in cpyext/memoryview.py: ``` #!python view.c__format = rffi.cast(rffi.UCHAR, w_obj.buf.getformat()) view.c_format = rffi.cast(rffi.CCHARP, view.c__format) ``` The first line actually takes getformat(), which is annotated as returning an RPython *string*, not a char, and converts that string's pointer to an unsigned char, giving nonsense. Much safer than rffi.cast() is to use ord() to convert a char to an integer, and complain if it isn't annotated as a char. Then the second line takes a ``char *`` to it, but that doesn't make a null-terminated string. If the goal was to have a one-char null-terminated string, we'd need to ensure a null character in the second position. From issues-reply at bitbucket.org Sun Sep 11 16:37:30 2016 From: issues-reply at bitbucket.org (mattip) Date: Sun, 11 Sep 2016 20:37:30 -0000 Subject: [pypy-issue] Issue #2397: PyPy should export REFCNT_FROM_PYPY (pypy/pypy) Message-ID: <20160911203730.19236.72812@celery-worker-101.ash1.bb-inf.net> New issue 2397: PyPy should export REFCNT_FROM_PYPY https://bitbucket.org/pypy/pypy/issues/2397/pypy-should-export-refcnt_from_pypy mattip: Numpy has this test, which raises on CPython ``` #!python x = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]]) y = x.view('int8') x.resize(5,1) ``` The reason it raises, is this code ``` #!c int refcnt = self->ob_refcnt; if ((refcnt > 2) { PyErr_SetString(PyExc_ValueError, "cannot resize an array that "\ "references or is referenced\n"\ "by another array in this way. Use the resize function"); return NULL; } ``` ``refcnt`` is 3 when ``x.resize`` is called; 1 from `x = ...`, 1 from ``y=x...`` and 1 from the C code being inside a function (CPython increfs all function arguments on ``__call__``) The test does not raise the error on PyPy, ``self.ob_refcnt`` is 2305843009213693953L, which when cast to int is 1. Possible fix: * export rawrefcount.REFCNT_FROM_PYPY to a header * change the assigment of refcnt to ``refcnt = (self.ob_refcnt > REFCNT_FROM_PYPY ? self.ob_refcnt - REFCNT_FROM_PYPY : self.ob_refcnt;`` * change the limit for the test to 2 (1 from ``x=...`` and one from ``y=x...`` The changes would be inside an ``#ifdef PYPY_VERSION`` Opinions? From issues-reply at bitbucket.org Tue Sep 13 17:05:22 2016 From: issues-reply at bitbucket.org (Yashwardhan Singh) Date: Tue, 13 Sep 2016 21:05:22 -0000 Subject: [pypy-issue] Issue #2398: PyPy PGO Build (pypy/pypy) Message-ID: <20160913210522.1894.97921@celery-worker-107.ash1.bb-inf.net> New issue 2398: PyPy PGO Build https://bitbucket.org/pypy/pypy/issues/2398/pypy-pgo-build Yashwardhan Singh: Hi I am trying to build PGO ( Profile Guided Optimized) binary of pypy. I am using the option mentioned in : http://doc.pypy.org/en/latest/config/translation.profopt.html for build. Cmd line used : pypy ../../rpython/bin/rpython --opt=jit --profopt "-m test.regrtest" But I don't see this feature working. It is just generating the usual binary not the instrumented binary. Can anyone tell me if this feature actually works? Regards Yash From issues-reply at bitbucket.org Fri Sep 16 19:36:38 2016 From: issues-reply at bitbucket.org (Piruzzolo) Date: Fri, 16 Sep 2016 23:36:38 -0000 Subject: [pypy-issue] Issue #2399: sys.getsizeof() support missing (pypy/pypy) Message-ID: <20160916233638.11850.92322@celery-worker-105.ash1.bb-inf.net> New issue 2399: sys.getsizeof() support missing https://bitbucket.org/pypy/pypy/issues/2399/sysgetsizeof-support-missing Piruzzolo: There seems to be no support for this function, at the moment. From issues-reply at bitbucket.org Mon Sep 19 10:56:37 2016 From: issues-reply at bitbucket.org (Connor Shearwood) Date: Mon, 19 Sep 2016 14:56:37 -0000 Subject: [pypy-issue] Issue #2400: PyPy 3.5 operator requires modification (pypy/pypy) Message-ID: <20160919145637.8076.94913@celery-worker-105.ash1.bb-inf.net> New issue 2400: PyPy 3.5 operator requires modification https://bitbucket.org/pypy/pypy/issues/2400/pypy-35-operator-requires-modification Connor Shearwood: The `operator` module in `pypy/modules` is currently incomplete. It currently attempts to merge the behaviour of CPython's stdlib `operator` and `_operator`. As the lib-python version of `operator` imports from `_operator`, the pypy specific `operator` should be renamed to `_operator` and emulate the functionality from CPython's `_operator`. This will reduce the amount of reimplementation (the existing `interp_operator` already implements most/all of `_operator`) whilst allowing conformance to the existing implementation. This will also fix `hmac` on pypy 3.5, as it depends on `operator._compare_digest` which is currently unimplemented. From issues-reply at bitbucket.org Wed Sep 21 13:02:04 2016 From: issues-reply at bitbucket.org (Irmen de Jong) Date: Wed, 21 Sep 2016 17:02:04 -0000 Subject: [pypy-issue] Issue #2401: complex number calculations much slower on windows than on linux/osx? (pypy/pypy) Message-ID: <20160921170204.8134.25215@celery-worker-106.ash1.bb-inf.net> New issue 2401: complex number calculations much slower on windows than on linux/osx? https://bitbucket.org/pypy/pypy/issues/2401/complex-number-calculations-much-slower-on Irmen de Jong: (copied from message posted to comp.lang.python) I've stumbled across a peculiar performance issue with Pypy across some different platforms. It was very visible in some calculation heavy code that I wrote that uses Python's complex number type to calculate the well-known Mandelbrot set. Pypy running the code on my Windows machine is doing okay, but when running the same code on Pypy on different systems, the performance difference is so big it is not even funny. The other implementations are MUCH faster than the windows one. Which is quite unexpected because the other machines I've tested on have the same or much lower physical CPU specs than the windows machine. Here's the comparison: Machine specs: * Windows: 64 bits Windows 7, Intel Core 2 Quad 3.4 Ghz * Linux: 32 bits Mint 18, Virtualbox VM on above windows machine * Mac mini: OS X 10.11.6, Intel Core 2 Duo 2.53 Ghz The 'iterations' function mentioned below is looking like this: ```python def iterate(): print("iterating...") z = .1+.1j c = z for _ in range(12345678): z = z*z + c z = z*z + c z = z*z + c z = z*z + c z = z*z + c z = z*z + c if abs(z) > 2: raise ValueError("should not go towards infinity") print(abs(z)) ``` Rest of the test code I've been using is here: https://gist.github.com/irmen/c6b12b4cf88a6a4fcf5ff721c7089078 Test results: ``` #! function: mandel / iterations Mac mini, Pypy 5.4.1 (64-bit): 0.81 sec / 0.65 sec Linux, Pypy 5.1 (32-bit): 1.06 sec / 0.64 sec Windows, Pypy 5.4.1 (32-bit): 5.59 sec / 2.87 sec ``` What could cause such a huge difference? Is it perhaps a compiler issue (where gcc/clang are MUCH better at optimizing certain things, although I wonder how much of a factor this is because Pypy is doing JITting by itself as far as I am aware)? Or is something strange going on with the way the complex number type is implemented? (the difference doesn't occur when using only floats) From issues-reply at bitbucket.org Thu Sep 22 21:38:05 2016 From: issues-reply at bitbucket.org (Peter Wang) Date: Fri, 23 Sep 2016 01:38:05 -0000 Subject: [pypy-issue] Issue #2402: TypeError: object.__new__(_MemcacheClient) is not safe, use _MemcacheClient.__new__() (pypy/pypy) Message-ID: <20160923013805.19266.85673@celery-worker-108.ash1.bb-inf.net> New issue 2402: TypeError: object.__new__(_MemcacheClient) is not safe, use _MemcacheClient.__new__() https://bitbucket.org/pypy/pypy/issues/2402/typeerror-object__new__-_memcacheclient-is Peter Wang: Hi, I am running tempest or an OpenStack gate testing, and getting this error: TypeError: object.__new__(_MemcacheClient) is not safe, use _MemcacheClient.__new__() while running under PyPy2. The error is coming from this file: site-packages/oslo_cache/_memcache_pool.py which is attached. However, same code works under CPython2.7. This may or may not be a PyPy bug, but would someone give me some suggestions on how to fix it? Tried to google around, and it seems related to class/object contructor, and how object is being instantiated, and passing global variables. But I don't understand how this works under CPython2.7. thanks, peter 7910 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 CRITICAL keystone [-] TypeError: object.__new__(_MemcacheClient) is not safe, use _MemcacheClient.__new__() 7911 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone Traceback (most recent call last): 7912 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/usr/local/bin/keystone-manage", line 10, in 7913 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone sys.exit(main()) 7914 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/cmd/manage.py", line 44, in main 7915 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone cli.main(argv=sys.argv, config_files=config_files) 7916 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 1254, in main 7917 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone CONF.command.cmd_class.main() 7918 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 363, in main 7919 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone klass.do_bootstrap() 7920 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/cmd/cli.py", line 189, in do_bootstrap 7921 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone domain=default_domain) 7922 2016-09-14 21:21:56.470 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/common/manager.py", line 124, in wrapped 7923 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone __ret_val = __f(*args, **kwargs) 7924 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/resource/core.py", line 759, in create_domain 7925 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone domain_id, project_from_domain, initiator) 7926 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/common/manager.py", line 124, in wrapped 7927 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone __ret_val = __f(*args, **kwargs) 7928 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/resource/core.py", line 230, in create_project 7929 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone self.get_project.set(ret, self, project_id) 7930 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/cache/region.py", line 1228, in set_ 7931 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone self.set(key, value) 7932 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/cache/region.py", line 972, in set 7933 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone key = self.key_mangler(key) 7934 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/common/cache/core.py", line 87, in key_mangler 7935 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone key = '%s:%s' % (key, invalidation_manager.region_id) 7936 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/stack/keystone/keystone/common/cache/core.py", line 45, in region_id 7937 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone self._region_key, self._generate_new_id, expiration_time=-1) 7938 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/cache/region.py", line 825, in get_or_create 7939 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone async_creator) as value: 7940 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/lock.py", line 154, in __enter__ 7941 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone return self._enter() 7942 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/lock.py", line 87, in _enter 7943 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone value = value_fn() 7944 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/cache/region.py", line 780, in get_value 7945 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone value = self.backend.get(key) 7946 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/dogpile/cache/backends/memcached.py", line 161, in get 7947 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone value = self.client.get(key) 7948 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/lib_pypy/_functools.py", line 42, in __call__ 7949 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone return self._func(*(self._args + fargs), **fkeywords) 7950 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/oslo_cache/backends/memcache_pool.py", line 35, in _run_method 7951 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone with self.client_pool.acquire() as client: 7952 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/lib-python/2.7/contextlib.py", line 17, in __enter__ 7953 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone return self.gen.next() 7954 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/oslo_cache/_memcache_pool.py", line 128, in acquire 7955 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone conn = self.get(timeout=self._connection_get_timeout) 7956 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/lib-python/2.7/Queue.py", line 178, in get 7957 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone item = self._get() 7958 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/oslo_cache/_memcache_pool.py", line 215, in _get 7959 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone conn = ConnectionPool._get(self) 7960 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/oslo_cache/_memcache_pool.py", line 166, in _get 7961 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone conn = self._create_connection() 7962 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone File "/opt/pypy/site-packages/oslo_cache/_memcache_pool.py", line 207, in _create_connection 7963 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone return _MemcacheClient(self.urls, **self._arguments) 7964 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone TypeError: object.__new__(_MemcacheClient) is not safe, use _MemcacheClient.__new__() 7965 2016-09-14 21:21:56.471 | 2016-09-14 14:21:56.468 26064 TRACE keystone From issues-reply at bitbucket.org Sat Sep 24 04:45:41 2016 From: issues-reply at bitbucket.org (Prabhu Ramachandran) Date: Sat, 24 Sep 2016 08:45:41 -0000 Subject: [pypy-issue] Issue #2403: pip install numpy fails on OSX (pypy2-v5.4.1) (pypy/pypy) Message-ID: <20160924084541.25331.54064@celery-worker-106.ash1.bb-inf.net> New issue 2403: pip install numpy fails on OSX (pypy2-v5.4.1) https://bitbucket.org/pypy/pypy/issues/2403/pip-install-numpy-fails-on-osx-pypy2-v541 Prabhu Ramachandran: I have installed pypy2-v5.4.1-osx64.tar.bz2 and I am unable to install the latest released numpy from pip after I did this: ``` $ pypy -m ensurepip ``` ``` $ ~/usr/pypy2-v5.4.1-osx64/bin/pip install numpy You are using pip version 6.1.1, however version 8.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting numpy Using cached numpy-1.11.1.zip Installing collected packages: numpy Running setup.py install for numpy Complete output from command /Users/prabhu/usr/pypy2-v5.4.1-osx64/bin/pypy -c "import setuptools, tokenize;__file__='/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-akeqiv-record/install-record.txt --single-version-externally-managed --compile: Running from numpy source directory. Note: if you need reliable uninstall behavior, then install with pip instead of using `setup.py install`: - `pip install .` (from a git repo or downloaded source release) - `pip install numpy` (last Numpy release on PyPi) blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE FOUND: extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 lapack_opt_info: openblas_lapack_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE lapack_mkl_info: mkl_info: libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib'] NOT AVAILABLE NOT AVAILABLE atlas_3_10_threads_info: Setting PTATLAS=ATLAS libraries tatlas,tatlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries tatlas,tatlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib NOT AVAILABLE atlas_3_10_info: libraries satlas,satlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries satlas,satlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries ptf77blas,ptcblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib NOT AVAILABLE atlas_info: libraries f77blas,cblas,atlas not found in /usr/local/lib libraries lapack_atlas not found in /usr/local/lib libraries f77blas,cblas,atlas not found in /usr/lib libraries lapack_atlas not found in /usr/lib NOT AVAILABLE FOUND: extra_compile_args = ['-msse3'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] /Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building py_modules sources creating build creating build/src.macosx-10.11-x86_64-2.7 creating build/src.macosx-10.11-x86_64-2.7/numpy creating build/src.macosx-10.11-x86_64-2.7/numpy/distutils building library "npymath" sources customize Gnu95FCompiler Found executable /usr/local/bin/gfortran Traceback (most recent call last): File "", line 1, in File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/setup.py", line 386, in setup_package() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/setup.py", line 378, in setup_package setup(**metadata) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/install.py", line 62, in run r = self.setuptools_run() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/install.py", line 36, in setuptools_run return distutils_install.run(self) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/command/install.py", line 573, in run self.run_command('build') File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/cmd.py", line 334, in run_command self.distribution.run_command(command) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/build.py", line 47, in run old_build.run(self) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/cmd.py", line 334, in run_command self.distribution.run_command(command) File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/build_src.py", line 147, in run self.build_sources() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/build_src.py", line 158, in build_sources self.build_library_sources(*libname_info) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/build_src.py", line 293, in build_library_sources sources = self.generate_sources(sources, (lib_name, build_info)) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/build_src.py", line 376, in generate_sources source = func(extension, build_dir) File "numpy/core/setup.py", line 652, in get_mathlib_info st = config_cmd.try_link('int main(void) { return 0;}') File "/Users/prabhu/usr/pypy2-v5.4.1-osx64/lib-python/2.7/distutils/command/config.py", line 248, in try_link self._check_compiler() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/command/config.py", line 81, in _check_compiler c_compiler=self.compiler) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/__init__.py", line 842, in new_fcompiler c_compiler=c_compiler) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/__init__.py", line 816, in get_default_fcompiler c_compiler=c_compiler) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/__init__.py", line 765, in _find_existing_fcompiler c.customize(dist) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/__init__.py", line 521, in customize linker_so_flags = self.flag_vars.linker_so File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/environment.py", line 39, in __getattr__ return self._get_var(name, conf_desc) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/environment.py", line 53, in _get_var var = self._hook_handler(name, hook) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/__init__.py", line 700, in _environment_hook return hook() File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/gnu.py", line 301, in get_flags_linker_so flags = GnuFCompiler.get_flags_linker_so(self) File "/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/numpy/distutils/fcompiler/gnu.py", line 129, in get_flags_linker_so filename = sc.get_makefile_filename() AttributeError: 'module' object has no attribute 'get_makefile_filename' ---------------------------------------- Command "/Users/prabhu/usr/pypy2-v5.4.1-osx64/bin/pypy -c "import setuptools, tokenize;__file__='/private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-akeqiv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tr/pfk3lcgd4dndrbppzjwp_tp40000gn/T/pip-build-YRgUec/numpy ``` I am not sure this has been reported earlier but feel free to mark this as a duplicate. Thanks. I will try with numpy from git and From issues-reply at bitbucket.org Sat Sep 24 09:38:59 2016 From: issues-reply at bitbucket.org (Prabhu Ramachandran) Date: Sat, 24 Sep 2016 13:38:59 -0000 Subject: [pypy-issue] Issue #2404: Building matplotlib fails on OSX (pypy/pypy) Message-ID: <20160924133859.34161.95258@celery-worker-105.ash1.bb-inf.net> New issue 2404: Building matplotlib fails on OSX https://bitbucket.org/pypy/pypy/issues/2404/building-matplotlib-fails-on-osx Prabhu Ramachandran: Am trying to build matplotlib. I have pypy2-v5.4.1-osx64 installed and have installed the original numpy (from git) which is slow but does work. When I try to build matplotlib from the latest source or via pip I get the following error: ``` $ pip install matplotlib [...] building 'matplotlib.backends._macosx' extension cc -arch x86_64 -O2 -fPIC -Wimplicit -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_backends__macosx_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -I/Users/prabhu/usr/pypy2-v5.4.1-osx64/site-packages/numpy-1.12.0.dev0+a6574b2-py2.7-macosx-10.11-x86_64.egg/numpy/core/include -I/Users/prabhu/usr/pypy2-v5.4.1-osx64/site-packages/numpy-1.12.0.dev0+a6574b2-py2.7-macosx-10.11-x86_64.egg/numpy/core/include -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/X11/include -I. -Iextern/agg24-svn/include -I/Users/prabhu/usr/pypy2-v5.4.1-osx64/include -c src/_macosx.m -o build/temp.macosx-10.11-x86_64-2.7/src/_macosx.o src/_macosx.m:3743:17: warning: null passed to a callee that requires a non-null argument [-Wnonnull] data = [rep representationUsingType:filetype properties:nil]; ^ ~~~ src/_macosx.m:5167:51: warning: incompatible pointer types passing 'unichar *' (aka 'unsigned short *') to parameter of type 'const wchar_t *' (aka 'const int *') [-Wincompatible-pointer-types] PyObject* string = PyUnicode_FromUnicode(buffer, n); ^~~~~~ /Users/prabhu/usr/pypy2-v5.4.1-osx64/include/pypy_decl.h:907:63: note: passing argument to parameter 'arg0' here PyAPI_FUNC(PyObject *) PyPyUnicode_FromUnicode(const wchar_t *arg0, Py_ssize_t arg1); ^ src/_macosx.m:6384:5: error: use of undeclared identifier 'PyOS_InputHook' PyOS_InputHook = wait_for_stdin; ^ 2 warnings and 1 error generated. error: command 'cc' failed with exit status 1 ``` With the git version when I run `setup.py install` I get: ``` building 'matplotlib.backends._macosx' extension cc -arch x86_64 -O2 -fPIC -Wimplicit -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/X11/include -I. -I/Users/prabhu/usr/pypy2-v5.4.1-osx64/include -c src/_macosx.m -o build/temp.macosx-10.11-x86_64-2.7/src/_macosx.o src/_macosx.m:1901:51: warning: incompatible pointer types passing 'unichar *' (aka 'unsigned short *') to parameter of type 'const wchar_t *' (aka 'const int *') [-Wincompatible-pointer-types] PyObject* string = PyUnicode_FromUnicode(buffer, n); ^~~~~~ /Users/prabhu/usr/pypy2-v5.4.1-osx64/include/pypy_decl.h:907:63: note: passing argument to parameter 'arg0' here PyAPI_FUNC(PyObject *) PyPyUnicode_FromUnicode(const wchar_t *arg0, Py_s... ^ src/_macosx.m:3187:5: error: use of undeclared identifier 'PyOS_InputHook' PyOS_InputHook = wait_for_stdin; ^ 1 warning and 1 error generated. error: command 'cc' failed with exit status 1 ``` From issues-reply at bitbucket.org Tue Sep 27 02:23:48 2016 From: issues-reply at bitbucket.org (zjjott) Date: Tue, 27 Sep 2016 06:23:48 -0000 Subject: [pypy-issue] Issue #2405: maybe should add ./configure? (pypy/pypy) Message-ID: <20160927062348.12461.59300@celery-worker-106.ash1.bb-inf.net> New issue 2405: maybe should add ./configure? https://bitbucket.org/pypy/pypy/issues/2405/maybe-should-add-configure zjjott: ![F6079B92-D95E-44A9-AE11-39F8BEF6D27F.png](https://bitbucket.org/repo/R7AbB/images/526174619-F6079B92-D95E-44A9-AE11-39F8BEF6D27F.png) I have collapsed when I compile pypy in CentOS ,cost one more hour and then it error on some include file like or why don't use `configure` script to examine system library environment? From issues-reply at bitbucket.org Tue Sep 27 16:40:21 2016 From: issues-reply at bitbucket.org (Paul Pearce) Date: Tue, 27 Sep 2016 20:40:21 -0000 Subject: [pypy-issue] Issue #2406: Recent numpy commit breaks compatibility with pypy (Symbol not found: ___cpu_model) (pypy/pypy) Message-ID: <20160927204021.25881.42702@celery-worker-106.ash1.bb-inf.net> New issue 2406: Recent numpy commit breaks compatibility with pypy (Symbol not found: ___cpu_model) https://bitbucket.org/pypy/pypy/issues/2406/recent-numpy-commit-breaks-compatibility Paul Pearce: Hello, The breakage occured sometime after numpy commit 55ece5839d3e9327de7 (5/19/2016) and before (inclusive) 7ccf0e08917d27bc (today, 9/27/16) ``` pypy -m pip install cython git+https://github.com/numpy/numpy.git at 7ccf0e08917d27bc pypy -c "import numpy; print 'hello'" Traceback (most recent call last): File "t.py", line 1, in import numpy File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/__init__.py", line 142, in from . import add_newdocs File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/add_newdocs.py", line 13, in from numpy.lib import add_newdoc File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/lib/__init__.py", line 8, in from .type_check import * File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/lib/type_check.py", line 11, in import numpy.core.numeric as _nx File "/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/__init__.py", line 32, in from . import umath ImportError: unable to load extension module '/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so': dlopen(/usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so, 6): Symbol not found: ___cpu_model Referenced from: /usr/local/Cellar/pypy/5.4.1/libexec/site-packages/numpy/core/umath.pypy-41.so Expected in: dynamic lookup ``` vs ``` pypy -m pip install cython git+https://github.com/numpy/numpy.git at 55ece5839d3e9327de7 pypy -c "import numpy; print 'hello'" hello ``` From issues-reply at bitbucket.org Wed Sep 28 08:57:54 2016 From: issues-reply at bitbucket.org (Dan Crosta) Date: Wed, 28 Sep 2016 12:57:54 -0000 Subject: [pypy-issue] Issue #2407: PyPy 5.4.1 fails to build on macOS Sierra via Homebrew (pypy/pypy) Message-ID: <20160928125754.32890.84044@celery-worker-107.ash1.bb-inf.net> New issue 2407: PyPy 5.4.1 fails to build on macOS Sierra via Homebrew https://bitbucket.org/pypy/pypy/issues/2407/pypy-541-fails-to-build-on-macos-sierra Dan Crosta: Full details and a log of the failed build/translate is at https://github.com/Homebrew/homebrew-core/issues/5093. There was some discussion on #pypy today, too, that may be relevant: https://botbot.me/freenode/pypy/2016-09-28/?msg=73873067&page=2 From issues-reply at bitbucket.org Thu Sep 29 14:47:00 2016 From: issues-reply at bitbucket.org (Jason Madden) Date: Thu, 29 Sep 2016 18:47:00 -0000 Subject: [pypy-issue] Issue #2408: CPython difference: os.utime(path, (-1.1, -1.1)) raises OSError on PyPy (pypy/pypy) Message-ID: <20160929184700.1573.24601@celery-worker-101.ash1.bb-inf.net> New issue 2408: CPython difference: os.utime(path, (-1.1, -1.1)) raises OSError on PyPy https://bitbucket.org/pypy/pypy/issues/2408/cpython-difference-osutime-path-11-11 Jason Madden: On Linux with PyPy 5.3 and 5.4.0, passing negative floating point values to os.utime raises an OSError. This does not happen on OS X with PyPy, and it does not happen on any OS that I've tested under CPython. Compare PyPy (this happens to be an raspbian ARM, but I see the same thing on x86_64): ``` $ touch file $ pypy Python 2.7.10 (c09c19272c99, Jun 07 2016, 16:46:09) [PyPy 5.3.0 with GCC 4.7.2 20120731 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>> import os >>>> os.utime('file', (1.1, 1.1)) >>>> os.utime('file', (-1, -1)) >>>> os.utime('file', (-1.1, -1.1)) Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument: 'file' ``` with CPython: ``` $ /usr/bin/python Python 2.7.9 (default, Mar 8 2015, 00:52:26) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.utime('file', (1.1, 1.1)) >>> os.utime('file', (-1, -1)) >>> os.utime('file', (-1.1, -1.1)) >>> os.stat('file') posix.stat_result(st_mode=33188, st_ino=525562L, st_dev=45831L, st_nlink=1, st_uid=1001, st_gid=1001, st_size=0L, st_atime=-1, st_mtime=-1, st_ctime=1475174715) ``` The most confusing part about this was the error message, which led me to believe something was wrong with the path---I went hunting for someplace that maybe didn't close the file so it wasn't on disk because of GC reasons. I ran into this [testing RelStorage](https://travis-ci.org/zodb/relstorage/jobs/163795480).