Re: [pypy-dev] Interactive fails on pypy

2011-06-10 Thread Paolo Basso
> Why do you have such a pythonpath, btw? I have no idea... However I removed the PYTHONPATH and now everything works fine, thanks. P 2011/6/10 Antonio Cuni > On 10/06/11 18:32, Paolo Basso wrote: > > PYTHONPATH > > > > C:\Python26\DLLs;C:\Python26\Lib;C:\Python26\Lib\site-packages; > > this i

Re: [pypy-dev] Interactive fails on pypy

2011-06-10 Thread Antonio Cuni
On 10/06/11 18:32, Paolo Basso wrote: > PYTHONPATH > > C:\Python26\DLLs;C:\Python26\Lib;C:\Python26\Lib\site-packages; this is the problem. You are explicitly telling pypy to import modules from cpython's stdlib. Why do you have such a pythonpath, btw? It's not needed, CPython can determine its

Re: [pypy-dev] Interactive fails on pypy

2011-06-10 Thread Paolo Basso
sys.path da pypy: ['', 'C:\\Python26\\DLLs', 'C:\\Python26\\Lib', 'C:\\Python26\\Lib\\site-package s', 'C:\\PyPy\\pypy-1.5.0a0-win32', 'C:\\PyPy\\pypy-1.5.0a0-win32\\lib_pypy', 'C :\\PyPy\\pypy-1.5.0a0-win32\\lib-python\\modified-2.7', 'C:\\PyPy\\pypy-1.5.0a0- win32\\lib-python\\2.7', 'C:\\PyPy\\p

Re: [pypy-dev] Interactive fails on pypy

2011-06-10 Thread Antonio Cuni
On 10/06/11 18:00, Paolo Basso wrote: > Ok, I solved the problem, the patch works great (thanks Thomas) but the > problem was a conflict with the python 2.6 library from which the readline.py > module was loaded. Is it normal that it happens or it a problem of my > configuration? uhm, it seems tha

Re: [pypy-dev] Interactive fails on pypy

2011-06-10 Thread Paolo Basso
Ok, I solved the problem, the patch works great (thanks Thomas) but the problem was a conflict with the python 2.6 library from which the readline.py module was loaded. Is it normal that it happens or it a problem of my configuration? I solved by using the sys.path.insert(0, "path of the pypy_lib

Re: [pypy-dev] Interactive fails on pypy

2011-06-09 Thread Paolo Basso
Thanks for your help, I tryed to add the patch but still have the same problem... Attached are the msvcrt module as I modified it and the code I tryed to run. P 2011/6/8 Amaury Forgeot d'Arc > Hi, > > 2011/6/8 Paolo Basso : > > if msvcrt.kbhit(): > > AttributeError: 'module' object has no attr

Re: [pypy-dev] Interactive fails on pypy

2011-06-09 Thread Amaury Forgeot d'Arc
Hi, 2011/6/9 Paolo Basso : > Thanks for the patch, is there a nightly build of pypy 1.5 somewhere or I > have to build it myself from updated source? In this second case is there a > "tutorial" on how to build the source? Unfortunately we cannot build win32 versions at the moment. Translating pyp

Re: [pypy-dev] Interactive fails on pypy

2011-06-09 Thread Paolo Basso
Thanks for the patch, is there a nightly build of pypy 1.5 somewhere or I have to build it myself from updated source? In this second case is there a "tutorial" on how to build the source? Thanks, P P.S. I look forward to attend the pypy sprint in Genoa at the end of this month, at least I can l

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Amaury Forgeot d'Arc
2011/6/8 Thomas Heller : > Well, comtypes doesn't work with pypy, but it uses some really deep > things from ctypes that is implemented differently in pypy.  Maybe > I can fix that ;-) A few years ago I did implement many things for comtypes. I went to the point where it could generate Python wrap

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Thomas Heller
Am 08.06.2011 18:28, schrieb Amaury Forgeot d'Arc: Hello Thomas! 2011/6/8 Thomas Heller: +putwch.argtypes = [ctypes.c_char] It's probably a c_wchar here... Sure, sorry for that. > Still working with ctypes? ;-) > With ctypes - yes, of course. It's the foundation of some frameworks that

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Amaury Forgeot d'Arc
Hello Thomas! Still working with ctypes? ;-) 2011/6/8 Thomas Heller : > +putwch.argtypes = [ctypes.c_char] It's probably a c_wchar here... Otherwise it looks good! -- Amaury Forgeot d'Arc ___ pypy-dev mailing list pypy-dev@python.org http://mail.pyth

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Thomas Heller
Am 08.06.2011 11:27, schrieb Paolo Basso: Yep... Are there plans to implement the missing functions? Thanks, P 2011/6/8 Caleb Hattingh mailto:caleb.hatti...@gmail.com>> On 8 June 2011 11:15, Paolo Basso mailto:pa.ba...@gmail.com>> wrote: I tryed to run the attached code with pypy b

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Amaury Forgeot d'Arc
Hi, 2011/6/8 Paolo Basso : > if msvcrt.kbhit(): > AttributeError: 'module' object has no attribute 'kbhit' The msvcrt module is implemented in pure Python (in pypy_lib/msvcrt.py) This function seems easy to add. Patches are welcome! -- Amaury Forgeot d'Arc __

Re: [pypy-dev] Interactive fails on pypy

2011-06-08 Thread Paolo Basso
Yep... Are there plans to implement the missing functions? Thanks, P 2011/6/8 Caleb Hattingh > On 8 June 2011 11:15, Paolo Basso wrote: > >> I tryed to run the attached code with pypy but it fails (it works >> correctly with python 2.6). >> Can anybody tell me why? Thanks. >> > > Error is this

[pypy-dev] Interactive fails on pypy

2011-06-08 Thread Paolo Basso
Hi, I tryed to run the attached code with pypy but it fails (it works correctly with python 2.6). Can anybody tell me why? Thanks. P Interactive.py Description: Binary data ___ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/l