[pypy-dev] Crash starting pypy on XP

holger krekel hpk at trillke.net
Wed Nov 29 11:03:06 CET 2006


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 at charter.net> wrote:
> >
> >Hello all,
> >
> >Excellent documentation at:
> >
> >
> >http://codespeak.net/pypy/dist/pypy/doc/getting-started.html#downloading-running-the-pypy-0-9-release
> >
> >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 at charter.net
> >Leo: http://webpages.charter.net/edreamleo/front.html
> >--------------------------------------------------------------------
> >
> >
> >
> >_______________________________________________
> >pypy-dev at codespeak.net
> >http://codespeak.net/mailman/listinfo/pypy-dev
> >

> _______________________________________________
> pypy-dev at 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) 



More information about the Pypy-dev mailing list