From matti.picus at gmail.com Wed Oct 6 11:29:55 2021 From: matti.picus at gmail.com (Matti Picus) Date: Wed, 6 Oct 2021 18:29:55 +0300 Subject: [pypy-dev] PyPy v7.3.6rc2 Message-ID: <817cf414-292d-dc1c-4979-eb0963938c2d@gmail.com> Tarballs for the second release candidate for PyPy 7.3.6, with python2.7, python3.7 and python3.8 are available at https://downloads.python.org/pypy/. The checksums are available at https://www.pypy.org/checksums.html Thanks to all who tried out rc1 and reported problems, and special thanks to those who helped fix them via code, suggestions, or fixes to other projects. The release note is at https://doc.pypy.org/en/latest/release-v7.3.6.html. Please take a look and suggest improvements. Changes since rc1: - Bugs with venv were fixed for windows (now it copies python.exe) and python3.8. - The HPy backend was updated to 0.0.3 - For python3.8, the contents of the lib_pypy directory is now packaged into the stdlib directory, there is no more separation. This simplifies downstream packaging and brings us more in line with CPython. - Issue 3555 about string formatting was fixed - Issue 3463, about a bug in the PPC JIT code was fixed - The _ssl cffi extension module uses a context manager to manage buffer allocations - Unboxed map dicts now round-trip data correctly - Suggestions from syntax errors in python3.8 was restored after mistakenly being deleted. This feature was backported from Python3.11 to Python3.7 a while ago. - Implement os.add_dll_directory for windows on python3.8 and change the flags used in LoadLibraryEx accordingly. - Fix the value of sysconfig.get_config_var('LDLIBRARY') for darwin Please try it out. Matti From werner.heisenberg.g at gmail.com Fri Oct 8 17:31:50 2021 From: werner.heisenberg.g at gmail.com (Werner Heisenberg) Date: Fri, 8 Oct 2021 23:31:50 +0200 Subject: [pypy-dev] Speed of numpy vs numpypy Message-ID: Hi everyone I read the pypy FAQ and some blog posts, which leaves me puzzled and this is why I'm asking here: I'm doing data science and use numpy as only library in the code I'm talking about. A few years ago I used pypy to great success to speed up an algorithm of mine without much development effort. I had to rewrite the code a bit so numpypy was digesting it but it worked great. Now I am trying to do the same thing and numpypy seems to have been dropped in favor of complete support of numpy. In theory this is great - however now my algorithm is at least 4x slower with pypy. Is numpypy is no longer around or is there a way to install it and try the code with it? Is the numpy support by support of the c extension which the JIT cannot optimise? Does this make pypy slower than Cpython? There have been some blog posts about progress to make it faster from 2017 but then nothing. So is there anything I can do? I do not want to write all the numpy stuff I need in plain python as this would take a lot of time and then I would be so close to C, that I could implement everything in C straight away. Best regards Nikolai -------------- next part -------------- An HTML attachment was scrubbed... URL: From drsalists at gmail.com Fri Oct 8 22:50:44 2021 From: drsalists at gmail.com (Dan Stromberg) Date: Fri, 8 Oct 2021 19:50:44 -0700 Subject: [pypy-dev] Speed of numpy vs numpypy In-Reply-To: References: Message-ID: I'm really not qualified to address this, but I suspect a lot of these hopes have moved to HPy: https://github.com/hpyproject/hpy On Fri, Oct 8, 2021 at 2:32 PM Werner Heisenberg < werner.heisenberg.g at gmail.com> wrote: > Hi everyone > > I read the pypy FAQ and some blog posts, which leaves me puzzled and this > is why I'm asking here: > > I'm doing data science and use numpy as only library in the code > I'm talking about. > A few years ago I used pypy to great success to speed up an algorithm of > mine without much development effort. > I had to rewrite the code a bit so numpypy was digesting it but it worked > great. > > Now I am trying to do the same thing and numpypy seems to have been > dropped in favor of complete support of numpy. In theory this is great - > however now my algorithm is at least 4x slower with pypy. Is numpypy is no > longer around or is there a way to install it and try the code with it? > > Is the numpy support by support of the c extension which the JIT cannot > optimise? Does this make pypy slower than Cpython? There have been some > blog posts about progress to make it faster from 2017 but then nothing. > > So is there anything I can do? > > I do not want to write all the numpy stuff I need in plain python as this > would take a lot of time and then I would be so close to C, that I could > implement everything in C straight away. > > Best regards > Nikolai > > _______________________________________________ > pypy-dev mailing list > pypy-dev at python.org > https://mail.python.org/mailman/listinfo/pypy-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Sat Oct 9 17:56:06 2021 From: matti.picus at gmail.com (Matti Picus) Date: Sun, 10 Oct 2021 00:56:06 +0300 Subject: [pypy-dev] Speed of numpy vs numpypy In-Reply-To: References: Message-ID: On 9/10/21 12:31 am, Werner Heisenberg wrote: > Hi everyone > > I read the pypy FAQ and some blog posts, which leaves me puzzled and > this is why I'm asking here: > > I'm doing?data science and use numpy as only?library in the code > I'm?talking?about. > A few years ago I used pypy to great success to speed up an algorithm > of mine without much development effort. > I had to rewrite the code a bit so numpypy was digesting it but it > worked great. > > Now I am trying to do the same thing and numpypy seems to have been > dropped in favor of complete support of numpy. In theory this is great > - however now my algorithm is at least 4x slower with pypy. Is numpypy > is no longer around or is there a way to install it and try the code > with it? > > Is the numpy support by support of the c extension which the JIT > cannot optimise? Does this?make pypy slower than Cpython? There have > been some blog posts about progress to make it faster from 2017 but > then nothing. > > So is there anything I can do? > > I do not want to write all the numpy stuff I need in plain python as > this would take a lot of time and then I would be so close to C, that > I could implement everything in C straight away. > > Best regards > Nikolai > > > _______________________________________________ > pypy-dev mailing list > pypy-dev at python.org > https://mail.python.org/mailman/listinfo/pypy-dev It turns out the approach in numpypy was not sustainable with the current level of resources available to PyPy. We have a hard enough time trying to catch up with CPython, and are only now releasing a PyPy3.8, when CPython has recently released 3.10. Keeping up with NumPy, with their twice-early release schedule, in addition to the other maintenance tasks for PyPy, was too much, given our very limited budget for ongoing maintenance. We ended up disabling the numpypy extension for python3+ since the code no longer translated. As Dan Stromberg mentioned, currently we view HPy as the way forward: we predict it will allow the calls to C code to be closer to the speed of CPython. Note this is a more modest goal than numpypy, since numpypy could have provided Numba-like performance. I guess the answer to "what can you do" could be anything from - help up move HPy forward - run an effort to revive numpypy (this will have to be a long-term commitment) - get involved in ongoing maintenance of PyPy which would free up other resources. Matti From liske at ibh.de Mon Oct 11 18:32:20 2021 From: liske at ibh.de (Thomas Liske) Date: Tue, 12 Oct 2021 00:32:20 +0200 Subject: [pypy-dev] ftbs pypy3 on alpine/musl Message-ID: <790fa0af560fccf9dad1c9860890e5fc@ibh.de> Hi, I'm still trying to package pypy[23].7 on Alpine Linux. While I have proceeded bootstrapping pypy I got stuck with pypy3. Compiling aborts with several translation errors: [translation:ERROR] CompilationError: CompilationError(err=""" data_pypy_module_cpyext.c:25256:3: warning: initialization of 'void (*)(Signed)' {aka 'void (*)(long int)'} from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types] 25256 | set_Py_DebugFlag, /* 0.value */ | ^~~~~~~~~~~~~~~~ data_pypy_module_cpyext.c:25256:3: note: (near initialization for 'pypy_g_array_25832.a.items[0].o_value') MR : https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/26292 Log: https://gitlab.alpinelinux.org/liske/aports/-/jobs/509516/raw Any ideas how to deal with these errors? musl vs. glibc: I've attached a small patch adding a required include to fix compile warnings on missing struct timeval * Regards & TIA, Thomas -- support at ibh.de Tel. +49 351 477 77 30 www.ibh.de Fax +49 351 477 77 39 ----------------------------------------------------------------------- Dipl.-Ing. Thomas Liske Teamleiter DataCenter Services IBH IT-Service GmbH Amtsgericht Dresden Heilbronner Str. 20 HRB 13626 01189 Dresden GF: Sandra Zander Germany VAT DE182302907 ----------------------------------------------------------------------- Ihr Partner f?r: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV ----------------------------------------------------------------------- professioneller IT-Service - kompetent und zuverl?ssig ----------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-time.patch Type: text/x-diff Size: 392 bytes Desc: not available URL: From armin.rigo at gmail.com Tue Oct 12 07:18:28 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Tue, 12 Oct 2021 13:18:28 +0200 Subject: [pypy-dev] ftbs pypy3 on alpine/musl In-Reply-To: <790fa0af560fccf9dad1c9860890e5fc@ibh.de> References: <790fa0af560fccf9dad1c9860890e5fc@ibh.de> Message-ID: Hi Thomas, On Tue, 12 Oct 2021 at 00:33, Thomas Liske wrote: > [translation:ERROR] CompilationError: CompilationError(err=""" > data_pypy_module_cpyext.c:25256:3: warning: initialization of 'void > (*)(Signed)' {aka 'void (*)(long int)'} from incompatible pointer type > 'void (*)(int)' [-Wincompatible-pointer-types] > 25256 | set_Py_DebugFlag, /* 0.value */ > | ^~~~~~~~~~~~~~~~ > data_pypy_module_cpyext.c:25256:3: note: (near initialization for > 'pypy_g_array_25832.a.items[0].o_value') This is a warning (which we should look into and probably show up everywhere). The log contains only one error: [platform:Error] ../module_cache/module_15.c:558:14: error: conflicting type qualifiers for 'stdout' [platform:Error] 558 | extern FILE* stdout; [platform:Error] | ^~~~~~ [platform:Error] /usr/include/stdio.h:61:20: note: previous declaration of 'stdout' was here [platform:Error] 61 | extern FILE *const stdout; [platform:Error] | ^~~~~~ Responsible for that is rpython/rlib/rfile.py, whose create_stdio() function is called on pypy3 but not on pypy2. Maybe we can add some hack to avoid entirely the "extern" above, which is not needed anyway because we #include stdio.h. A bient?t, Armin From matti.picus at gmail.com Tue Oct 12 09:14:10 2021 From: matti.picus at gmail.com (Matti Picus) Date: Tue, 12 Oct 2021 16:14:10 +0300 Subject: [pypy-dev] PyPy v7.3.6rc3 In-Reply-To: <817cf414-292d-dc1c-4979-eb0963938c2d@gmail.com> References: <817cf414-292d-dc1c-4979-eb0963938c2d@gmail.com> Message-ID: Hot on the heels of rc2, tarballs for rc3 are up. I messed up the venv fixes, so now hopefully it is really fixed. Additionally, in the two days since rc2 the following were added to python3.8: - A bug when reporting import errors was fixed (issue 3573) - Performance for some of the quadratic behaviour in enums was improved (issue 3571) - When building the CFFI extension modules, fix the way we add the include path for pypy C headers (until setuptools can catch up to the new layout) And for both 3.7 and 3.8 - Added HOST_GNU_TYPE to sysconfigdata (and sysconfig) which is useful for cross-compiling - Add a PYPY_MULTIARCH env variable to allow overriding the value of HOST_GNU_TYPE when translating on posix - Added the beginning of a table of possible environment variables used during translation to https://doc.pypy.org/en/latest/build.html (I now see it is mis-formatted) Matti On 6/10/21 6:29 pm, Matti Picus wrote: > Tarballs for the second release candidate for PyPy 7.3.6, with > python2.7, python3.7 and python3.8 are available at > https://downloads.python.org/pypy/. The checksums are available at > https://www.pypy.org/checksums.html > > Thanks to all who tried out rc1 and reported problems, and special > thanks to those who helped fix them via code, suggestions, or fixes to > other projects. > > The release note is at > https://doc.pypy.org/en/latest/release-v7.3.6.html. Please take a look > and suggest improvements. > > Changes since rc1: > > - Bugs with venv were fixed for windows (now it copies python.exe) and > python3.8. > > - The HPy backend was updated to 0.0.3 > > - For python3.8, the contents of the lib_pypy directory is now > packaged into the stdlib directory, there is no more separation. This > simplifies downstream packaging and brings us more in line with CPython. > > - Issue 3555 about string formatting was fixed > > - Issue 3463, about a bug in the PPC JIT code was fixed > > - The _ssl cffi extension module uses a context manager to manage > buffer allocations > > - Unboxed map dicts now round-trip data correctly > > - Suggestions from syntax errors in python3.8 was restored after > mistakenly being deleted. This feature was backported from Python3.11 > to Python3.7 a while ago. > > - Implement os.add_dll_directory for windows on python3.8 and change > the flags used in LoadLibraryEx accordingly. > > - Fix the value of sysconfig.get_config_var('LDLIBRARY') for darwin > > Please try it out. > > Matti > From liske at ibh.de Tue Oct 12 17:07:59 2021 From: liske at ibh.de (Thomas Liske) Date: Tue, 12 Oct 2021 23:07:59 +0200 Subject: [pypy-dev] ftbs pypy3 on alpine/musl In-Reply-To: References: <790fa0af560fccf9dad1c9860890e5fc@ibh.de> Message-ID: <27475d1c18e70e311b7989e789b87203@ibh.de> Hi Armin, Am 2021-10-12 13:18, schrieb Armin Rigo: > Hi Thomas, > > On Tue, 12 Oct 2021 at 00:33, Thomas Liske wrote: >> [translation:ERROR] CompilationError: CompilationError(err=""" >> data_pypy_module_cpyext.c:25256:3: warning: initialization of >> 'void >> (*)(Signed)' {aka 'void (*)(long int)'} from incompatible pointer type >> 'void (*)(int)' [-Wincompatible-pointer-types] >> 25256 | set_Py_DebugFlag, /* 0.value */ >> | ^~~~~~~~~~~~~~~~ >> data_pypy_module_cpyext.c:25256:3: note: (near initialization >> for >> 'pypy_g_array_25832.a.items[0].o_value') > > This is a warning (which we should look into and probably show up > everywhere). The log contains only one error: oops :-O > [platform:Error] ../module_cache/module_15.c:558:14: error: > conflicting type qualifiers for 'stdout' > [platform:Error] 558 | extern FILE* stdout; > [platform:Error] | ^~~~~~ > [platform:Error] /usr/include/stdio.h:61:20: note: previous > declaration of 'stdout' was here > [platform:Error] 61 | extern FILE *const stdout; > [platform:Error] | ^~~~~~ > > Responsible for that is rpython/rlib/rfile.py, whose create_stdio() > function is called on pypy3 but not on pypy2. Maybe we can add some > hack to avoid entirely the "extern" above, which is not needed anyway > because we #include stdio.h. Thanks for pointing me in the right direction! Although i don't know how it works at all, I've created a small patch to suppress the std(in|err|out) declaration and got pypy3 to compile :-) Should I put the patches required to make pypy musl compatible at some issue tracker or will ${someone} consider to take them from the mailing list? Warm regards, Thomas -- support at ibh.de Tel. +49 351 477 77 30 www.ibh.de Fax +49 351 477 77 39 ----------------------------------------------------------------------- Dipl.-Ing. Thomas Liske Teamleiter DataCenter Services IBH IT-Service GmbH Amtsgericht Dresden Heilbronner Str. 20 HRB 13626 01189 Dresden GF: Sandra Zander Germany VAT DE182302907 ----------------------------------------------------------------------- Ihr Partner f?r: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV ----------------------------------------------------------------------- professioneller IT-Service - kompetent und zuverl?ssig ----------------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-extern-stdio.patch Type: text/x-diff Size: 527 bytes Desc: not available URL: From teammember0x01 at gmail.com Tue Oct 12 22:08:51 2021 From: teammember0x01 at gmail.com (M A) Date: Tue, 12 Oct 2021 22:08:51 -0400 Subject: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory() Message-ID: <21E0660C-1B76-4898-B417-53433195A294@gmail.com> Hi guys. I am having a problem with a function called _copy_to_raw_memory() in the file rpython/jit/backend/llsupport/asmmemmgr.py. After building PyPy there is always a crash in this function. Here is a partial backtrace I captured: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x104100000) frame #0: 0x0000000100c3a8b4 libpypy-c.dylib`pypy_g_InstrBuilder__copy_to_raw_memory + 268 * frame #1: 0x0000000100bfec98 libpypy-c.dylib`pypy_g_InstrBuilder_copy_to_raw_memory + 40 frame #2: 0x0000000100c3efd4 libpypy-c.dylib`pypy_g_InstrBuilder_materialize + 232 frame #3: 0x0000000100c047e4 libpypy-c.dylib`pypy_g_AssemblerARM64__build_failure_recovery + 1208 frame #4: 0x0000000100c3b5ec libpypy-c.dylib`pypy_g_BaseAssembler_setup_once + 80 frame #5: 0x0000000100d31668 libpypy-c.dylib`pypy_g_compile_and_run_once___rpython_jit_metainterp_ji_29 + 364 frame #6: 0x0000000100cd3ed4 libpypy-c.dylib`pypy_g_bound_reached__star_4_8 + 740 frame #7: 0x0000000100b66510 libpypy-c.dylib`pypy_g_portal_29 + 104 frame #8: 0x0000000100ca7804 libpypy-c.dylib`pypy_g_ll_portal_runner__pypy_objspace_std_typeobject_W_1 + 344 With the help of print() statements I was able to find the exact line that was causing the problem. It is this: dst[j] = block.data[j] I have tried printing the values for these variables but that doesn't compile. I can't be sure the two variables are set correctly. Using type() on these two variables also doesn't compile. Even comparing the two variables to None doesn't work. How can I figure out what is wrong with this code? Please let me know if you need more information. Thank you. From armin.rigo at gmail.com Wed Oct 13 01:21:03 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Wed, 13 Oct 2021 07:21:03 +0200 Subject: [pypy-dev] ftbs pypy3 on alpine/musl In-Reply-To: <27475d1c18e70e311b7989e789b87203@ibh.de> References: <790fa0af560fccf9dad1c9860890e5fc@ibh.de> <27475d1c18e70e311b7989e789b87203@ibh.de> Message-ID: Hi Thomas, On Tue, 12 Oct 2021 at 23:08, Thomas Liske wrote: > Thanks for pointing me in the right direction! Although i don't know how > it works at all, I've created a small patch to suppress the > std(in|err|out) declaration and got pypy3 to compile :-) Thanks for the patch! We can simply pass the "declare_as_extern" flag from rfile.py and get the same effect cleanly. I've checked it in (so far it's only in the "default" branch, but it is merged to "py3.8" regularly). > Should I put the patches required to make pypy musl compatible at some > issue tracker or will ${someone} consider to take them from the mailing > list? In this case it's not necessary any more, but in general, yes, we like patches to live on https://foss.heptapod.net/pypy/pypy/-/issues/ . A bient?t, Armin Rigo From armin.rigo at gmail.com Wed Oct 13 01:28:34 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Wed, 13 Oct 2021 07:28:34 +0200 Subject: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory() In-Reply-To: <21E0660C-1B76-4898-B417-53433195A294@gmail.com> References: <21E0660C-1B76-4898-B417-53433195A294@gmail.com> Message-ID: Hi, On Wed, 13 Oct 2021 at 04:08, M A wrote: > Hi guys. I am having a problem with a function called _copy_to_raw_memory() in the file rpython/jit/backend/llsupport/asmmemmgr.py. After building PyPy there is always a crash in this function. Here is a partial backtrace I captured: > > * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x104100000) > frame #0: 0x0000000100c3a8b4 libpypy-c.dylib`pypy_g_InstrBuilder__copy_to_raw_memory + 268 > * frame #1: 0x0000000100bfec98 libpypy-c.dylib`pypy_g_InstrBuilder_copy_to_raw_memory + 40 > frame #2: 0x0000000100c3efd4 libpypy-c.dylib`pypy_g_InstrBuilder_materialize + 232 > frame #3: 0x0000000100c047e4 libpypy-c.dylib`pypy_g_AssemblerARM64__build_failure_recovery + 1208 > frame #4: 0x0000000100c3b5ec libpypy-c.dylib`pypy_g_BaseAssembler_setup_once + 80 > frame #5: 0x0000000100d31668 libpypy-c.dylib`pypy_g_compile_and_run_once___rpython_jit_metainterp_ji_29 + 364 > frame #6: 0x0000000100cd3ed4 libpypy-c.dylib`pypy_g_bound_reached__star_4_8 + 740 > frame #7: 0x0000000100b66510 libpypy-c.dylib`pypy_g_portal_29 + 104 > frame #8: 0x0000000100ca7804 libpypy-c.dylib`pypy_g_ll_portal_runner__pypy_objspace_std_typeobject_W_1 + 344 > > > With the help of print() statements I was able to find the exact line that was causing the problem. It is this: > > dst[j] = block.data[j] > > I have tried printing the values for these variables but that doesn't compile. I can't be sure the two variables are set correctly. Using type() on these two variables also doesn't compile. Even comparing the two variables to None doesn't work. How can I figure out what is wrong with this code? Please let me know if you need more information. Thank you. This is the function that copies the generated machine code into the special memory area that was allocated to be read-write-executable. What is likely occurring here is that on your particular machine, when we ask the OS to get a read-write-executable piece of memory, it doesn't do that. But instead of returning an error, it returns a valid page of memory that is apparently not writeable. Then the process crashes like you have found while trying to write to it. You need to look up if your OS imposes strange non-POSIX requirements on the process. Maybe https://developer.apple.com/documentation/apple-silicon/porting-just-in-time-compilers-to-apple-silicon is a good starting point. A bient?t, Armin Rigo From pierre.augier at univ-grenoble-alpes.fr Wed Oct 13 17:10:31 2021 From: pierre.augier at univ-grenoble-alpes.fr (PIERRE AUGIER) Date: Wed, 13 Oct 2021 23:10:31 +0200 (CEST) Subject: [pypy-dev] Speed of numpy vs numpypy In-Reply-To: References: Message-ID: <2023183052.13289322.1634159431719.JavaMail.zimbra@univ-grenoble-alpes.fr> Hi, HPy becomes somehow usable :-) I investigated what could give HPy with something similar to Numpy (piconumpy, a C extension providing an array class). Some very simple preliminary results: https://github.com/hpyproject/piconumpy/tree/microbench_loop_sum/bench/microbench_loop_sum Just an explicit loop to sum 10000 random floats with PyPy (and Julia for comparison): {'cache_tag': 'pypy37', 'version': sys.pypy_version_info(major=7, minor=3, micro=6, releaselevel='final', serial=0)} list : 1.73e-05 s ( 1.6 * Julia) purepy : 1.97e-05 s ( 1.9 * Julia) numpy : 4.12e-03 s (388.6 * Julia) _piconumpy_hpy : 2.14e-04 s ( 20.2 * Julia) _piconumpy_cpython_capi : 1.19e-03 s (112.1 * Julia) I have no idea how much HPy+PyPy could be improved in terms of perf for such code. Pierre ----- Mail original ----- > De: "Matti Picus" > ?: "pypy-dev" > Envoy?: Samedi 9 Octobre 2021 23:56:06 > Objet: Re: [pypy-dev] Speed of numpy vs numpypy > On 9/10/21 12:31 am, Werner Heisenberg wrote: >> Hi everyone >> >> I read the pypy FAQ and some blog posts, which leaves me puzzled and >> this is why I'm asking here: >> >> I'm doing?data science and use numpy as only?library in the code >> I'm?talking?about. >> A few years ago I used pypy to great success to speed up an algorithm >> of mine without much development effort. >> I had to rewrite the code a bit so numpypy was digesting it but it >> worked great. >> >> Now I am trying to do the same thing and numpypy seems to have been >> dropped in favor of complete support of numpy. In theory this is great >> - however now my algorithm is at least 4x slower with pypy. Is numpypy >> is no longer around or is there a way to install it and try the code >> with it? >> >> Is the numpy support by support of the c extension which the JIT >> cannot optimise? Does this?make pypy slower than Cpython? There have >> been some blog posts about progress to make it faster from 2017 but >> then nothing. >> >> So is there anything I can do? >> >> I do not want to write all the numpy stuff I need in plain python as >> this would take a lot of time and then I would be so close to C, that >> I could implement everything in C straight away. >> >> Best regards >> Nikolai >> >> >> _______________________________________________ >> pypy-dev mailing list >> pypy-dev at python.org >> https://mail.python.org/mailman/listinfo/pypy-dev > > > It turns out the approach in numpypy was not sustainable with the > current level of resources available to PyPy. We have a hard enough time > trying to catch up with CPython, and are only now releasing a PyPy3.8, > when CPython has recently released 3.10. Keeping up with NumPy, with > their twice-early release schedule, in addition to the other maintenance > tasks for PyPy, was too much, given our very limited budget for ongoing > maintenance. We ended up disabling the numpypy extension for python3+ > since the code no longer translated. As Dan Stromberg mentioned, > currently we view HPy as the way forward: we predict it will allow the > calls to C code to be closer to the speed of CPython. Note this is a > more modest goal than numpypy, since numpypy could have provided > Numba-like performance. > > I guess the answer to "what can you do" could be anything from > > - help up move HPy forward > > - run an effort to revive numpypy (this will have to be a long-term > commitment) > > - get involved in ongoing maintenance of PyPy which would free up other > resources. > > Matti > > _______________________________________________ > pypy-dev mailing list > pypy-dev at python.org > https://mail.python.org/mailman/listinfo/pypy-dev From matti.picus at gmail.com Sun Oct 17 11:42:23 2021 From: matti.picus at gmail.com (Matti Picus) Date: Sun, 17 Oct 2021 18:42:23 +0300 Subject: [pypy-dev] PyPy 7.3.6 has been released Message-ID: https://www.pypy.org/posts/2021/10/pypy-v736-release.html Thanks to all. Let the bug reports begin. The docs website release notice with the complete changelog https://doc.pypy.org/en/latest/release-v7.3.6.html The uploads are in place https://downloads.python.org/pypy/ The checksums are at the usual place https://www.pypy.org/checksums.html Matti From kostasgr100 at gmail.com Sun Oct 17 08:36:58 2021 From: kostasgr100 at gmail.com (Kostas Christofakis) Date: Sun, 17 Oct 2021 15:36:58 +0300 Subject: [pypy-dev] Problem installing python modules on pypy3 Message-ID: Hello guys, I have a problem installing 2 modules on pypy and contacting you to find a solution. The issue is this: I am trying to pip install the python-binance module and discum module on pypy3, either with a virtual environment or in pypy folder with root. In both cases I get errors and the installation fails. That is what happens on the binance case : (pypy-venv) root at ubuntu-01:~/pypy-venv# pip install python-binance Collecting python-binance Using cached python_binance-1.0.15-py2.py3-none-any.whl (63 kB) Requirement already satisfied: requests in ./site-packages (from python-binance) (2.26.0) Requirement already satisfied: six in ./site-packages (from python-binance) (1.16.0) Collecting dateparser Using cached dateparser-1.1.0-py2.py3-none-any.whl (288 kB) Collecting aiohttp Using cached aiohttp-3.7.4.post0-py3-none-any.whl Collecting ujson Using cached ujson-4.2.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (45 kB) Collecting websockets==9.1 Using cached websockets-9.1-pp37-pypy37_pp73-linux_x86_64.whl Collecting async-timeout<4.0,>=3.0 Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting attrs>=17.3.0 Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB) Collecting chardet<5.0,>=2.0 Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB) Requirement already satisfied: multidict<7.0,>=4.5 in ./site-packages (from aiohttp->python-binance) (5.2.0) Requirement already satisfied: typing-extensions>=3.6.5 in ./site-packages (from aiohttp->python-binance) (3.10.0.2) Requirement already satisfied: yarl<2.0,>=1.0 in ./site-packages (from aiohttp->python-binance) (1.7.0) Collecting python-dateutil Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) Collecting pytz Using cached pytz-2021.3-py2.py3-none-any.whl (503 kB) Collecting regex!=2019.02.19,!=2021.8.27 Using cached regex-2021.10.8.tar.gz (703 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: tzlocal in ./site-packages (from dateparser->python-binance) (3.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./site-packages (from requests->python-binance) (1.26.7) Requirement already satisfied: certifi>=2017.4.17 in ./site-packages (from requests->python-binance) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./site-packages (from requests->python-binance) (2.0.7) Requirement already satisfied: idna<4,>=2.5 in ./site-packages (from requests->python-binance) (3.3) Requirement already satisfied: backports.zoneinfo in ./site-packages (from tzlocal->dateparser->python-binance) (0.2.1) Building wheels for collected packages: regex Building wheel for regex (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-g_psatn6 cwd: /tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/ Complete output (20 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/regex copying regex_3/__init__.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/regex.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7/regex running build_ext building 'regex._regex' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/regex_3 gcc -pthread -DNDEBUG -O2 -fPIC -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory 50 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for regex Running setup.py clean for regex Failed to build regex Installing collected packages: regex, pytz, python-dateutil, chardet, attrs, async-timeout, websockets, ujson, dateparser, aiohttp, python-binance Running setup.py install for regex ... error ERROR: Command errored out with exit status 1: command: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-m0u1723b/install-record.txt --single-version-externally-managed --compile --install-headers /root/pypy-venv/include/site/python3.7/regex cwd: /tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/ Complete output (20 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/regex copying regex_3/__init__.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/regex.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/_regex_core.py -> build/lib.linux-x86_64-3.7/regex copying regex_3/test_regex.py -> build/lib.linux-x86_64-3.7/regex running build_ext building 'regex._regex' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/regex_3 gcc -pthread -DNDEBUG -O2 -fPIC -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c regex_3/_regex.c -o build/temp.linux-x86_64-3.7/regex_3/_regex.o regex_3/_regex.c:50:10: fatal error: Python.h: No such file or directory 50 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rrzjoxgs/regex_315e3789d15b49399e752eab71aee554/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-m0u1723b/install-record.txt --single-version-externally-managed --compile --install-headers /root/pypy-venv/include/site/python3.7/regex Check the logs for full command output. *And in the case of discum I get this:* (pypy-venv) root at ubuntu-01:~/pypy-venv# pip install discum Collecting discum Using cached discum-1.1.0-py3-none-any.whl (52 kB) Requirement already satisfied: requests in ./site-packages (from discum) (2.26.0) Requirement already satisfied: requests-toolbelt in ./site-packages (from discum) (0.9.1) Collecting brotli Using cached Brotli-1.0.9.zip (510 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: filetype in ./site-packages (from discum) (1.0.8) Requirement already satisfied: websocket-client in ./site-packages (from discum) (1.2.1) Requirement already satisfied: ua-parser in ./site-packages (from discum) (0.10.0) Requirement already satisfied: random-user-agent in ./site-packages (from discum) (1.0.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./site-packages (from requests->discum) (1.26.7) Requirement already satisfied: certifi>=2017.4.17 in ./site-packages (from requests->discum) (2021.10.8) Requirement already satisfied: charset-normalizer~=2.0.0 in ./site-packages (from requests->discum) (2.0.7) Requirement already satisfied: idna<4,>=2.5 in ./site-packages (from requests->discum) (3.3) Building wheels for collected packages: brotli Building wheel for brotli (setup.py) ... error ERROR: Command errored out with exit status 1: command: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xj_3eywg cwd: /tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/ Complete output (51 lines): /root/pypy-venv/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead % (opt, underscore_opt) running bdist_wheel running build running build_py creating bin creating bin/lib.linux-x86_64-3.7 copying python/brotli.py -> bin/lib.linux-x86_64-3.7 running build_ext building '_brotli' extension creating bin/temp.linux-x86_64-3.7 creating bin/temp.linux-x86_64-3.7/c creating bin/temp.linux-x86_64-3.7/c/common creating bin/temp.linux-x86_64-3.7/c/dec creating bin/temp.linux-x86_64-3.7/c/enc gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/constants.c -o bin/temp.linux-x86_64-3.7/c/common/constants.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/context.c -o bin/temp.linux-x86_64-3.7/c/common/context.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/dictionary.c -o bin/temp.linux-x86_64-3.7/c/common/dictionary.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/platform.c -o bin/temp.linux-x86_64-3.7/c/common/platform.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/transform.c -o bin/temp.linux-x86_64-3.7/c/common/transform.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/bit_reader.c -o bin/temp.linux-x86_64-3.7/c/dec/bit_reader.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/decode.c -o bin/temp.linux-x86_64-3.7/c/dec/decode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/huffman.c -o bin/temp.linux-x86_64-3.7/c/dec/huffman.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/state.c -o bin/temp.linux-x86_64-3.7/c/dec/state.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/backward_references.c -o bin/temp.linux-x86_64-3.7/c/enc/backward_references.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/backward_references_hq.c -o bin/temp.linux-x86_64-3.7/c/enc/backward_references_hq.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/bit_cost.c -o bin/temp.linux-x86_64-3.7/c/enc/bit_cost.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/block_splitter.c -o bin/temp.linux-x86_64-3.7/c/enc/block_splitter.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/brotli_bit_stream.c -o bin/temp.linux-x86_64-3.7/c/enc/brotli_bit_stream.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/cluster.c -o bin/temp.linux-x86_64-3.7/c/enc/cluster.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/command.c -o bin/temp.linux-x86_64-3.7/c/enc/command.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/compress_fragment.c -o bin/temp.linux-x86_64-3.7/c/enc/compress_fragment.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-x86_64-3.7/c/enc/compress_fragment_two_pass.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/dictionary_hash.c -o bin/temp.linux-x86_64-3.7/c/enc/dictionary_hash.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/encode.c -o bin/temp.linux-x86_64-3.7/c/enc/encode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/encoder_dict.c -o bin/temp.linux-x86_64-3.7/c/enc/encoder_dict.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/entropy_encode.c -o bin/temp.linux-x86_64-3.7/c/enc/entropy_encode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/fast_log.c -o bin/temp.linux-x86_64-3.7/c/enc/fast_log.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/histogram.c -o bin/temp.linux-x86_64-3.7/c/enc/histogram.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/literal_cost.c -o bin/temp.linux-x86_64-3.7/c/enc/literal_cost.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/memory.c -o bin/temp.linux-x86_64-3.7/c/enc/memory.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/metablock.c -o bin/temp.linux-x86_64-3.7/c/enc/metablock.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/static_dict.c -o bin/temp.linux-x86_64-3.7/c/enc/static_dict.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/utf8_util.c -o bin/temp.linux-x86_64-3.7/c/enc/utf8_util.o creating bin/temp.linux-x86_64-3.7/python gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c python/_brotli.cc -o bin/temp.linux-x86_64-3.7/python/_brotli.o python/_brotli.cc:2:10: fatal error: Python.h: No such file or directory 2 | #include | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for brotli Running setup.py clean for brotli Failed to build brotli Installing collected packages: brotli, discum Running setup.py install for brotli ... error ERROR: Command errored out with exit status 1: command: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dk6qnjak/install-record.txt --single-version-externally-managed --compile --install-headers /root/pypy-venv/include/site/python3.7/brotli cwd: /tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/ Complete output (51 lines): /root/pypy-venv/site-packages/setuptools/dist.py:720: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead % (opt, underscore_opt) running install running build running build_py creating bin creating bin/lib.linux-x86_64-3.7 copying python/brotli.py -> bin/lib.linux-x86_64-3.7 running build_ext building '_brotli' extension creating bin/temp.linux-x86_64-3.7 creating bin/temp.linux-x86_64-3.7/c creating bin/temp.linux-x86_64-3.7/c/common creating bin/temp.linux-x86_64-3.7/c/dec creating bin/temp.linux-x86_64-3.7/c/enc gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/constants.c -o bin/temp.linux-x86_64-3.7/c/common/constants.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/context.c -o bin/temp.linux-x86_64-3.7/c/common/context.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/dictionary.c -o bin/temp.linux-x86_64-3.7/c/common/dictionary.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/platform.c -o bin/temp.linux-x86_64-3.7/c/common/platform.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/common/transform.c -o bin/temp.linux-x86_64-3.7/c/common/transform.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/bit_reader.c -o bin/temp.linux-x86_64-3.7/c/dec/bit_reader.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/decode.c -o bin/temp.linux-x86_64-3.7/c/dec/decode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/huffman.c -o bin/temp.linux-x86_64-3.7/c/dec/huffman.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/dec/state.c -o bin/temp.linux-x86_64-3.7/c/dec/state.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/backward_references.c -o bin/temp.linux-x86_64-3.7/c/enc/backward_references.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/backward_references_hq.c -o bin/temp.linux-x86_64-3.7/c/enc/backward_references_hq.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/bit_cost.c -o bin/temp.linux-x86_64-3.7/c/enc/bit_cost.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/block_splitter.c -o bin/temp.linux-x86_64-3.7/c/enc/block_splitter.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/brotli_bit_stream.c -o bin/temp.linux-x86_64-3.7/c/enc/brotli_bit_stream.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/cluster.c -o bin/temp.linux-x86_64-3.7/c/enc/cluster.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/command.c -o bin/temp.linux-x86_64-3.7/c/enc/command.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/compress_fragment.c -o bin/temp.linux-x86_64-3.7/c/enc/compress_fragment.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/compress_fragment_two_pass.c -o bin/temp.linux-x86_64-3.7/c/enc/compress_fragment_two_pass.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/dictionary_hash.c -o bin/temp.linux-x86_64-3.7/c/enc/dictionary_hash.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/encode.c -o bin/temp.linux-x86_64-3.7/c/enc/encode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/encoder_dict.c -o bin/temp.linux-x86_64-3.7/c/enc/encoder_dict.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/entropy_encode.c -o bin/temp.linux-x86_64-3.7/c/enc/entropy_encode.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/fast_log.c -o bin/temp.linux-x86_64-3.7/c/enc/fast_log.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/histogram.c -o bin/temp.linux-x86_64-3.7/c/enc/histogram.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/literal_cost.c -o bin/temp.linux-x86_64-3.7/c/enc/literal_cost.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/memory.c -o bin/temp.linux-x86_64-3.7/c/enc/memory.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/metablock.c -o bin/temp.linux-x86_64-3.7/c/enc/metablock.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/static_dict.c -o bin/temp.linux-x86_64-3.7/c/enc/static_dict.o gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c c/enc/utf8_util.c -o bin/temp.linux-x86_64-3.7/c/enc/utf8_util.o creating bin/temp.linux-x86_64-3.7/python gcc -pthread -DNDEBUG -O2 -fPIC -Ic/include -I/root/pypy-venv/include -I/usr/lib/pypy3/include -c python/_brotli.cc -o bin/temp.linux-x86_64-3.7/python/_brotli.o python/_brotli.cc:2:10: fatal error: Python.h: No such file or directory 2 | #include | ^~~~~~~~~~ compilation terminated. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-dk6qnjak/install-record.txt --single-version-externally-managed --compile --install-headers /root/pypy-venv/include/site/python3.7/brotli Check the logs for full command output. *Any suggestions or ways to make pypy compatible with those 2 modules ?* *Btw I have python-dev and everything installed, the modules get installed with pip3.9 and python3.9 commands but not on pyp, when i try pip3.7 or pip installation i just get the above errors .* -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre-yves.david at octobus.net Mon Oct 18 07:25:56 2021 From: pierre-yves.david at octobus.net (Pierre-Yves David) Date: Mon, 18 Oct 2021 13:25:56 +0200 Subject: [pypy-dev] Contributing to PyPy In-Reply-To: References: Message-ID: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> Can you try with the latest Mercurial release ? (5.9.2) On 9/19/21 7:44 PM, M A wrote: > Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg? > > If you are curious here are the errors I see when I try to clone the repository using hg: > > hg clone https://foss.heptapod.net/pypy/pypy > destination directory: pypy > applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg > adding changesets > adding manifests > adding file changes > transaction abort! > rollback completed > ** unknown exception encountered, please report by visiting > ** https://mercurial-scm.org/wiki/BugTracker > ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] > ** Mercurial Distributed SCM (version 5.9.1) > ** Extensions loaded: > Traceback (most recent call last): > File "/opt/homebrew/bin/hg", line 61, in > dispatch.run() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run > status = dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch > status = _rundispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch > ret = _runcatch(req) or 0 > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch > return _callcatch(ui, _runcatchfunc) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch > return scmutil.callcatch(ui, func) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch > return func() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc > return _dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch > return runcommand( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand > ret = _runcommand(ui, options, cmd, d) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand > return cmdfunc() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in > d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check > return func(*args, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone > r = hg.clone( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone > exchange.pull( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull > _maybeapplyclonebundle(pullop) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle > if trypullbundlefromurl(repo.ui, repo, url): > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl > bundle2.applybundle(repo, cg, tr, b'clonebundles', url) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle > return processbundle(repo, unbundler, lambda: tr, source=source) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle > processparts(repo, op, unbundler) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts > _processpart(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart > handler(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup > ret = _processchangegroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup > ret = cg.apply(op.repo, tr, source, url, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply > newrevs, newfiles = _addchangegroupfiles( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles > added = fl.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup > return self._revlog.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup > for data in deltas: > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 > is_affected = _is_revision_affected_fast_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner > return _is_revision_affected_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner > has_meta = raw_text.startswith(b'\x01\n') > AttributeError: 'memoryview' object has no attribute 'startswith' > > ** Extensions loaded: > Traceback (most recent call last): > File "/opt/homebrew/bin/hg", line 61, in > dispatch.run() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run > status = dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch > status = _rundispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch > ret = _runcatch(req) or 0 > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch > return _callcatch(ui, _runcatchfunc) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch > return scmutil.callcatch(ui, func) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch > return func() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc > return _dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch > return runcommand( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand > ret = _runcommand(ui, options, cmd, d) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand > return cmdfunc() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in > d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check > return func(*args, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone > r = hg.clone( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone > exchange.pull( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull > _maybeapplyclonebundle(pullop) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle > if trypullbundlefromurl(repo.ui, repo, url): > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl > bundle2.applybundle(repo, cg, tr, b'clonebundles', url) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle > return processbundle(repo, unbundler, lambda: tr, source=source) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle > processparts(repo, op, unbundler) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts > _processpart(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart > handler(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup > ret = _processchangegroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup > ret = cg.apply(op.repo, tr, source, url, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply > newrevs, newfiles = _addchangegroupfiles( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles > added = fl.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup > return self._revlog.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup > for data in deltas: > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 > is_affected = _is_revision_affected_fast_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner > return _is_revision_affected_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner > has_meta = raw_text.startswith(b'\x01\n') > AttributeError: 'memoryview' object has no attribute 'startswith' > > _______________________________________________ > pypy-dev mailing list > pypy-dev at python.org > https://mail.python.org/mailman/listinfo/pypy-dev -- Pierre-Yves David From matti.picus at gmail.com Mon Oct 18 07:38:44 2021 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 18 Oct 2021 14:38:44 +0300 Subject: [pypy-dev] Problem installing python modules on pypy3 In-Reply-To: References: Message-ID: On 17/10/21 3:36 pm, Kostas Christofakis wrote: > Hello guys, > > I have?a problem installing 2 modules on pypy and contacting you to > find a solution. The issue?is this: > I am trying to pip install the python-binance module and discum module > on pypy3, either with a virtual environment or in pypy folder with > root. In both cases I get errors and the installation fails. That is > what happens on the binance case : > ... > ? ? python/_brotli.cc:2:10: fatal error: Python.h: No such file or > directory > ? ? ? ? 2 | #include > ? ? ? ? ? | ? ? ? ? ?^~~~~~~~~~ > ? ? compilation terminated. > ? ? error: command 'gcc' failed with exit status 1 > ? ? ---------------------------------------- > ERROR: Command errored out with exit status 1: > /root/pypy-venv/bin/pypy3 -u -c 'import io, os, sys, setuptools, > tokenize; sys.argv[0] = > '"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"'; > __file__='"'"'/tmp/pip-install-eqv3vkyi/brotli_4726248b5b3440c6b70b40e51592e1b0/setup.py'"'"';f > = getattr(tokenize, '"'"'open'"'"', open)(__file__) if > os.path.exists(__file__) else io.StringIO('"'"'from setuptools import > setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', > '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' > install --record /tmp/pip-record-dk6qnjak/install-record.txt > --single-version-externally-managed --compile --install-headers > /root/pypy-venv/include/site/python3.7/brotli Check the logs for full > command output. > > *Any suggestions or ways to make pypy compatible with those 2 modules ?* > * > * > *Btw I have python-dev and everything installed, the modules get > installed with pip3.9 and python3.9 commands but not on pyp, when i > try pip3.7 or pip installation i just get the above errors .* > Maybe you got your pypy3 from the one in the debian/ubuntu distro, and did not do "sudo apt install pypy3-dev" (not python3-dev)? Matti From teammember0x01 at gmail.com Mon Oct 18 15:53:31 2021 From: teammember0x01 at gmail.com (M A) Date: Mon, 18 Oct 2021 15:53:31 -0400 Subject: [pypy-dev] Contributing to PyPy In-Reply-To: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> References: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> Message-ID: <194A3194-66E2-4487-8B4D-5FB581608ACA@gmail.com> Hi Pierre-Yves. I tried using 'hg clone https://foss.heptapod.net/pypy/pypy' and saw this error: $ hg clone https://foss.heptapod.net/pypy/pypy destination directory: pypy applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg adding changesets adding manifests adding file changes transaction abort! rollback completed ** unknown exception encountered, please report by visiting ** https://mercurial-scm.org/wiki/BugTracker ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] ** Mercurial Distributed SCM (version 5.9.1) ** Extensions loaded: Traceback (most recent call last): File "/opt/homebrew/bin/hg", line 61, in dispatch.run() File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run status = dispatch(req) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch status = _rundispatch(req) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch ret = _runcatch(req) or 0 File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch return _callcatch(ui, _runcatchfunc) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch return scmutil.callcatch(ui, func) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch return func() File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc return _dispatch(req) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch return runcommand( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand ret = _runcommand(ui, options, cmd, d) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand return cmdfunc() File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check return func(*args, **kwargs) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone r = hg.clone( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone exchange.pull( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull _maybeapplyclonebundle(pullop) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle if trypullbundlefromurl(repo.ui, repo, url): File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl bundle2.applybundle(repo, cg, tr, b'clonebundles', url) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle return processbundle(repo, unbundler, lambda: tr, source=source) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle processparts(repo, op, unbundler) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts _processpart(op, part) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart handler(op, part) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup ret = _processchangegroup( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup ret = cg.apply(op.repo, tr, source, url, **kwargs) File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply newrevs, newfiles = _addchangegroupfiles( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles added = fl.addgroup( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup return self._revlog.addgroup( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup for data in deltas: File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 is_affected = _is_revision_affected_fast_inner( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner return _is_revision_affected_inner( File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner has_meta = raw_text.startswith(b'\x01\n') AttributeError: 'memoryview' object has no attribute 'startswith' > On Oct 18, 2021, at 7:25 AM, Pierre-Yves David wrote: > > Can you try with the latest Mercurial release ? (5.9.2) > > On 9/19/21 7:44 PM, M A wrote: >> Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg? >> >> If you are curious here are the errors I see when I try to clone the repository using hg: >> >> hg clone https://foss.heptapod.net/pypy/pypy >> destination directory: pypy >> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >> adding changesets >> adding manifests >> adding file changes >> transaction abort! >> rollback completed >> ** unknown exception encountered, please report by visiting >> ** https://mercurial-scm.org/wiki/BugTracker >> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >> ** Mercurial Distributed SCM (version 5.9.1) >> ** Extensions loaded: >> Traceback (most recent call last): >> File "/opt/homebrew/bin/hg", line 61, in >> dispatch.run() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >> status = dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >> status = _rundispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >> ret = _runcatch(req) or 0 >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >> return _callcatch(ui, _runcatchfunc) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >> return scmutil.callcatch(ui, func) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >> return func() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >> return _dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >> return runcommand( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >> ret = _runcommand(ui, options, cmd, d) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >> return cmdfunc() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >> return func(*args, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >> r = hg.clone( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >> exchange.pull( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >> _maybeapplyclonebundle(pullop) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >> if trypullbundlefromurl(repo.ui, repo, url): >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >> return processbundle(repo, unbundler, lambda: tr, source=source) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >> processparts(repo, op, unbundler) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >> _processpart(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >> handler(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >> ret = _processchangegroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >> ret = cg.apply(op.repo, tr, source, url, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >> newrevs, newfiles = _addchangegroupfiles( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >> added = fl.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >> return self._revlog.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >> for data in deltas: >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >> is_affected = _is_revision_affected_fast_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >> return _is_revision_affected_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >> has_meta = raw_text.startswith(b'\x01\n') >> AttributeError: 'memoryview' object has no attribute 'startswith' >> >> ** Extensions loaded: >> Traceback (most recent call last): >> File "/opt/homebrew/bin/hg", line 61, in >> dispatch.run() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >> status = dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >> status = _rundispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >> ret = _runcatch(req) or 0 >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >> return _callcatch(ui, _runcatchfunc) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >> return scmutil.callcatch(ui, func) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >> return func() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >> return _dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >> return runcommand( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >> ret = _runcommand(ui, options, cmd, d) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >> return cmdfunc() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >> return func(*args, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >> r = hg.clone( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >> exchange.pull( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >> _maybeapplyclonebundle(pullop) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >> if trypullbundlefromurl(repo.ui, repo, url): >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >> return processbundle(repo, unbundler, lambda: tr, source=source) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >> processparts(repo, op, unbundler) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >> _processpart(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >> handler(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >> ret = _processchangegroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >> ret = cg.apply(op.repo, tr, source, url, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >> newrevs, newfiles = _addchangegroupfiles( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >> added = fl.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >> return self._revlog.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >> for data in deltas: >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >> is_affected = _is_revision_affected_fast_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >> return _is_revision_affected_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >> has_meta = raw_text.startswith(b'\x01\n') >> AttributeError: 'memoryview' object has no attribute 'startswith' >> >> _______________________________________________ >> pypy-dev mailing list >> pypy-dev at python.org >> https://mail.python.org/mailman/listinfo/pypy-dev > > -- > Pierre-Yves David > From pierre-yves.david at octobus.net Mon Oct 18 18:54:05 2021 From: pierre-yves.david at octobus.net (Pierre-Yves David) Date: Tue, 19 Oct 2021 00:54:05 +0200 Subject: [pypy-dev] Contributing to PyPy In-Reply-To: <194A3194-66E2-4487-8B4D-5FB581608ACA@gmail.com> References: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> <194A3194-66E2-4487-8B4D-5FB581608ACA@gmail.com> Message-ID: <49cad133-06d6-f894-5a7f-d2dded823b0b@octobus.net> Yeah this was regression that we fixed today: https://bz.mercurial-scm.org/show_bug.cgi?id=6605 thanks for reporting it. On 10/18/21 9:53 PM, M A wrote: > Hi Pierre-Yves. I tried using 'hg clone https://foss.heptapod.net/pypy/pypy' and saw this error: > > $ hg clone https://foss.heptapod.net/pypy/pypy > destination directory: pypy > applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg > adding changesets > adding manifests > adding file changes > transaction abort! > rollback completed > ** unknown exception encountered, please report by visiting > ** https://mercurial-scm.org/wiki/BugTracker > ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] > ** Mercurial Distributed SCM (version 5.9.1) > ** Extensions loaded: > Traceback (most recent call last): > File "/opt/homebrew/bin/hg", line 61, in > dispatch.run() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run > status = dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch > status = _rundispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch > ret = _runcatch(req) or 0 > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch > return _callcatch(ui, _runcatchfunc) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch > return scmutil.callcatch(ui, func) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch > return func() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc > return _dispatch(req) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch > return runcommand( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand > ret = _runcommand(ui, options, cmd, d) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand > return cmdfunc() > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in > d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check > return func(*args, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone > r = hg.clone( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone > exchange.pull( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull > _maybeapplyclonebundle(pullop) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle > if trypullbundlefromurl(repo.ui, repo, url): > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl > bundle2.applybundle(repo, cg, tr, b'clonebundles', url) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle > return processbundle(repo, unbundler, lambda: tr, source=source) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle > processparts(repo, op, unbundler) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts > _processpart(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart > handler(op, part) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup > ret = _processchangegroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup > ret = cg.apply(op.repo, tr, source, url, **kwargs) > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply > newrevs, newfiles = _addchangegroupfiles( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles > added = fl.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup > return self._revlog.addgroup( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup > for data in deltas: > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 > is_affected = _is_revision_affected_fast_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner > return _is_revision_affected_inner( > File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner > has_meta = raw_text.startswith(b'\x01\n') > AttributeError: 'memoryview' object has no attribute 'startswith' > > >> On Oct 18, 2021, at 7:25 AM, Pierre-Yves David wrote: >> >> Can you try with the latest Mercurial release ? (5.9.2) >> >> On 9/19/21 7:44 PM, M A wrote: >>> Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg? >>> >>> If you are curious here are the errors I see when I try to clone the repository using hg: >>> >>> hg clone https://foss.heptapod.net/pypy/pypy >>> destination directory: pypy >>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >>> adding changesets >>> adding manifests >>> adding file changes >>> transaction abort! >>> rollback completed >>> ** unknown exception encountered, please report by visiting >>> ** https://mercurial-scm.org/wiki/BugTracker >>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >>> ** Mercurial Distributed SCM (version 5.9.1) >>> ** Extensions loaded: >>> Traceback (most recent call last): >>> File "/opt/homebrew/bin/hg", line 61, in >>> dispatch.run() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>> status = dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>> status = _rundispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>> ret = _runcatch(req) or 0 >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>> return _callcatch(ui, _runcatchfunc) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>> return scmutil.callcatch(ui, func) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>> return func() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>> return _dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>> return runcommand( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>> ret = _runcommand(ui, options, cmd, d) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>> return cmdfunc() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>> return func(*args, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>> r = hg.clone( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>> exchange.pull( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>> _maybeapplyclonebundle(pullop) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>> if trypullbundlefromurl(repo.ui, repo, url): >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>> return processbundle(repo, unbundler, lambda: tr, source=source) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>> processparts(repo, op, unbundler) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>> _processpart(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>> handler(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>> ret = _processchangegroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>> newrevs, newfiles = _addchangegroupfiles( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>> added = fl.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>> return self._revlog.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>> for data in deltas: >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>> is_affected = _is_revision_affected_fast_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>> return _is_revision_affected_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>> has_meta = raw_text.startswith(b'\x01\n') >>> AttributeError: 'memoryview' object has no attribute 'startswith' >>> >>> ** Extensions loaded: >>> Traceback (most recent call last): >>> File "/opt/homebrew/bin/hg", line 61, in >>> dispatch.run() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>> status = dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>> status = _rundispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>> ret = _runcatch(req) or 0 >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>> return _callcatch(ui, _runcatchfunc) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>> return scmutil.callcatch(ui, func) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>> return func() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>> return _dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>> return runcommand( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>> ret = _runcommand(ui, options, cmd, d) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>> return cmdfunc() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>> return func(*args, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>> r = hg.clone( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>> exchange.pull( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>> _maybeapplyclonebundle(pullop) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>> if trypullbundlefromurl(repo.ui, repo, url): >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>> return processbundle(repo, unbundler, lambda: tr, source=source) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>> processparts(repo, op, unbundler) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>> _processpart(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>> handler(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>> ret = _processchangegroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>> newrevs, newfiles = _addchangegroupfiles( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>> added = fl.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>> return self._revlog.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>> for data in deltas: >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>> is_affected = _is_revision_affected_fast_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>> return _is_revision_affected_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>> has_meta = raw_text.startswith(b'\x01\n') >>> AttributeError: 'memoryview' object has no attribute 'startswith' >>> >>> _______________________________________________ >>> pypy-dev mailing list >>> pypy-dev at python.org >>> https://mail.python.org/mailman/listinfo/pypy-dev >> -- >> Pierre-Yves David >> -- Pierre-Yves David From teammember0x01 at gmail.com Tue Oct 19 09:11:21 2021 From: teammember0x01 at gmail.com (M A) Date: Tue, 19 Oct 2021 09:11:21 -0400 Subject: [pypy-dev] Contributing to PyPy In-Reply-To: <49cad133-06d6-f894-5a7f-d2dded823b0b@octobus.net> References: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> <194A3194-66E2-4487-8B4D-5FB581608ACA@gmail.com> <49cad133-06d6-f894-5a7f-d2dded823b0b@octobus.net> Message-ID: <30BE1696-5C19-4AB5-8D5E-0ADCC9AE1C3E@gmail.com> It is fixed? I tried using 'hg clone https://foss.heptapod.net/pypy/pypy pypy' again and saw the same error. Is there something else I need to do? > On Oct 18, 2021, at 6:54 PM, Pierre-Yves David wrote: > > Yeah this was regression that we fixed today: https://bz.mercurial-scm.org/show_bug.cgi?id=6605 thanks for reporting it. > > > On 10/18/21 9:53 PM, M A wrote: >> Hi Pierre-Yves. I tried using 'hg clone https://foss.heptapod.net/pypy/pypy' and saw this error: >> >> $ hg clone https://foss.heptapod.net/pypy/pypy >> destination directory: pypy >> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >> adding changesets >> adding manifests >> adding file changes >> transaction abort! >> rollback completed >> ** unknown exception encountered, please report by visiting >> ** https://mercurial-scm.org/wiki/BugTracker >> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >> ** Mercurial Distributed SCM (version 5.9.1) >> ** Extensions loaded: >> Traceback (most recent call last): >> File "/opt/homebrew/bin/hg", line 61, in >> dispatch.run() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >> status = dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >> status = _rundispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >> ret = _runcatch(req) or 0 >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >> return _callcatch(ui, _runcatchfunc) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >> return scmutil.callcatch(ui, func) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >> return func() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >> return _dispatch(req) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >> return runcommand( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >> ret = _runcommand(ui, options, cmd, d) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >> return cmdfunc() >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >> return func(*args, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >> r = hg.clone( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >> exchange.pull( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >> _maybeapplyclonebundle(pullop) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >> if trypullbundlefromurl(repo.ui, repo, url): >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >> return processbundle(repo, unbundler, lambda: tr, source=source) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >> processparts(repo, op, unbundler) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >> _processpart(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >> handler(op, part) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >> ret = _processchangegroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >> ret = cg.apply(op.repo, tr, source, url, **kwargs) >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >> newrevs, newfiles = _addchangegroupfiles( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >> added = fl.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >> return self._revlog.addgroup( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >> for data in deltas: >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >> is_affected = _is_revision_affected_fast_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >> return _is_revision_affected_inner( >> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >> has_meta = raw_text.startswith(b'\x01\n') >> AttributeError: 'memoryview' object has no attribute 'startswith' >> >> >>> On Oct 18, 2021, at 7:25 AM, Pierre-Yves David wrote: >>> >>> Can you try with the latest Mercurial release ? (5.9.2) >>> >>> On 9/19/21 7:44 PM, M A wrote: >>>> Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg? >>>> >>>> If you are curious here are the errors I see when I try to clone the repository using hg: >>>> >>>> hg clone https://foss.heptapod.net/pypy/pypy >>>> destination directory: pypy >>>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >>>> adding changesets >>>> adding manifests >>>> adding file changes >>>> transaction abort! >>>> rollback completed >>>> ** unknown exception encountered, please report by visiting >>>> ** https://mercurial-scm.org/wiki/BugTracker >>>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >>>> ** Mercurial Distributed SCM (version 5.9.1) >>>> ** Extensions loaded: >>>> Traceback (most recent call last): >>>> File "/opt/homebrew/bin/hg", line 61, in >>>> dispatch.run() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>>> status = dispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>>> status = _rundispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>>> ret = _runcatch(req) or 0 >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>>> return _callcatch(ui, _runcatchfunc) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>>> return scmutil.callcatch(ui, func) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>>> return func() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>>> return _dispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>>> return runcommand( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>>> ret = _runcommand(ui, options, cmd, d) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>>> return cmdfunc() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>>> return func(*args, **kwargs) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>>> r = hg.clone( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>>> exchange.pull( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>>> _maybeapplyclonebundle(pullop) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>>> if trypullbundlefromurl(repo.ui, repo, url): >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>>> return processbundle(repo, unbundler, lambda: tr, source=source) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>>> processparts(repo, op, unbundler) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>>> _processpart(op, part) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>>> handler(op, part) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>>> ret = _processchangegroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>>> newrevs, newfiles = _addchangegroupfiles( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>>> added = fl.addgroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>>> return self._revlog.addgroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>>> for data in deltas: >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>>> is_affected = _is_revision_affected_fast_inner( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>>> return _is_revision_affected_inner( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>>> has_meta = raw_text.startswith(b'\x01\n') >>>> AttributeError: 'memoryview' object has no attribute 'startswith' >>>> >>>> ** Extensions loaded: >>>> Traceback (most recent call last): >>>> File "/opt/homebrew/bin/hg", line 61, in >>>> dispatch.run() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>>> status = dispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>>> status = _rundispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>>> ret = _runcatch(req) or 0 >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>>> return _callcatch(ui, _runcatchfunc) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>>> return scmutil.callcatch(ui, func) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>>> return func() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>>> return _dispatch(req) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>>> return runcommand( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>>> ret = _runcommand(ui, options, cmd, d) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>>> return cmdfunc() >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>>> return func(*args, **kwargs) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>>> r = hg.clone( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>>> exchange.pull( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>>> _maybeapplyclonebundle(pullop) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>>> if trypullbundlefromurl(repo.ui, repo, url): >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>>> return processbundle(repo, unbundler, lambda: tr, source=source) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>>> processparts(repo, op, unbundler) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>>> _processpart(op, part) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>>> handler(op, part) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>>> ret = _processchangegroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>>> newrevs, newfiles = _addchangegroupfiles( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>>> added = fl.addgroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>>> return self._revlog.addgroup( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>>> for data in deltas: >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>>> is_affected = _is_revision_affected_fast_inner( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>>> return _is_revision_affected_inner( >>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>>> has_meta = raw_text.startswith(b'\x01\n') >>>> AttributeError: 'memoryview' object has no attribute 'startswith' >>>> >>>> _______________________________________________ >>>> pypy-dev mailing list >>>> pypy-dev at python.org >>>> https://mail.python.org/mailman/listinfo/pypy-dev >>> -- >>> Pierre-Yves David >>> > -- > Pierre-Yves David > From pierre-yves.david at octobus.net Tue Oct 19 12:29:18 2021 From: pierre-yves.david at octobus.net (Pierre-Yves David) Date: Tue, 19 Oct 2021 18:29:18 +0200 Subject: [pypy-dev] Contributing to PyPy In-Reply-To: <30BE1696-5C19-4AB5-8D5E-0ADCC9AE1C3E@gmail.com> References: <89f0653b-bbb9-d235-fcf4-7a21011bc17d@octobus.net> <194A3194-66E2-4487-8B4D-5FB581608ACA@gmail.com> <49cad133-06d6-f894-5a7f-d2dded823b0b@octobus.net> <30BE1696-5C19-4AB5-8D5E-0ADCC9AE1C3E@gmail.com> Message-ID: This will be fixed in the coming release of Mercurial, version 6.0. This is a client side issue. In the meantime you can work around the issue by adding `--config storage.revlog.issue6528.fix-incoming=False` to you clone call. On 10/19/21 3:11 PM, M A wrote: > It is fixed? I tried using 'hg clone https://foss.heptapod.net/pypy/pypy pypy' again and saw the same error. Is there something else I need to do? > >> On Oct 18, 2021, at 6:54 PM, Pierre-Yves David wrote: >> >> Yeah this was regression that we fixed today: https://bz.mercurial-scm.org/show_bug.cgi?id=6605 thanks for reporting it. >> >> >> On 10/18/21 9:53 PM, M A wrote: >>> Hi Pierre-Yves. I tried using 'hg clone https://foss.heptapod.net/pypy/pypy' and saw this error: >>> >>> $ hg clone https://foss.heptapod.net/pypy/pypy >>> destination directory: pypy >>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >>> adding changesets >>> adding manifests >>> adding file changes >>> transaction abort! >>> rollback completed >>> ** unknown exception encountered, please report by visiting >>> ** https://mercurial-scm.org/wiki/BugTracker >>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >>> ** Mercurial Distributed SCM (version 5.9.1) >>> ** Extensions loaded: >>> Traceback (most recent call last): >>> File "/opt/homebrew/bin/hg", line 61, in >>> dispatch.run() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>> status = dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>> status = _rundispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>> ret = _runcatch(req) or 0 >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>> return _callcatch(ui, _runcatchfunc) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>> return scmutil.callcatch(ui, func) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>> return func() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>> return _dispatch(req) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>> return runcommand( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>> ret = _runcommand(ui, options, cmd, d) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>> return cmdfunc() >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>> return func(*args, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>> r = hg.clone( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>> exchange.pull( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>> _maybeapplyclonebundle(pullop) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>> if trypullbundlefromurl(repo.ui, repo, url): >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>> return processbundle(repo, unbundler, lambda: tr, source=source) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>> processparts(repo, op, unbundler) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>> _processpart(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>> handler(op, part) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>> ret = _processchangegroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>> newrevs, newfiles = _addchangegroupfiles( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>> added = fl.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>> return self._revlog.addgroup( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>> for data in deltas: >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>> is_affected = _is_revision_affected_fast_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>> return _is_revision_affected_inner( >>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>> has_meta = raw_text.startswith(b'\x01\n') >>> AttributeError: 'memoryview' object has no attribute 'startswith' >>> >>> >>>> On Oct 18, 2021, at 7:25 AM, Pierre-Yves David wrote: >>>> >>>> Can you try with the latest Mercurial release ? (5.9.2) >>>> >>>> On 9/19/21 7:44 PM, M A wrote: >>>>> Hi I am interested in contributing to PyPy. I tried to clone the source code repository using hg but saw errors. I then found this git repo: https://github.com/mozillazg/pypy. I was actually able to clone it successfully. Could someone still contribute to PyPy using git instead of hg? >>>>> >>>>> If you are curious here are the errors I see when I try to clone the repository using hg: >>>>> >>>>> hg clone https://foss.heptapod.net/pypy/pypy >>>>> destination directory: pypy >>>>> applying clone bundle from https://cellar-c2.services.clever-cloud.com/heptapod-foss-clonebundles/pypy/pypy-2020-02-12-13-12-optimized-zstd-v2.hg >>>>> adding changesets >>>>> adding manifests >>>>> adding file changes >>>>> transaction abort! >>>>> rollback completed >>>>> ** unknown exception encountered, please report by visiting >>>>> ** https://mercurial-scm.org/wiki/BugTracker >>>>> ** Python 3.9.7 (default, Sep 3 2021, 04:31:11) [Clang 12.0.5 (clang-1205.0.22.9)] >>>>> ** Mercurial Distributed SCM (version 5.9.1) >>>>> ** Extensions loaded: >>>>> Traceback (most recent call last): >>>>> File "/opt/homebrew/bin/hg", line 61, in >>>>> dispatch.run() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>>>> status = dispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>>>> status = _rundispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>>>> ret = _runcatch(req) or 0 >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>>>> return _callcatch(ui, _runcatchfunc) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>>>> return scmutil.callcatch(ui, func) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>>>> return func() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>>>> return _dispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>>>> return runcommand( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>>>> ret = _runcommand(ui, options, cmd, d) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>>>> return cmdfunc() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>>>> return func(*args, **kwargs) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>>>> r = hg.clone( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>>>> exchange.pull( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>>>> _maybeapplyclonebundle(pullop) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>>>> if trypullbundlefromurl(repo.ui, repo, url): >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>>>> return processbundle(repo, unbundler, lambda: tr, source=source) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>>>> processparts(repo, op, unbundler) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>>>> _processpart(op, part) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>>>> handler(op, part) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>>>> ret = _processchangegroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>>>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>>>> newrevs, newfiles = _addchangegroupfiles( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>>>> added = fl.addgroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>>>> return self._revlog.addgroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>>>> for data in deltas: >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>>>> is_affected = _is_revision_affected_fast_inner( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>>>> return _is_revision_affected_inner( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>>>> has_meta = raw_text.startswith(b'\x01\n') >>>>> AttributeError: 'memoryview' object has no attribute 'startswith' >>>>> >>>>> ** Extensions loaded: >>>>> Traceback (most recent call last): >>>>> File "/opt/homebrew/bin/hg", line 61, in >>>>> dispatch.run() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 144, in run >>>>> status = dispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 250, in dispatch >>>>> status = _rundispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 294, in _rundispatch >>>>> ret = _runcatch(req) or 0 >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 470, in _runcatch >>>>> return _callcatch(ui, _runcatchfunc) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 480, in _callcatch >>>>> return scmutil.callcatch(ui, func) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/scmutil.py", line 153, in callcatch >>>>> return func() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 460, in _runcatchfunc >>>>> return _dispatch(req) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1273, in _dispatch >>>>> return runcommand( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 918, in runcommand >>>>> ret = _runcommand(ui, options, cmd, d) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1285, in _runcommand >>>>> return cmdfunc() >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/dispatch.py", line 1271, in >>>>> d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/util.py", line 1886, in check >>>>> return func(*args, **kwargs) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/commands.py", line 1955, in clone >>>>> r = hg.clone( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/hg.py", line 942, in clone >>>>> exchange.pull( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 1668, in pull >>>>> _maybeapplyclonebundle(pullop) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2779, in _maybeapplyclonebundle >>>>> if trypullbundlefromurl(repo.ui, repo, url): >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/exchange.py", line 2810, in trypullbundlefromurl >>>>> bundle2.applybundle(repo, cg, tr, b'clonebundles', url) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 375, in applybundle >>>>> return processbundle(repo, unbundler, lambda: tr, source=source) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 486, in processbundle >>>>> processparts(repo, op, unbundler) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 494, in processparts >>>>> _processpart(op, part) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 568, in _processpart >>>>> handler(op, part) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 2025, in handlechangegroup >>>>> ret = _processchangegroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/bundle2.py", line 498, in _processchangegroup >>>>> ret = cg.apply(op.repo, tr, source, url, **kwargs) >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 444, in apply >>>>> newrevs, newfiles = _addchangegroupfiles( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/changegroup.py", line 1946, in _addchangegroupfiles >>>>> added = fl.addgroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/filelog.py", line 168, in addgroup >>>>> return self._revlog.addgroup( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlog.py", line 2620, in addgroup >>>>> for data in deltas: >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 783, in filter_delta_issue6528 >>>>> is_affected = _is_revision_affected_fast_inner( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 649, in _is_revision_affected_fast_inner >>>>> return _is_revision_affected_inner( >>>>> File "/opt/homebrew/Cellar/mercurial/5.9.1/lib/python3.9/site-packages/mercurial/revlogutils/rewrite.py", line 592, in _is_revision_affected_inner >>>>> has_meta = raw_text.startswith(b'\x01\n') >>>>> AttributeError: 'memoryview' object has no attribute 'startswith' >>>>> >>>>> _______________________________________________ >>>>> pypy-dev mailing list >>>>> pypy-dev at python.org >>>>> https://mail.python.org/mailman/listinfo/pypy-dev >>>> -- >>>> Pierre-Yves David >>>> >> -- >> Pierre-Yves David >> -- Pierre-Yves David From teammember0x01 at gmail.com Tue Oct 19 14:47:08 2021 From: teammember0x01 at gmail.com (M A) Date: Tue, 19 Oct 2021 14:47:08 -0400 Subject: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory() Message-ID: Hi, I'm trying to call a C function from the asmmemmgr.py:_copy_to_raw_memory() function now. I tried following an example for malloc() and used llexternal() to make the call work. Here is what I tried: from rpython.translator.tool.cbuild import ExternalCompilationInfo info = ExternalCompilationInfo(includes=["pthread.h"]) write_protect = rffi.llexternal("pthread_jit_write_protect_np", [lltype.Bool], lltype.Void) This results in this error: [translation:ERROR] Exception: A function calling locals() is not RPython. Note that if you're translating code outside the PyPy repository, a likely cause is that py.test's --assert=rewrite mode is getting in the way. You should copy the file pytest.ini from the root of the PyPy repository into your own project. What am I doing wrong? From armin.rigo at gmail.com Wed Oct 20 04:07:48 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Wed, 20 Oct 2021 10:07:48 +0200 Subject: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory() In-Reply-To: References: Message-ID: Hi, On Tue, 19 Oct 2021 at 20:47, M A wrote: > [translation:ERROR] Exception: A function calling locals() is not RPython. Note that if you're translating code outside the PyPy repository, a likely cause is that py.test's --assert=rewrite mode is getting in the way. You should copy the file pytest.ini from the root of the PyPy repository into your own project. Hard to know for sure, but maybe you've put these lines inside a function that is getting translated? Put them at module level instead. Also note that rffi.llexternal() probably needs an argument to tell it not to release the GIL. This is necessary in the backend because there are some assumptions that this code generation and patching is atomic. If you forget, you should get another clean error, though. In this case the safest is to say ``rffi.llexternal(..., _nowrapper=True)``. A bient?t, Armin. From matti.picus at gmail.com Sun Oct 24 07:50:02 2021 From: matti.picus at gmail.com (Matti Picus) Date: Sun, 24 Oct 2021 14:50:02 +0300 Subject: [pypy-dev] What to call the latest pypy3.8 release? Message-ID: I broke C-ABI compatibility with the latest 7.3.6 release of PyPy. Also this is hard to talk about since we have python3.7 and pypy7.3.6 (soon to be pypy7.3.7). For 3.7 (probably the last fully supported release, only security and large bug fixes planned), I will back out the C-ABI breakage so that existing pp37-pypy73 binary wheels will continue working and make a 7.3.7 release, see the abi-compat branch. I am not sure how to progress with the python3.8 branch, under the assumption that there will not be another 3.7 release. On the one hand, purists would argue "we changed the ABI, we need to increment the version to 7.4.0". On the other hand, since this is the first release of python3.8, the wheel tag will become pp38-pypy73 which is unambiguous, so we could just leave the pypy version 7.3.x until we break ABI compatibility with 7.3.6. Opinions? We should decide soon since packagers will begin releasing wheels/distros soon. Matti From mgorny at gentoo.org Sun Oct 24 07:59:26 2021 From: mgorny at gentoo.org (=?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=) Date: Sun, 24 Oct 2021 13:59:26 +0200 Subject: [pypy-dev] What to call the latest pypy3.8 release? In-Reply-To: References: Message-ID: On Sun, 2021-10-24 at 14:50 +0300, Matti Picus wrote: > I broke C-ABI compatibility with the latest 7.3.6 release of PyPy. Also > this is hard to talk about since we have python3.7 and pypy7.3.6 (soon > to be pypy7.3.7). > > For 3.7 (probably the last fully supported release, only security and > large bug fixes planned), I will back out the C-ABI breakage so that > existing pp37-pypy73 binary wheels will continue working and make a > 7.3.7 release, see the abi-compat branch. > > I am not sure how to progress with the python3.8 branch, under the > assumption that there will not be another 3.7 release. On the one hand, > purists would argue "we changed the ABI, we need to increment the > version to 7.4.0". On the other hand, since this is the first release of > python3.8, the wheel tag will become pp38-pypy73 which is unambiguous, > so we could just leave the pypy version 7.3.x until we break ABI > compatibility with 7.3.6. > > Opinions? We should decide soon since packagers will begin releasing > wheels/distros soon. > Well, Gentoo has deployed PyPy3.8 a week ago, so the train has left for us already. We'd prefer to stay with the current ABI tag, as otherwise our users would have to rebuild everything again (and they've just started rebuilding things because of upgrade to PyPy3.8). -- Best regards, Micha? G?rny From matti.picus at gmail.com Mon Oct 25 14:26:17 2021 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 25 Oct 2021 21:26:17 +0300 Subject: [pypy-dev] PyPy 7.3.7 bugfix release Message-ID: I mistakenly added fields to the middle of PyDateTimeAPI and PyFrameObject between the 7.3.5 release and the 7.3.6 release. This broke the promise of ABI compatibility between all the 7.3.x releases for the python 3.7 version. Python 3.8 had a different problem connected with the values of INCLUDEPY and LIBDIR in _sysconfidata that led to cases of inability to build c-extension modules. I have released PyPy 7.3.7 to fix these issues. I have also extended the weekly testing in https://github.com/pypy/binary-testing which hopefully will catch ABI breakage before a release. Please do not use the 7.3.6 releases. Sorry for the trouble, Matti From teammember0x01 at gmail.com Wed Oct 27 14:09:21 2021 From: teammember0x01 at gmail.com (M A) Date: Wed, 27 Oct 2021 14:09:21 -0400 Subject: [pypy-dev] Instruction 320 Message-ID: <771E5495-0029-4393-B394-29F31931DC19@gmail.com> Hi, would anyone know what instruction/opcode 320 does? I'm in the file pyopcode.py tracing a problem to dispatch_bytecode(). The problem I have encountered happens when next_instr and self.last_instr are both equal to 320. I have tried looking at the file opcode.py. There was no mention of 320 anywhere. Any hints or help would be great. Thank you. From teammember0x01 at gmail.com Wed Oct 27 18:27:47 2021 From: teammember0x01 at gmail.com (M A) Date: Wed, 27 Oct 2021 18:27:47 -0400 Subject: [pypy-dev] Instruction 320 References: Message-ID: <8C849E54-AFA1-4BDD-A69F-098A61DF2325@gmail.com> That could be it. If that is the case how would I take apart the argument from the opcode? >> On Oct 27, 2021, at 2:41 PM, Timothy Baldridge wrote: >> >> Aren't all opcodes a single byte in length? Are you maybe combining >> the opcode argument with the opcode? >> >> On Wed, Oct 27, 2021 at 12:09 PM M A wrote: >>> >>> Hi, would anyone know what instruction/opcode 320 does? I'm in the file pyopcode.py tracing a problem to dispatch_bytecode(). The problem I have encountered happens when next_instr and self.last_instr are both equal to 320. I have tried looking at the file opcode.py. There was no mention of 320 anywhere. Any hints or help would be great. >>> >>> Thank you. >>> _______________________________________________ >>> pypy-dev mailing list >>> pypy-dev at python.org >>> https://mail.python.org/mailman/listinfo/pypy-dev >> >> >> >> -- >> ?One of the main causes of the fall of the Roman Empire was >> that?lacking zero?they had no way to indicate successful termination >> of their C programs.? >> (Robert Firth) > From armin.rigo at gmail.com Thu Oct 28 02:22:10 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Thu, 28 Oct 2021 08:22:10 +0200 Subject: [pypy-dev] Instruction 320 In-Reply-To: <8C849E54-AFA1-4BDD-A69F-098A61DF2325@gmail.com> References: <8C849E54-AFA1-4BDD-A69F-098A61DF2325@gmail.com> Message-ID: Hi, On Thu, 28 Oct 2021 at 00:28, M A wrote: > That could be it. If that is the case how would I take apart the argument from the opcode? On recent Python 3 versions each instruction is two bytes in length, the lower byte being the opcode and the higher byte being a (possibly always zero) argument. The value 320 is equal to opcode 64 and higher byte 1. Armin From armin.rigo at gmail.com Thu Oct 28 02:29:29 2021 From: armin.rigo at gmail.com (Armin Rigo) Date: Thu, 28 Oct 2021 08:29:29 +0200 Subject: [pypy-dev] Instruction 320 In-Reply-To: <771E5495-0029-4393-B394-29F31931DC19@gmail.com> References: <771E5495-0029-4393-B394-29F31931DC19@gmail.com> Message-ID: Hi, On Wed, 27 Oct 2021 at 20:09, M A wrote: > Hi, would anyone know what instruction/opcode 320 does? I'm in the file pyopcode.py tracing a problem to dispatch_bytecode(). The problem I have encountered happens when next_instr and self.last_instr are both equal to 320. I have tried looking at the file opcode.py. There was no mention of 320 anywhere. Any hints or help would be great. `next_instr` is not the instruction itself, it is the offset inside your bytecode string... Armin