Ingrid,
I suppose you are still using your old "generate.py" script, which
hasn't changed since you created the app. Either get a current one, or
invoke the generator.py program directly (that's what generate.py is for):
a) invoke directly in your app directory:
/opt/Python-2.6.6/bin/python
/opt/qooxdoo-1.4.1-sdk/tool/bin/generator.py migration
b) get a current one:
E.g. create a new skeleton with 'create-application.py -n testapp',
then cd testapp and copy the generate.py to your original app.
The problem that I see behind is that, although you invoke 'generate.py'
with your Python 2.6 python, generate.py itself does nothing but calling
.../qooxdoo-1.4.1-sdk/tool/bin/generator.py in a sub-process. But this
second call uses your standard 'python' command, as it is found in the
search path, and this is again the old pre-2.5 python.
Newer versions of 'generate.py' fix this problem by re-using the python
executable they were called with for the sub-process call.
HTH,
T.
On 07/06/2011 02:16 PM, Ingrid Lohmann wrote:
> Hi thron7 Hi all,
>
> ...and sorry
> I checked several python versions without success.
> In a corresponding Python-Shell to each version I made sure
> that Python was able to process ternary operators.
>
> But still the command
>
> "/opt/Python-2.6.6/bin/python generate.py migration"
>
> says:
>
> Traceback (most recent call last):
> File "/opt/qooxdoo-1.4.1-sdk/tool/bin/generator.py", line 27, in ?
> from generator.Generator import Generator
> File "/opt/qooxdoo-1.4.1-sdk/tool/pylib/generator/Generator.py", line 1175
> relstring = "Uses" if type == "using" else "Used by"
>
> is it maybe because 'type' is also a function ?
>
> I would be grateful for help one more time...
>
> regards,
>
> Ingrid
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel