From: <bc...@wo...> - 2000-12-29 22:37:17
|
[L. Humbert] >ok I'm working on Linux and on MacOS. >I installed the latest jython 2.0a3 on both machines: > >Linux: >Jython 2.0alpha3 on java1.2.2 (JIT: sunwjit) >MacOS: >Jython 2.0alpha3 on java1.1.8 (JIT: MRJ22Jitc.01) > >A little project in training the presentation of some >xml-data which describe the layout of computer-infrastructure at work >(the first steps were done with Python2.0). My students didn't have the >time to implement, so I gave it a try on jython: >xmllib is part of the actual jython-distribution. > >Here begins my problem: >on my linux-machine everything works fine. > >But after shifting the runable-source-code to the Mac I get some strange >errors. >After I found out that most of them could be eliminated, because I >did'nt set the path in the right way, >one serious error is still remaining: > >Error around line 505 of xmllib.py >Ok, I gave it a try >pure >xmllib --> jython 2.0a3 >invalid syntax, line 508 >ok I decided to import xmllib at the command line >sre_parse.py line 504 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Jython 2.0alpha3 on java1.1.8 (JIT: MRJ22Jitc.01) >Type "copyright", "credits" or "license" for more information. >>>> import xmllib >Traceback (innermost last): > File "<console>", line 1, in ? > File "/brecht/Systemordner/Preferences/jython-2.0a3/Lib/xmllib.py", >line 5, in ? > File "/brecht/Systemordner/Preferences/jython-2.0a3/Lib/re.py", line >28, in ? > File "/brecht/Systemordner/Preferences/jython-2.0a3/Lib/sre.py", line >20, in ? > File "/brecht/Systemordner/Preferences/jython-2.0a3/Lib/sre_parse.py", >line 504 >SyntaxError: inconsistent dedent >>>> > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >As workaround, I set the sys.path so, that the Python2.0 Libs where >used. >The same effect appears. > >Perhaps there is someone out there, who is able to check it on a Mac, >too. > >The problems doesn't arrive on my Linux-System. I strongly suspect that there is a bug in the JVM for mac. Previously we have seen other problems with the MRJ22 jvm: http://www.geocrawler.com/archives/3/7018/2000/10/0/4557089/ If anyone have a workaround for these problems, I would dearly love to include it. Unfortunately I don't have a neither a Mac nor any knowledge on how to use it. regards, finn |