hi,

this is indeed strange, as this no particularly unusual code line, and i
never heard anyone reporting problems with it. which python version do
you use? can you please make sure that everything from
"UNICODE_CATEGORY_Zs =" to the final "'''" is on a single line. does
your editor do automatic line breaking?!

t.

On 06/02/2010 03:13 PM, cr4yv3n wrote:
> 
> Hello qooxdoo people,
> 
>         I'm fairly new to this project and I must say it looks nice.
> However, I'm having trouble with even the most basic usage. I tried
> searching the mailing-list/forum first, but I was unable to find a post with
> a question similar to mine (strangely enough). Anyways, while I have used
> python in the past, I'm not much of an expert with unicode string literals
> in the language to say the least. When I tried to run the Hello World
> example on my Vista machine, I keep getting an error about the syntax of the
> unicode string at the end of \tool\pylib\ecmascript\frontend\lang.py being
> incorrect. I tried running the command about 4 different ways after making
> changes to the quotes from '''   ''' to just " " as well as changing the ur
> prefix to just u. Still, didn't seem to help much. Anyway, here's what I got
> on my console window:
> 
> 
> 
> 
> 
> C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\bin>python
> cre
> ate-application.py --name=custom --out=C:
> Traceback (most recent call last):
>   File "create-application.py", line 27, in <module>
>     from ecmascript.frontend import lang
>   File
> "C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\pylib\
> ecmascript\frontend\lang.py", line 284
>     UNICODE_CATEGORY_Zs =
> ur'''(?u)[\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u
> 2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000]'''
> 
>                                                              ^
> SyntaxError: invalid syntax
> 
> C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\bin>python
> cre
> ate-application.py --name=custom --out=C:
> Traceback (most recent call last):
>   File "create-application.py", line 27, in <module>
>     from ecmascript.frontend import lang
>   File
> "C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\pylib\
> ecmascript\frontend\lang.py", line 284
>     UNICODE_CATEGORY_Zs =
> ur"(?u)[\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u20
> 04\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000]"
> 
>                                                          ^
> SyntaxError: invalid syntax
> 
> C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\bin>python
> cre
> ate-application.py --name=custom --out=C:
> Traceback (most recent call last):
>   File "create-application.py", line 27, in <module>
>     from ecmascript.frontend import lang
>   File
> "C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\pylib\
> ecmascript\frontend\lang.py", line 284
>     UNICODE_CATEGORY_Zs =
> u"(?u)[\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u200
> 4\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000]"
> 
>                                                         ^
> SyntaxError: invalid syntax
> 
> C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\bin>create-app
> lication.py --name=custom --out=C:
> Traceback (most recent call last):
>   File
> "C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\bin\cr
> eate-application.py", line 27, in <module>
>     from ecmascript.frontend import lang
>   File
> "C:\Users\zak.hoskins\Desktop\qooxdoo-1.1-sdk\qooxdoo-1.1-sdk\tool\pylib\
> ecmascript\frontend\lang.py", line 284
>     UNICODE_CATEGORY_Zs =
> ur'''(?u)[\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u
> 2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000]'''
> 
>                                                              ^
> SyntaxError: invalid syntax
> 
> 
> Anyone have an idea how to fix this? I'm lost. Thanks in advance for all
> replies.

------------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to