On Tue, Mar 20, 2012 at 11:51 AM, Peter Cock <p.j.a.c...@googlemail.com> wrote: > Hi all, > > After a teething error with PyPy calling GCC with unescaped paths, > which I solved by moving to a directory without spaces in the full > path, I made some progress. > > ... > > $ python translate.py --run targetreallynopstandalone.py > ... > [translation:info] Running compiled c source... > [Timer] Timings: > [Timer] annotate --- 1.5 s > [Timer] rtype_lltype --- 0.2 s > [Timer] backendopt_lltype --- 0.1 s > [Timer] stackcheckinsertion_lltype --- 0.0 s > [Timer] database_c --- 13.9 s > [Timer] source_c --- 2.3 s > [Timer] compile_c --- 1.3 s > [Timer] run_c --- 0.0 s > [Timer] ========================================= > [Timer] Total: --- 19.4 s > [translation:ERROR] Error: > [translation:ERROR] Traceback (most recent call last): > [translation:ERROR] File "translate.py", line 309, in main > [translation:ERROR] drv.proceed(goals) > [translation:ERROR] File > "/Users/pjcock/pypy-hg/pypy/translator/driver.py", line 810, in > proceed > [translation:ERROR] return self._execute(goals, task_skip = > self._maybe_skip()) > [translation:ERROR] File > "/Users/pjcock/pypy-hg/pypy/translator/tool/taskengine.py", line 116, > in _execute > [translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds) > [translation:ERROR] File > "/Users/pjcock/pypy-hg/pypy/translator/driver.py", line 287, in _do > [translation:ERROR] res = func() > [translation:ERROR] File > "/Users/pjcock/pypy-hg/pypy/translator/driver.py", line 594, in > task_run_c > [translation:ERROR] self.backend_run('c') > [translation:ERROR] File > "/Users/pjcock/pypy-hg/pypy/translator/driver.py", line 588, in > backend_run > [translation:ERROR] os.system(c_entryp) > [translation:ERROR] TypeError: system() argument 1 must be string, > not LocalPath > [translation] start debugger... >> /Users/pjcock/pypy-hg/pypy/translator/driver.py(588)backend_run() > -> os.system(c_entryp) > (Pdb+) > > This looks like a string versus path object error. The same happens > with the default branch, 53817:62902925695c
Sorry - I forgot to include the OS details, this is under Mac OS X 10.6.8 (Intel 64bit CPU) using the Apple provided Python 2.6, $ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> If I explicitly call Python 2.5, the same error occurs: $ python2.5 translate.py --run targetreallynopstandalone.py Peter _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev