[pypy-dev] Memory error when importing optparse module

Roman Prykhodchenko romcheg.prihod at gmail.com
Sun Nov 21 13:31:59 CET 2010


I have already built it myself. I got lots of errors and warnings during the build process and as a result I have pypy-c that doesn't work.
May be that was caused by --opt=jit on my x64 platform.
Will try to go with --opt=2 a bit later and report you the result.


- Roman




On Nov 21, 2010, at 2:20 PM, Maciej Fijalkowski wrote:

> I guess the first thing would be to build pypy svn yourself instead of
> using 1.3 and see if it helps
> 
> On Sat, Nov 20, 2010 at 9:20 PM, Roman Prykhodchenko
> <romcheg.prihod at gmail.com> wrote:
>> I built the executable using macports (port install pypy).
>> My python is 64 bit.
>> 
>> I can help you to find the bug if you help me to help you.
>> 
>> 
>> - Roman
>> 
>> On Nov 20, 2010, at 10:09 AM, Maciej Fijalkowski wrote:
>> 
>>> Hey.
>>> 
>>> Unfortunately we don't have a full-time OS X developer and it makes it
>>> harder for this platform to be fully spported. Is your python 32bit or
>>> 64bit? How did you build that executable?
>>> 
>>> On Fri, Nov 19, 2010 at 9:46 PM, Roman Prykhodchenko
>>> <romcheg.prihod at gmail.com> wrote:
>>>> Hi guys,
>>>> 
>>>> 
>>>> I'm trying to port my scripts to pypy but when I import the optparse module I get the error:
>>>> 
>>>>>>>> import optparse
>>>> Traceback (most recent call last):
>>>>  File "<console>", line 1, in <module>
>>>>  File "/opt/local/share/pypy-1.3/lib-python/2.5.2/optparse.py", line 84, in <module>
>>>>   from gettext import gettext
>>>>  File "/opt/local/share/pypy-1.3/lib-python/modified-2.5.2/gettext.py", line 49, in <module>
>>>>   import locale, copy, os, re, struct, sys
>>>>  File "/opt/local/share/pypy-1.3/lib-python/modified-2.5.2/locale.py", line 30, in <module>
>>>>   from _locale import *
>>>>  File "/opt/local/share/pypy-1.3/pypy/lib/_locale.py", line 6, in <module>
>>>>   from ctypes import (Structure, POINTER, create_string_buffer,
>>>>  File "/opt/local/share/pypy-1.3/lib-python/modified-2.5.2/ctypes/__init__.py", line 489, in <module>
>>>>   _cast = PYFUNCTYPE(py_object, c_void_p, py_object, py_object)(_cast_addr)
>>>>  File "/opt/local/share/pypy-1.3/pypy/lib/_ctypes/function.py", line 104, in __init__
>>>>   ffiargs, ffires, self._flags_)
>>>> MemoryError
>>>> 
>>>> 
>>>> OS: Mac OS Snow Leopard 10.6.5
>>>> 
>>>> I tried to sign up your bugtracker to report a bug but the registration is broken  -- I got  the error message when I was trying to confirm my registration.
>>>> My login is prykhodchenko
>>>> 
>>>> 
>>>> ---
>>>> Roman Prykhodchenko
>>>> _______________________________________________
>>>> pypy-dev at codespeak.net
>>>> http://codespeak.net/mailman/listinfo/pypy-dev
>>>> 
>> 
>> 




More information about the Pypy-dev mailing list