
Hello all, Excellent documentation at: http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#downloading-run... Alas, when I execute python pypy/bin/py.py from C:\pypy-0.9.0 on XP I get: C:\pypy-0.9.0>python pypy/bin/py.py Traceback (most recent call last): File "pypy/bin/py.py", line 207, in <module> sys.exit(main_(sys.argv)) File "pypy/bin/py.py", line 78, in main_ space = make_objspace(Options) File "pypy/bin/py.py", line 66, in make_objspace compiler = cmdlineopt.compiler, File "C:\pypy-0.9.0\pypy\interpreter\baseobjspace.py", line 164, in __init__ self.initialize() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 98, in initialize w_mod = self.setup_exceptions() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 219, in setup_exceptions mod, w_dic = self.create_builtin_module('_exceptions.py', 'exceptions') File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 164, in create_builtin_module w_dic = PyPyCacheDir.build_applevelinterp_dict(fake, self) File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 840, in build_applevelinterp_dict cls._setup() File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 895, in _setup p = lp(pypy.__file__).new(basename='_cache').ensure(dir=1) File "C:\pypy-0.9.0\py\path\local\local.py", line 276, in ensure return p._ensuredirs() File "C:\pypy-0.9.0\py\path\local\local.py", line 265, in _ensuredirs if self.check(dir=0): File "C:\pypy-0.9.0\py\path\common.py", line 102, in check return self.Checkers(self)._evaluate(kw) File "C:\pypy-0.9.0\py\path\common.py", line 75, in _evaluate if bool(value) ^ bool(meth()) ^ invert: File "C:\pypy-0.9.0\py\path\local\local.py", line 35, in dir return stat.S_ISDIR(self._stat().mode) File "C:\pypy-0.9.0\py\path\local\local.py", line 29, in _stat self._statcache = self.path.stat() File "C:\pypy-0.9.0\py\path\local\local.py", line 285, in stat stat = self._callex(os.stat, self.strpath) File "C:\pypy-0.9.0\py\path\common.py", line 205, in _callex return func(*args) WindowsError: [Error 2] The system cannot find the file specified: 'C:\\pypy-0.9.0\\pypy\\_cache' Any help getting started would be appreciated. Thanks. Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------

it seems to be a bug on py.path... it seems to be doing stat caches... strange, maybe you can just coment out the stat caching for win32. Just so you know I never worked with py lib internals... just giving my 2 cents. -- Leonardo Santagada (http://www.lomohomes.com/retype)

"Leonardo Santagada" <santagada@gmail.com> writes:
it seems to be a bug on py.path... it seems to be doing stat caches... strange, maybe you can just coment out the stat caching for win32.
Earth pinging Fijal...
Just so you know I never worked with py lib internals... just giving my 2 cents.
It makes some sense. I was confused for a while because Ed mentioned that he was using pypy-0.9.0... but of course, even if you check out the 0.9.0 tag (Ed, is this what you did?), you get the trunk py lib, because of the way svn:externals work. I guess the release procedures should include doing something about that, like svn cp-ing a particular snapshot of the py lib into the tag. Cheers, mwh -- 42. You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN. -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html

Hi, I also noticed this problem, but when I used python 2.4 instead of 2.5problem disappeared. On 11/29/06, Edward K. Ream <edreamleo@charter.net> wrote:
Hello all,
Excellent documentation at:
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#downloading-run...
Alas, when I execute python pypy/bin/py.py from C:\pypy-0.9.0 on XP I get:
C:\pypy-0.9.0>python pypy/bin/py.py Traceback (most recent call last): File "pypy/bin/py.py", line 207, in <module> sys.exit(main_(sys.argv)) File "pypy/bin/py.py", line 78, in main_ space = make_objspace(Options) File "pypy/bin/py.py", line 66, in make_objspace compiler = cmdlineopt.compiler, File "C:\pypy-0.9.0\pypy\interpreter\baseobjspace.py", line 164, in __init__ self.initialize() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 98, in initialize w_mod = self.setup_exceptions() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 219, in setup_exceptions mod, w_dic = self.create_builtin_module('_exceptions.py', 'exceptions') File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 164, in create_builtin_module w_dic = PyPyCacheDir.build_applevelinterp_dict(fake, self) File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 840, in build_applevelinterp_dict cls._setup() File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 895, in _setup p = lp(pypy.__file__).new(basename='_cache').ensure(dir=1) File "C:\pypy-0.9.0\py\path\local\local.py", line 276, in ensure return p._ensuredirs() File "C:\pypy-0.9.0\py\path\local\local.py", line 265, in _ensuredirs if self.check(dir=0): File "C:\pypy-0.9.0\py\path\common.py", line 102, in check return self.Checkers(self)._evaluate(kw) File "C:\pypy-0.9.0\py\path\common.py", line 75, in _evaluate if bool(value) ^ bool(meth()) ^ invert: File "C:\pypy-0.9.0\py\path\local\local.py", line 35, in dir return stat.S_ISDIR(self._stat().mode) File "C:\pypy-0.9.0\py\path\local\local.py", line 29, in _stat self._statcache = self.path.stat() File "C:\pypy-0.9.0\py\path\local\local.py", line 285, in stat stat = self._callex(os.stat, self.strpath) File "C:\pypy-0.9.0\py\path\common.py", line 205, in _callex return func(*args) WindowsError: [Error 2] The system cannot find the file specified: 'C:\\pypy-0.9.0\\pypy\\_cache'
Any help getting started would be appreciated. Thanks.
Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev

On Wed, Nov 29, 2006 at 12:59 +0300, Alexander Shafranov wrote:
Hi,
I also noticed this problem, but when I used python 2.4 instead of 2.5problem disappeared.
hum, let me note that i think the problem has to do with Windows Error conversions, see the somewhat icky _callex() function in py/path/common.py. Fixing this probably is easier with having an XP box and Python 2.5 around (thanks Alexander for pointing to it!). best, holger
On 11/29/06, Edward K. Ream <edreamleo@charter.net> wrote:
Hello all,
Excellent documentation at:
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#downloading-run...
Alas, when I execute python pypy/bin/py.py from C:\pypy-0.9.0 on XP I get:
C:\pypy-0.9.0>python pypy/bin/py.py Traceback (most recent call last): File "pypy/bin/py.py", line 207, in <module> sys.exit(main_(sys.argv)) File "pypy/bin/py.py", line 78, in main_ space = make_objspace(Options) File "pypy/bin/py.py", line 66, in make_objspace compiler = cmdlineopt.compiler, File "C:\pypy-0.9.0\pypy\interpreter\baseobjspace.py", line 164, in __init__ self.initialize() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 98, in initialize w_mod = self.setup_exceptions() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 219, in setup_exceptions mod, w_dic = self.create_builtin_module('_exceptions.py', 'exceptions') File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 164, in create_builtin_module w_dic = PyPyCacheDir.build_applevelinterp_dict(fake, self) File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 840, in build_applevelinterp_dict cls._setup() File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 895, in _setup p = lp(pypy.__file__).new(basename='_cache').ensure(dir=1) File "C:\pypy-0.9.0\py\path\local\local.py", line 276, in ensure return p._ensuredirs() File "C:\pypy-0.9.0\py\path\local\local.py", line 265, in _ensuredirs if self.check(dir=0): File "C:\pypy-0.9.0\py\path\common.py", line 102, in check return self.Checkers(self)._evaluate(kw) File "C:\pypy-0.9.0\py\path\common.py", line 75, in _evaluate if bool(value) ^ bool(meth()) ^ invert: File "C:\pypy-0.9.0\py\path\local\local.py", line 35, in dir return stat.S_ISDIR(self._stat().mode) File "C:\pypy-0.9.0\py\path\local\local.py", line 29, in _stat self._statcache = self.path.stat() File "C:\pypy-0.9.0\py\path\local\local.py", line 285, in stat stat = self._callex(os.stat, self.strpath) File "C:\pypy-0.9.0\py\path\common.py", line 205, in _callex return func(*args) WindowsError: [Error 2] The system cannot find the file specified: 'C:\\pypy-0.9.0\\pypy\\_cache'
Any help getting started would be appreciated. Thanks.
Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
-- merlinux GmbH Steinbergstr. 42 31139 Hildesheim http://merlinux.de tel +49 5121 20800 75 (fax 77)

Hm, With 2.5 on XP box: D:\Tools\pypy\pypy-0.9.0\py\path>py.test inserting into sys.path: D:\Tools\pypy\pypy-0.9.0 Traceback (most recent call last): File "D:\Tools\pypy\pypy-0.9.0\py\bin\win32\\..\py.test", line 4, in <module> py.test.cmdline.main() File "D:\Tools\pypy\pypy-0.9.0\py\test\cmdline.py", line 13, in main config, args = py.test.Config.parse(args) File "D:\Tools\pypy\pypy-0.9.0\py\initpkg.py", line 180, in __getattr__ result = self.__package__._resolve(extpy) File "D:\Tools\pypy\pypy-0.9.0\py\initpkg.py", line 68, in _resolve implmodule = self._loadimpl(fspath[:-3]) File "D:\Tools\pypy\pypy-0.9.0\py\initpkg.py", line 98, in _loadimpl return __import__(modpath, None, None, ['__doc__']) File "D:\Tools\pypy\pypy-0.9.0\py\test\config.py", line 6, in <module> defaultconfig = py.magic.autopath().dirpath('defaultconftest.py') File "D:\Tools\pypy\pypy-0.9.0\py\magic\autopath.py", line 32, in autopath if basefile in current: File "D:\Tools\pypy\pypy-0.9.0\py\path\common.py", line 110, in __contains__ return self.join(other).check() File "D:\Tools\pypy\pypy-0.9.0\py\path\common.py", line 102, in check return self.Checkers(self)._evaluate(kw) File "D:\Tools\pypy\pypy-0.9.0\py\path\common.py", line 75, in _evaluate if bool(value) ^ bool(meth()) ^ invert: File "D:\Tools\pypy\pypy-0.9.0\py\path\local\local.py", line 41, in exists return self._stat() File "D:\Tools\pypy\pypy-0.9.0\py\path\local\local.py", line 29, in _stat self._statcache = self.path.stat() File "D:\Tools\pypy\pypy-0.9.0\py\path\local\local.py", line 285, in stat stat = self._callex(os.stat, self.strpath) File "D:\Tools\pypy\pypy-0.9.0\py\path\common.py", line 205, in _callex return func(*args) WindowsError: [Error 2] The system cannot find the file specified: 'D:\\Tools\\pypy\\pypy-0.9.0\\__init__.py' On 11/29/06, holger krekel <hpk@trillke.net> wrote:
On Wed, Nov 29, 2006 at 12:59 +0300, Alexander Shafranov wrote:
Hi,
I also noticed this problem, but when I used python 2.4 instead of 2.5problem disappeared.
hum, let me note that i think the problem has to do with Windows Error conversions, see the somewhat icky _callex() function in py/path/common.py. Fixing this probably is easier with having an XP box and Python 2.5 around (thanks Alexander for pointing to it!).
best,
holger
On 11/29/06, Edward K. Ream <edreamleo@charter.net> wrote:
Hello all,
Excellent documentation at:
http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#downloading-run...
Alas, when I execute python pypy/bin/py.py from C:\pypy-0.9.0 on XP I get:
C:\pypy-0.9.0>python pypy/bin/py.py Traceback (most recent call last): File "pypy/bin/py.py", line 207, in <module> sys.exit(main_(sys.argv)) File "pypy/bin/py.py", line 78, in main_ space = make_objspace(Options) File "pypy/bin/py.py", line 66, in make_objspace compiler = cmdlineopt.compiler, File "C:\pypy-0.9.0\pypy\interpreter\baseobjspace.py", line 164, in __init__ self.initialize() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 98, in initialize w_mod = self.setup_exceptions() File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 219, in setup_exceptions mod, w_dic = self.create_builtin_module('_exceptions.py', 'exceptions') File "C:\pypy-0.9.0\pypy\objspace\std\objspace.py", line 164, in create_builtin_module w_dic = PyPyCacheDir.build_applevelinterp_dict(fake, self) File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 840, in build_applevelinterp_dict cls._setup() File "C:\pypy-0.9.0\pypy\interpreter\gateway.py", line 895, in _setup p = lp(pypy.__file__).new(basename='_cache').ensure(dir=1) File "C:\pypy-0.9.0\py\path\local\local.py", line 276, in ensure return p._ensuredirs() File "C:\pypy-0.9.0\py\path\local\local.py", line 265, in _ensuredirs if self.check(dir=0): File "C:\pypy-0.9.0\py\path\common.py", line 102, in check return self.Checkers(self)._evaluate(kw) File "C:\pypy-0.9.0\py\path\common.py", line 75, in _evaluate if bool(value) ^ bool(meth()) ^ invert: File "C:\pypy-0.9.0\py\path\local\local.py", line 35, in dir return stat.S_ISDIR(self._stat().mode) File "C:\pypy-0.9.0\py\path\local\local.py", line 29, in _stat self._statcache = self.path.stat() File "C:\pypy-0.9.0\py\path\local\local.py", line 285, in stat stat = self._callex(os.stat, self.strpath) File "C:\pypy-0.9.0\py\path\common.py", line 205, in _callex return func(*args) WindowsError: [Error 2] The system cannot find the file specified: 'C:\\pypy-0.9.0\\pypy\\_cache'
Any help getting started would be appreciated. Thanks.
Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev
-- merlinux GmbH Steinbergstr. 42 31139 Hildesheim http://merlinux.de tel +49 5121 20800 75 (fax 77)

Hi Alexander, On Wed, Nov 29, 2006 at 01:28:25PM +0300, Alexander Shafranov wrote:
With 2.5 on XP box:
There are many details that are known not to work with Python 2.5. We fixed some since the 0.9 release, but there might be some left. You should use Python 2.4, or try your luck with PyPy's HEAD revision. A bientot, Armin

You should use Python 2.4
Yes, that works. BTW, I think the getting started page is about the clearest, best such page I have ever seen. I look forward to playing with pypy and to meeting you all at the next sprint, whenever/wherever that will be. pypy looks like the most interesting computer language project in the world today. Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------

pypy looks like the most interesting computer language project in the world today.
I also agree. Paul On 11/29/06, Edward K. Ream <edreamleo@charter.net> wrote:
You should use Python 2.4
Yes, that works. BTW, I think the getting started page is about the clearest, best such page I have ever seen.
I look forward to playing with pypy and to meeting you all at the next sprint, whenever/wherever that will be. pypy looks like the most interesting computer language project in the world today.
Edward -------------------------------------------------------------------- Edward K. Ream email: edreamleo@charter.net Leo: http://webpages.charter.net/edreamleo/front.html --------------------------------------------------------------------
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev

On 11/29/06, Edward K. Ream <edreamleo@charter.net> wrote:
I look forward to playing with pypy and to meeting you all at the next sprint, whenever/wherever that will be. pypy looks like the most interesting computer language project in the world today.
You wrote Leo? I would really like if you could teach it to me on the switzerland sprint (that is, if I went there) :-). One more great mind on the project, welcome aboard. -- Leonardo Santagada (http://www.lomohomes.com/retype) Não se preocupe com o que os outros vão fazer. O melhor jeito de prever o futuro é inventa-lo. - Alan Kay
participants (7)
-
Alexander Shafranov
-
Armin Rigo
-
Edward K. Ream
-
hpk@trillke.net
-
Leonardo Santagada
-
Michael Hudson
-
Paul deGrandis