You can clone with
HTTPS or Subversion.
What steps will reproduce the problem?
cd examples && python .
What is the expected output? What do you see instead?
Expected: pyjamas-0.7 like example output with a short compilation OK message. Instead I get an AttributeError from translating sys.py (see attached)
Mac OS X Snow Leopard 10.6.8 Intel/i386 running python-2.7.2 from macports. Problem also happens in python-2.6.7 from macports package.
I'm a newbie to pyjamas but have expert knowledge of python and other stuff. I was expecting my first git clone to work out of the box instead of having to fall back to 0.7. Maybe someone could point this out in the tutorial (if the problem's not my system).
Original issue: http://code.google.com/p/pyjamas/issues/detail?id=677 (January 11, 2012 18:44:50)
From yangofz...@gmail.com on January 12, 2012 23:14:15:
OK - 35e802c
bad - 271a8aa
Note: git clone before checkout or else some stale *.pyc or cached files may not cause this problem to appear.
From yangofz...@gmail.com on January 13, 2012 00:01:23:
$ git show 271a8aa
Author: Kees Bos email@example.com
Date: Thu Mar 3 15:30:35 2011 +0100
Fix from issue #556 : CanvasProcessing.py does not compile
Thanks to Gabriel Jacobo
diff --git a/pyjs/src/pyjs/linker.py b/pyjs/src/pyjs/linker.py
index 2cbe44a..4b8ea48 100644
@@ -107,7 +107,7 @@ def out_translate(platform, file_names, out_file, module_name,
opts = ["--module-name", module_name,
"-o", out_file.replace(" ", r"\ "),
] + get_translator_opts(translator_args) + file_names
From yangofz...@gmail.com on January 13, 2012 00:04:52:
This line is causing the error:
From yangofz...@gmail.com on January 13, 2012 01:23:42:
Using the compiler from 35e802c avoids the error, but then there's other errors during Translation.
From cornelis...@gmail.com on January 13, 2012 12:58:44:
What I don't onderstand (from the first log) is
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 80, in makepath
dir = os.path.join(*paths)
AttributeError: 'module' object has no attribute 'path'
How can the 'os' module not have 'path', while at the top of the file os.path is used without throwing errors.