[pypy-dev] Failed to translate interpreter to JIT on Windows

Olli Wang olliwang at ollix.com
Wed Dec 23 07:46:14 CET 2009


Hi, though the pypy-c-jit interpreter has been compiled successfully, but I
found a new problem. That is, I couldn't import any module in the
`pypy.rlib` package. Any idea?

Here's the test running pypy-c, and everything works fine:
$ ./pypy/translator/goal/pypy-c.exe
Python 2.5.2 (70148, Dec 21 2009, 03:51:26)
[PyPy 1.1.0] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``things will be nice and
stuff''
>>>> import pypy.rlib
>>>> pypy.rlib
<module 'pypy.rlib' from
'C:\\cygwin\\home\\olliwang\\pypy-trunk\\pypy\\rlib\\__
init__.py'>
>>>> from pypy.rlib import rmd5
>>>>

Here's the test running pypy-c-jit, and importing failed:
$ ./pypy/translator/goal/pypy-c-jit.exe
'import site' failed
Python 2.5.2 (70227, Dec 23 2009, 00:01:42)
[PyPy 1.1.0] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>> import pypy.rlib
>>>> pypy.rlib
<module 'pypy.rlib' from
'C:\\cygwin\\home\\olliwang\\pypy-trunk\\pypy\\rlib\\__
init__.py'>
>>>> from pypy.rlib import rmd5
Traceback (most recent call last):
  File "<console>", line 1, in <module>
ImportError: cannot import name 'rmd5'
>>>>

On Wed, Dec 23, 2009 at 1:13 PM, Olli Wang <olliwang at ollix.com> wrote:

> Hi, remove spaces in directory name works! Thanks a lot. :)
>
> On Wed, Dec 23, 2009 at 1:11 AM, Amaury Forgeot d'Arc <amauryfa at gmail.com>wrote:
>
>> Hello,
>>
>> 2009/12/21 Olli Wang <olliwang at ollix.com>:
>> > Hi, I was trying to translate Python interpreter to JIT backend on
>> WIndows
>> > but failed.
>> > It's no problem to translate it to C backend. Do I miss something?
>> Thanks.
>> > [c:writing] implement_40.c
>> > [c:writing] implement_41.c
>> > [c:writing] implement_42.c
>> > [translation:info] written:
>> > c:\docume~1\olliwa~1\locals~1\temp\usession-26\testi
>> > ng_1\testing_1.c
>> > [translation:info] Compiling c source...
>> > [platform:execute] make in
>> > c:\docume~1\olliwa~1\locals~1\temp\usession-26\testin
>> > g_1
>> > [platform:ERROR] cl : Command line warning D9024 : unrecognized source
>> file
>> > type
>> >  'Wang\\pypy-trunk\\pypy\\translator\\c', object file assumed
>> > [platform:ERROR] cl : Command line warning D9027 : source file
>> > 'Wang\\pypy-trunk
>> > \\pypy\\translator\\c' ignored
>>
>> I suggest that you use a directory wihout spaces in its name...
>>
>> --
>> Amaury Forgeot d'Arc
>>
>
>
>
> --
> Olli Wang
>
> OLLI WANG PRODUCTIONS - http://olliwang.com
> A BLOG ABOUT MY LIFE AND MY WORK
>



-- 
Olli Wang

OLLI WANG PRODUCTIONS - http://olliwang.com
A BLOG ABOUT MY LIFE AND MY WORK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20091223/32bbc486/attachment.html>


More information about the Pypy-dev mailing list