From: Michael <mic...@gm...> - 2009-11-02 17:45:33
|
I downloaded it off the Jython.org site and select standalone installation. I grab that .jar file, and put it in the lib folder of my project in Eclipse (on the build path), and then try to run that script with the python interpreter, but it always barfs. I'm running Ubuntu 8.10. The script also works fine when I run it with Jython outside of Eclipse. Because it seems like the error got chopped off in my posting from what someone else said I'll post it again: 'Execution failed. Traceback (most recent call last): File "<string>", line 1, in <module> File "../lib/python/threading.py", line 6, in <module> import traceback File "../lib/python/traceback.py", line 3, in <module> import linecache File "../lib/python/linecache.py", line 9, in <module> import os File "../lib/python/os.py", line 132, in <module> from os.path import curdir, pardir, sep, pathsep, defpath, extsep, altsep, devnull ImportError: cannot import name curdir' Daniel Baktiar wrote: > Hi Mike, > > Could you elaborate more on how you get the Jython installation, and > how do you invoke Jython? > The script works perfectly on my Jython 2.5.0 installation. > > Regards, > Daniel > > 2009/10/31 Michael <mic...@gm... > <mailto:mic...@gm...>> > > Thanks, but the problem still persists... > > josu jugo wrote: > > Hi Michael > > > > You need to change the next sentence > > > > t = threading.Timer(2.0, hello) > > > > Regards > > > > josu > > > > > > On 2009 urr 29, at 22:12, Michael wrote: > > > >> import threading > >> def hello(): > >> print "hello, world" > >> t = Timer(2.0, hello) > >> t.start() > >> print "hello" > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to market > and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Jython-users mailing list > Jyt...@li... > <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users > > > > > -- > Daniel Baktiar - JEEwish & Pythoneer > (http://dbaktiar.wordpress.com) |