
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)