Hi,
Thanks for your help, I tried the code with ply-3.0 (works fine with
python :).
Unfortunately when running with jython the error remains:
File "/Users/nl/jython2.5b2/Lib/site-packages/ply/yacc.py", line
1821, in read_table
parsetab = __import__(module)
java.lang.ClassFormatError: Invalid method Code length 1068688 in
class file xsparql/parsetab$py
regards,
--
Nuno Lopes
On 13 Mar 2009, at 16:00, Andrew Dalke wrote:
>
>>> exec "import %s as parsetab" % module
>>> File "<string>", line 1, in <module>
>>> java.lang.ClassFormatError: Invalid method Code length 1068688 in
>
>
> The relevant code is
>
> if sys.version_info[0] < 3:
> exec("import %s as parsetab" % module)
> else:
> env = { }
> exec("import %s as parsetab" % module, env, env)
> parsetab = env['parsetab']
>
> I'm not using jython so I can't test this, but try changing that code
> to
>
> parsetab = __import__(module)
>
> Andrew
> [email protected]
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ply-hack" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ply-hack?hl=en
-~----------~----~----~----~------~----~------~--~---