You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: D-Man <ds...@ri...> - 2001-04-13 19:17:14
|
On Fri, Apr 13, 2001 at 06:43:24PM +0000, Finn Bock wrote: | [D-Man] ... | >./run.bash Main.py | >Traceback (innermost last): | > File "Main.py", line 33, in ? | > File "SessionTests\__init__.py", line 25, in ? | >java.lang.NullPointerException | >... | | The stacktrace is gone in 2.1a1 ... Ok. ... | >I just checked against CPython and found this: | > | >>>> def foo( ): | >... del dne | >... | >>>> foo() | >Traceback (most recent call last): | > File "<stdin>", line 1, in ? | > File "<stdin>", line 2, in foo | >UnboundLocalError: Local variable 'dne' referenced before assignment | | .. but 2.1a1 still doesn't work as CPython. I have made a bugreport | about this. Ok. Happy debugging :-). -D |
From: <bc...@wo...> - 2001-04-13 18:53:48
|
[Uncle Roastie] >I inherited a simulator written in Jython. >My role is to add functionality and to clean it up. >I was having some confusion conceptually at first, >and people on this list pointed me in the right direction. >(I'm getting to the topic of this note slowly.) > >The simulator is using Python threads (ala Jython), not >Java threads. I have learned that most of my initial >conceptual confusion stemmed from one issue: >Jython is Python in terms of syntax, but Jython >is Java in terms of system behavior. > >It seems to me that any Jython threading should be done using >Java threads, not Python threads. That switch should remove the >odd behavior I'm observing. > >What do you say? What is the odd behavior? Maybe we can explain it so it no longer seems odd. regards, finn |
From: <bc...@wo...> - 2001-04-13 18:46:45
|
[D-Man] > >Through a small piece of stupid code, I found a bug in the Jython 2.0 >compiler. > >In a function (in a class, in a module if it matters) I had the >following code : > > del some_var > >Originally some_var existed (a temporary local), but though some >modifications some_var no longer existed. Trying to run the app >yielded the following (partial) result : > >./run.bash Main.py >Traceback (innermost last): > File "Main.py", line 33, in ? > File "SessionTests\__init__.py", line 25, in ? >java.lang.NullPointerException >... The stacktrace is gone in 2.1a1 ... >Obviously the error was on my part (can't del a var that DNE), but the >compiler should give a more informative error message (;-)). Maybe it >should wait and give a NameError during exection, since it is possible >that I created the name through exec() or something. (I didn't use >any fancy dynamism in this case) > >I just checked against CPython and found this: > >>>> def foo( ): >... del dne >... >>>> foo() >Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "<stdin>", line 2, in foo >UnboundLocalError: Local variable 'dne' referenced before assignment .. but 2.1a1 still doesn't work as CPython. I have made a bugreport about this. regards, finn |
From: D-Man <ds...@ri...> - 2001-04-12 18:12:05
|
On Thu, Apr 12, 2001 at 09:01:00AM -0500, Nick Collier wrote: | Java provides an API for dealing with jar files in the java.util.jar | package. Perhaps using this API would allow you to accompilsh what you | are trying to do. They are only part java 1.2 though. I tried this API already. It basically allows you to create a new jar, then rename it to overwrite the old one. This doesn't work in my case because the jar file I want to overwrite is in use by the jvm. The rename fails, at least on windows. This is why I use a RandomAccessFile instead. -D |
From: Sarwar R. <raz...@ya...> - 2001-04-12 14:29:53
|
Hello all.. someone already started this thread a while back.. is there any support for the profile module in jython? I've been trying the following: import profile profile.run("discover()", discoverStats) but it always bombs out at the import. Thanks Sarwar ===== ************************* Sarwar S Raza NMS Software Engineer CommWorks Corporation http://www.wpi.edu/~sraza ************************* __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
From: Nick C. <ni...@sr...> - 2001-04-12 13:59:25
|
Java provides an API for dealing with jar files in the java.util.jar package. Perhaps using this API would allow you to accompilsh what you are trying to do. They are only part java 1.2 though. Nick On Wed, Apr 11, 2001 at 07:11:42PM -0400, D-Man wrote: > On Wed, Apr 11, 2001 at 03:04:51PM -0700, Daniel Lord wrote: > | Maybe I am missing somethign here and I certainly don't know the details of > | what you are doing nor what your are trying to accomplish, but I thiink > | circumventing the security model for Jython/Java is an ugly, uncreative, and > | dangerous way to do anything. You should rethink the security mechanism > | implementation to somehow include the key in the pre-jar code and then jar > | it up so the check sum is correct. Or use another type of file in the > | CLASSPATH since the JVM doesn't need to read it and it's just a key why are > | you jaring it at all? > > The product consists of an SDK and a runtime. For "Trial" versions > the user will enter a key provided by the sales team into the SDK. > The SDK needs to save the key somehow. Normal jar creation doesn't > work because (at least on windows) renaming the new temp jar to the > proper name fails -- the VM is using the file already. My solution is > to look through the CLASSPATH to find the proper jar (the path to it) > and open it as a RandomAccessFile. Then I walk through the jar until > I find the spot I want and read/write the key as binary data. The > idea is to have the key stored in the (runtime) jar file so the > potential customer can try out the runtime. I already tried putting > it in a file in the user's home directory, but that didn't work -- > some potential customers are using windows and each vm has it's own > idea of what the "home" directory is ; some other users were on Unix > and used one account in the lab for development and a different one > for deployment. > > The VM doesn't need that particular file, but putting it anywhere but > in the jar seems pretty messy. > > The security that this mechanism is supposed to provide is simply to > prevent people from stealing the product without purchasing a license. > Of course, any really determined person will step through the > execution and hack around it. > > I hope this clears up what I was looking for. > > -D > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users -- Nick Collier Social Science Research Computing University of Chicago http://repast.sourceforge.net |
From: Gosth <st...@ka...> - 2001-04-12 10:05:43
|
Hi Jythoneers, I'm experiencing some troubles with the events dispatching in this very first jython-test. After the selection of the Look & Feel change and the selection of another item in the Preferences menu , I'm not able to access the Look & Feel Menu again. Could anyone help me?? TIA Stefano from pawt import swing import java.awt.event message=swing.JTextField(50) class GUI: def __init__(self): frame=swing.JFrame("Python Editor",visible=1,windowClosing=self.doExit) menuBar=swing.JMenuBar() menuFile=swing.JMenu("File") menuFileExit=swing.JMenuItem("Exit",java.awt.event.KeyEvent.VK_E,actionPerfo rmed=self.doExit) menuFile.add(menuFileExit) menuPreferences=swing.JMenu("Preferences") menuLookandFeel=swing.JMenu("Look&Feel") menuLookandFeelMetal=swing.JRadioButtonMenuItem("Metal Look&Feel",actionPerformed=self.doLookandFeel) menuLookandFeelWindows=swing.JRadioButtonMenuItem("Windows Look&Feel",selected=1,actionPerformed=self.doLookandFeel) buttonGroupLookandFeel=swing.ButtonGroup() buttonGroupLookandFeel.add(menuLookandFeelMetal) buttonGroupLookandFeel.add(menuLookandFeelWindows) menuPreferencesBackground=swing.JMenuItem("Background",actionPerformed=self. refreshText) menuPreferencesForeground=swing.JMenuItem("Foreground",actionPerformed=self. refreshText) menuPreferencesFont=swing.JMenuItem("Font",actionPerformed=self.refreshText) menuLookandFeel.add(menuLookandFeelMetal) menuLookandFeel.add(menuLookandFeelWindows) menuPreferences.add(menuLookandFeel) menuPreferences.add(menuPreferencesBackground) menuPreferences.add(menuPreferencesForeground) menuPreferences.add(menuPreferencesFont) menuBar.add(menuFile) menuBar.add(menuPreferences) frame.setJMenuBar(menuBar) panel=swing.JPanel() panel.add(message) frame.contentPane.add(panel) frame.pack() def refreshText(self,event): message.setText(event.getSource().getText()) def doExit(self,event): import sys sys.exit(0) def doLookandFeel(self,event): lef = event.getActionCommand() metalLF= swing.plaf.metal.MetalLookAndFeel() windowsLF= swing.plaf.windows.WindowsLookAndFeel() try: if lef=="Windows Look&Feel": swing.UIManager.setLookAndFeel(windowsLF) #swing.SwingUtilities.updateComponentTreeUI(self) elif lef == "Metal Look&Feel": swing.UIManager.setLookAndFeel(metalLF) #swing.SwingUtilities.updateComponentTreeUI(GUI) #else: # swing.UIManager.setLookAndFeel(motifLF) finally: message.setText("Look & Feel modified") GUI() |
From: D-Man <ds...@ri...> - 2001-04-11 23:12:44
|
On Wed, Apr 11, 2001 at 03:04:51PM -0700, Daniel Lord wrote: | Maybe I am missing somethign here and I certainly don't know the details of | what you are doing nor what your are trying to accomplish, but I thiink | circumventing the security model for Jython/Java is an ugly, uncreative, and | dangerous way to do anything. You should rethink the security mechanism | implementation to somehow include the key in the pre-jar code and then jar | it up so the check sum is correct. Or use another type of file in the | CLASSPATH since the JVM doesn't need to read it and it's just a key why are | you jaring it at all? The product consists of an SDK and a runtime. For "Trial" versions the user will enter a key provided by the sales team into the SDK. The SDK needs to save the key somehow. Normal jar creation doesn't work because (at least on windows) renaming the new temp jar to the proper name fails -- the VM is using the file already. My solution is to look through the CLASSPATH to find the proper jar (the path to it) and open it as a RandomAccessFile. Then I walk through the jar until I find the spot I want and read/write the key as binary data. The idea is to have the key stored in the (runtime) jar file so the potential customer can try out the runtime. I already tried putting it in a file in the user's home directory, but that didn't work -- some potential customers are using windows and each vm has it's own idea of what the "home" directory is ; some other users were on Unix and used one account in the lab for development and a different one for deployment. The VM doesn't need that particular file, but putting it anywhere but in the jar seems pretty messy. The security that this mechanism is supposed to provide is simply to prevent people from stealing the product without purchasing a license. Of course, any really determined person will step through the execution and hack around it. I hope this clears up what I was looking for. -D |
From: Daniel L. <da...@br...> - 2001-04-11 22:05:01
|
Maybe I am missing somethign here and I certainly don't know the details of what you are doing nor what your are trying to accomplish, but I thiink circumventing the security model for Jython/Java is an ugly, uncreative, and dangerous way to do anything. You should rethink the security mechanism implementation to somehow include the key in the pre-jar code and then jar it up so the check sum is correct. Or use another type of file in the CLASSPATH since the JVM doesn't need to read it and it's just a key why are you jaring it at all? Otherwise anyone using your code is opening up a security hole a truck could drive through. This sounds like something M$ would do ;-) (that's a joke don't get offended) ----- Original Message ----- > Message: 4 > Date: Tue, 10 Apr 2001 11:12:47 -0400 > From: D-Man <ds...@ri...> > To: jyt...@li... > Subject: [Jython-users] "bad" jars > > > I want to use jython to interactively test some Java work I did. > Unfortunately for this situation, jython caches all jar information > and skips any jar that is corrupt. My Java work consists of storing > some information (license key) in a jar in the CLASSPATH. Of course, > doing this (in the only way I could come up with) causes that > particular file to be "corrupt" because it no longer matches the CRC > checksum or the compression algorithm. This is acceptable because > this file is never loaded by the JVM, but read directly by my code. > > When I want to test it with Jython, jython doesn't load the jar > because it is "bad". As a result I don't get any of the classes that > are defined in the jar. > > Is there a way to turn off jython's processing and caching of the > jar's information so I can use this modified (err, hacked <wink>) jar? > If not, I can write some Java code to run through some tests. > > Thanks, > -D > > > > --__--__-- > > Message: 5 > From: Rafael Harispe <rha...@to...> > To: jyt...@li... > Date: Tue, 10 Apr 2001 14:34:11 -0300 > Subject: [Jython-users] select module not found in Jython > > Hello, i{m a beginner with Jython and I am trying whit a socket server > program with miltithread. > I found that secket.recv method block the thread, so I am trying to use de > select.select method, jython interpreter say... > ImportError: no module named select > > > Thanks a lot, and nice to meet you!!! > > PD: sorry, my English is not good. > > > > --__--__-- > > Message: 6 > Date: Tue, 10 Apr 2001 14:40:55 -0500 > To: Rafael Harispe <rha...@to...>, > jyt...@li... > From: brian zimmer <bz...@zi...> > Subject: Re: [Jython-users] select module not found in Jython > > Rafael, > > select() is not supported in Java so in order to get the same functionality you'll have to resort to a JNI implementation, such as the one at: > > http://www.cs.berkeley.edu/~mdw/proj/java-nbio/ > > Java uses a multi-threaded approach to handle multiple concurrent transactions. > > brian > > At 02:34 PM 4/10/2001 -0300, Rafael Harispe wrote: > >Hello, i{m a beginner with Jython and I am trying whit a socket server > >program with miltithread. > >I found that secket.recv method block the thread, so I am trying to use de > >select.select method, jython interpreter say... > >ImportError: no module named select > > > > > >Thanks a lot, and nice to meet you!!! > > > >PD: sorry, my English is not good. > > > > > >_______________________________________________ > >Jython-users mailing list > >Jyt...@li... > >http://lists.sourceforge.net/lists/listinfo/jython-users > > > > > --__--__-- > > Message: 7 > Date: Wed, 11 Apr 2001 11:47:32 -0700 > From: Jim Adrig <ji...@tr...> > Organization: Resource Management Systems > To: Jyt...@li... > Subject: [Jython-users] Re: Finding documentation (was [Jython-dev] overlooked details) > > I'm moving this to 'users' so readers there can see it too...most of the > 'dev' guys read 'users' too... > > Jayson Baird wrote: > > > > hehe I didn't know of execfile's existence.. there's no real documentation > > for jython available... yet :) > > I know it's hard to find it all sometimes, so here's some tips. There > actually IS a lot available, just not a lot of 'easy-to-digest' samples, > etc. The API refs are mostly there (at least at the 'top-level'), > although they are sometimes brief. > > I dragged the following shortcuts to the documentation onto my desktop > for quick access: > > C:/<installdir>/Jython/Doc/index.html > C:/<installdir>/Jython/Doc/api/index.html > > For example, to find 'exec' and 'execfile': Library Reference, Index > button, 'e'. Notice this exits to the original Python docs. (of course > you could just shortcut these directly...) > > Using the second link (Jython API): click PythonInterpreter on the left, > and there's 'exec' and 'execfile' (although with NO details: those are > in the Python docs ;^)...) > > If you using JBuilder, be sure and set up your 'Documentation' tab in > the 'Configure Libraries' screen ( mine is set to > 'C:/<installdir>/Jython/Doc/api' ). That way you can just put the cursor > over a class keyword (PythonInterpreter, PyOjbect, etc) OR any instance > of the class ('interp', etc) and <ctl>-<enter> to the source, then click > on the 'Doc' tab and POOF! You're there!... > > If you use JBuilder this instant access to Source and Docs can't be > beat! > > -- > __o > Jim Adrig _ \<,_ > ji...@tr... ' `/ ' ` > ___________ `-' `-' > > > > --__--__-- > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users > > > End of Jython-users Digest > |
From: Jim A. <ji...@tr...> - 2001-04-11 18:47:33
|
I'm moving this to 'users' so readers there can see it too...most of the 'dev' guys read 'users' too... Jayson Baird wrote: > > hehe I didn't know of execfile's existence.. there's no real documentation > for jython available... yet :) I know it's hard to find it all sometimes, so here's some tips. There actually IS a lot available, just not a lot of 'easy-to-digest' samples, etc. The API refs are mostly there (at least at the 'top-level'), although they are sometimes brief. I dragged the following shortcuts to the documentation onto my desktop for quick access: C:/<installdir>/Jython/Doc/index.html C:/<installdir>/Jython/Doc/api/index.html For example, to find 'exec' and 'execfile': Library Reference, Index button, 'e'. Notice this exits to the original Python docs. (of course you could just shortcut these directly...) Using the second link (Jython API): click PythonInterpreter on the left, and there's 'exec' and 'execfile' (although with NO details: those are in the Python docs ;^)...) If you using JBuilder, be sure and set up your 'Documentation' tab in the 'Configure Libraries' screen ( mine is set to 'C:/<installdir>/Jython/Doc/api' ). That way you can just put the cursor over a class keyword (PythonInterpreter, PyOjbect, etc) OR any instance of the class ('interp', etc) and <ctl>-<enter> to the source, then click on the 'Doc' tab and POOF! You're there!... If you use JBuilder this instant access to Source and Docs can't be beat! -- __o Jim Adrig _ \<,_ ji...@tr... ' `/ ' ` ___________ `-' `-' |
From: brian z. <bz...@zi...> - 2001-04-10 19:43:38
|
Rafael, select() is not supported in Java so in order to get the same functionality you'll have to resort to a JNI implementation, such as the one at: http://www.cs.berkeley.edu/~mdw/proj/java-nbio/ Java uses a multi-threaded approach to handle multiple concurrent transactions. brian At 02:34 PM 4/10/2001 -0300, Rafael Harispe wrote: >Hello, i{m a beginner with Jython and I am trying whit a socket server >program with miltithread. >I found that secket.recv method block the thread, so I am trying to use de >select.select method, jython interpreter say... >ImportError: no module named select > > >Thanks a lot, and nice to meet you!!! > >PD: sorry, my English is not good. > > >_______________________________________________ >Jython-users mailing list >Jyt...@li... >http://lists.sourceforge.net/lists/listinfo/jython-users |
From: Rafael H. <rha...@to...> - 2001-04-10 17:28:58
|
Hello, i{m a beginner with Jython and I am trying whit a socket server program with miltithread. I found that secket.recv method block the thread, so I am trying to use de select.select method, jython interpreter say... ImportError: no module named select Thanks a lot, and nice to meet you!!! PD: sorry, my English is not good. |
From: D-Man <ds...@ri...> - 2001-04-10 15:12:50
|
I want to use jython to interactively test some Java work I did. Unfortunately for this situation, jython caches all jar information and skips any jar that is corrupt. My Java work consists of storing some information (license key) in a jar in the CLASSPATH. Of course, doing this (in the only way I could come up with) causes that particular file to be "corrupt" because it no longer matches the CRC checksum or the compression algorithm. This is acceptable because this file is never loaded by the JVM, but read directly by my code. When I want to test it with Jython, jython doesn't load the jar because it is "bad". As a result I don't get any of the classes that are defined in the jar. Is there a way to turn off jython's processing and caching of the jar's information so I can use this modified (err, hacked <wink>) jar? If not, I can write some Java code to run through some tests. Thanks, -D |
From: Neil B. <nei...@ca...> - 2001-04-10 13:40:43
|
Hello, Here's a poser, wonder if anyone could help me:- I'm trying to get scripts to declare their interface via some method. I've tried to use inspect in Jython but I can't get it to work (I can in Python though) which leads me to think that inspect doesn't work in Jython. I could maybe use the reflection of java to interrogate the bytecode generated by Jython but this would hinder me in the future when I need to expand the application for compatibility with other scripting languages (it's a sad fact of life that I need to incorporate JavaScript and/or vbscript for OSA implementation). Therefore I'm looking for a pythonesque way returning the functions defined in a script. Has anyone done this or could you possibly point me in the right direction of how to do this. Any/all help greatly appreciated. Cheers, Neil |
From: Dethe E. <de...@al...> - 2001-04-09 20:38:41
|
OTOH Zope can be accessed via XML-RPC (and perhaps SOAP?), which in turn is accessible via Java. So you can't build a Java Servlet infrastructure on top of Zope, but you could interconnect a Java system with Zope (for certain values of "interconnect"). --Dethe Dethe Elza Burning Tiger Technologies http://www.burningtiger.com |
From: David H. Jr <dh...@hd...> - 2001-04-09 19:18:31
|
Hey Ben, I share Michael's pessimism. But there is hope, depending on what you are longing for. If you want to be able to create server code in jython and/or java which is usable by python within ZOPE you need to dive into distributed computing. CORBA and XML-RPC can both get python and java talking. XML-RPC (http://www.xmlrpc.com/) is particularly ideal because Zope and Java can both be clients and servers. XML-RPC was designed for ease-of-use (the code is slightly simpler than RMI), and cross-platform compatibility. If your needs outgrow XML-RPC, you can move to CORBA, but this is not for the faint-of-heart. CORBA rocks, but it's a beast. Good Luck, Dave On Mon, Apr 09, 2001 at 01:49:30PM +0200, Michael Rose wrote: > > Hi Ben, > > --On Monday, April 9, 2001 12:23 PM +0100 Ben Hutchison > <Ben...@fi...> wrote: > > Has anyone successfully run Zope over Jython? We are looking at a web > > based collaboration systems and Zope looks suitable. However, many > > developers have expressed concern that the system is not Java > > comptatible. Possibly, using Jython provides a solution. > > The main problem is that the database, ZODB, has quite a bit of C in it, > and so it can't be directly accessed from Jython. There was a bit of > discussion on this in the Zope list a couple of years ago, and > unfortunately the consensus seemed to be negative on Java compatability. If > you take a browse through the archives you'll probably come across the > technical reasons for this. > > Wish I could be more positive, I'ld also love to run Zope through Jython. > > Michael > > > > > ************************************************ > Assoc. Prof. Michael Rose > Center for Tele-Information, Technical University of Denmark > (45) 45 25 51 72 mailto:ro...@te... > Off the Desktop - http://converge.cti.dtu.dk/news > 'and what is the use of a computer' thought Alice 'without pictures or > conversation' with apologies to Lewis Carroll > ************************************************* > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users -- David Huttleston Jr 7941 Tree Lane Suite 200 Madison WI 53717 |
From: Michael R. <ro...@te...> - 2001-04-09 11:47:00
|
Hi Ben, --On Monday, April 9, 2001 12:23 PM +0100 Ben Hutchison <Ben...@fi...> wrote: > Has anyone successfully run Zope over Jython? We are looking at a web > based collaboration systems and Zope looks suitable. However, many > developers have expressed concern that the system is not Java > comptatible. Possibly, using Jython provides a solution. The main problem is that the database, ZODB, has quite a bit of C in it, and so it can't be directly accessed from Jython. There was a bit of discussion on this in the Zope list a couple of years ago, and unfortunately the consensus seemed to be negative on Java compatability. If you take a browse through the archives you'll probably come across the technical reasons for this. Wish I could be more positive, I'ld also love to run Zope through Jython. Michael ************************************************ Assoc. Prof. Michael Rose Center for Tele-Information, Technical University of Denmark (45) 45 25 51 72 mailto:ro...@te... Off the Desktop - http://converge.cti.dtu.dk/news 'and what is the use of a computer' thought Alice 'without pictures or conversation' with apologies to Lewis Carroll ************************************************* |
From: Ben H. <Ben...@fi...> - 2001-04-09 11:23:11
|
Has anyone successfully run Zope over Jython? We are looking at a web = based collaboration systems and Zope looks suitable. However, many = developers have expressed concern that the system is not Java = comptatible. Possibly, using Jython provides a solution. Thanks your your advice Ben |
From: Ben H. <Ben...@fi...> - 2001-04-09 11:23:05
|
Has anyone successfully run Zope over Jython? We are looking at a web = based collaboration systems and Zope looks suitable. However, many = developers have expressed concern that the system is not Java = comptatible. Possibly, using Jython provides a solution. Thanks your your advice Ben |
From: Uncle R. <ro...@ro...> - 2001-04-08 13:24:16
|
I inherited a simulator written in Jython. My role is to add functionality and to clean it up. I was having some confusion conceptually at first, and people on this list pointed me in the right direction. (I'm getting to the topic of this note slowly.) The simulator is using Python threads (ala Jython), not Java threads. I have learned that most of my initial conceptual confusion stemmed from one issue: Jython is Python in terms of syntax, but Jython is Java in terms of system behavior. It seems to me that any Jython threading should be done using Java threads, not Python threads. That switch should remove the odd behavior I'm observing. What do you say? |
From: Kexx <ke...@in...> - 2001-04-07 16:56:14
|
Hello, I was trying to freeze (actually web/servlet-ize, but that's besides the = point) my Jython application, and failed - I must be doing something = totally wrong. :-(. Here's a short failure scenario: -- module Main.py in root/current package -- # commented -- from amod.A import A from bmod.B import B B().bfunc() -- end Main.py -- -- module A.py in package/directory apkg -- class A: def afunc(self): return "kermits" -- end A.py -- -- module B.py in package/directory bpkg -- from apkg.A import A class B: def bfunc(self): print A().afunc() -- end B.py -- I also have 2 empty __init__.py files (one for apkg, the other for = bpkg). Now, "jython Main.py" works just fine ("kermits" is printed). Here's the output from "jythonc --deep" at compile time: -- start -- E:\projects\jytest\2>jythonc --deep Main.py processing Main processing bpkg.B processing apkg.A processing bpkg.__init__ Required packages: Creating adapters: Creating .java files: B module Main module __init__ module A module Compiling .java to .class... Compiling with args: ['E:\\programming\\java\\jdk1.3\\bin\\javac.exe', = '-classpa th', '"E:\\programming\\jython\\jython.jar;E:\\program = files\\borland\\Interclie nt\\interclient.jar;E:\\programming\\jython\\jython.jar;E:\\programming\\= java\\j 2sdkee1.3\\lib\\j2ee.jar;E:\\programming\\java\\jakarta-tomcat-3.2.1\\jyt= est\\WE B-INF\\classes;.;.\\jpywork;;E:\\programming\\jython\\Tools\\jythonc;E:\\= project s\\jytest\\2\\.;E:\\programming\\jython\\Lib;e:\\programming\\Jython\\Lib= ;E:\\pr ogramming\\jython"', '.\\jpywork\\bpkg\\B.java', = '.\\jpywork\\Main.java', '.\\jp ywork\\bpkg\\__init__.java', '.\\jpywork\\apkg\\A.java'] 0 Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. -- end -- Next, we go to "./jpywork" and do a "java Main" and get: -- start -- Java Traceback: at org.python.core.Py.ImportError(Py.java:180) at org.python.core.imp.load(imp.java:384) at org.python.core.imp.load(imp.java:392) at org.python.core.imp.importName(imp.java:448) at org.python.core.imp.importName(imp.java:528) at org.python.core.ImportFunction.load(__builtin__.java:989) at org.python.core.ImportFunction.__call__(__builtin__.java:982) at org.python.core.PyObject.__call__(PyObject.java:252) at org.python.core.__builtin__.__import__(__builtin__.java:942) at org.python.core.imp.importFromAs(imp.java:586) at bpkg.B$_PyInner.main$3(B.java:54) at bpkg.B$_PyInner.call_function(B.java:36) at org.python.core.PyTableCode.call(PyTableCode.java:198) at org.python.core.PyCode.call(PyCode.java:13) at org.python.core.imp.createFromCode(imp.java:165) at org.python.core.imp.createFromClass(imp.java:186) at org.python.core.imp.loadPrecompiled(imp.java:258) at org.python.core.imp.loadFromPath(imp.java:269) at org.python.core.PyModule.impAttr(PyModule.java:39) at org.python.core.imp.dottedFind(imp.java:428) at org.python.core.imp.importName(imp.java:452) at org.python.core.imp.importName(imp.java:528) at org.python.core.ImportFunction.load(__builtin__.java:989) at org.python.core.ImportFunction.__call__(__builtin__.java:982) at org.python.core.PyObject.__call__(PyObject.java:252) at org.python.core.__builtin__.__import__(__builtin__.java:942) at org.python.core.imp.importFromAs(imp.java:586) at Main$_PyInner.main$1(Main.java:34) at Main$_PyInner.call_function(Main.java:26) at org.python.core.PyTableCode.call(PyTableCode.java:198) at org.python.core.PyCode.call(PyCode.java:13) at org.python.core.imp.createFromCode(imp.java:165) at org.python.core.Py.runMain(Py.java:818) at Main.main(Main.java:49) Traceback (innermost last): File "E:\projects\jytest\2\Main.py", line 0, in main File "E:\projects\jytest\2\bpkg\B.py", line 0, in main ImportError: no module named apkg -- end -- Taking a look at the ./jpywork directory shows that __init__-s (.java, = .class and $_PyInner.class) have only been compiled for bpkg, but not = for apkg. I tried passing it multiple arguments to compile, but it then compiled = it to a different "package level". Now, if we uncomment the first line in Main.py to also "from apkg.A = import A" it works just fine (but importing all modules from the main = application seems an ugly hack). Any comments will be very appreciated. Best regards, Juris. |
From: R. L. <lon...@ag...> - 2001-04-07 15:35:38
|
I have not seen any reference to using Jython with IBM's Bean Scripting Framework, so I've written a quick article on the (trivial) set of changes needed to make them work together. http://www.agoron.com/~lonstein/articles/jython-bsf.html I'm using it with Apache-Jakarta Ant and everything seems to work well. I'd appreciate any comments or corrections. Thanks, Ross |
From: Richard G. <rg...@in...> - 2001-04-06 21:59:07
|
Hi all, I have written a Jython program which (among other things) uses an instance of the java class org.python.util.PythonInterpreter. If I execute this program and submit an "import javax" or a "import calendar" (Python module) statement to the PythonInterpreter object, it will work fine. But if I compile with jythonc this Jython program and then execute the resulting java code (in the same environment, with the same CLASSPATH), submitting the same import statements, I get an ImportError in both cases ("No module named javax|calendar"). But I'm still able to perform some imports concerning some of my own Java libraries. I suspect this is some kind of a CLASSPATH problem, but I can't figure out which one exactly. Or maybe the jythonc options used ? I used the command : jythonc --package com.intraware.b2b.ifwk.client.tools --jar %DESTDIR%\ifwkjython.jar %SRC%\ifwkjython.py ...and added %DESTDIR%\ifwkjython.jar to my CLASSPATH. Any clue ? Thanks in advance. Richard Gruet |
From: <bc...@wo...> - 2001-04-06 15:59:37
|
[Robert Kuzelj] >i am just now moving from jpython to jython and >i am experiencing some errors by doing that. >maybe somebody can help. > >here the context: >i am writing some modules, that help to >generate java-code from a togetherj-modell. >so what i am doing in effect is calling a >java-module from together which again calls >thru the PythonInterpreter my python-modules. > >on switching to jython20 i have renamed >my old jpython installation directory to >jpython.old and installed jython. i renamed >my new jython install-directory to jpython >and renamed the jython.jar to jpython.jar. >this was all done so that there be no need >to change all the property-files for running >my generator scripts. > >after switching to jython the os module can not >be called anymore. i simply can not understand >why this happens. It is a bug in Jython-2.0. The javaos.java class expect sys.prefix to have a value. This may not be the case when running embedded or jythonc'ed. The bug is fixed in the current CVS. As a work around you can assign a value to sys.prefix before the "os" module gets imported. import sys; sys.prefix = '.' ... regards, finn |
From: <bc...@wo...> - 2001-04-06 15:59:06
|
[John Mudd] >The following is from the NEWS file distributed with jython-2.1a1. I >was just wondering what this means. By any chance does this mean that >the tracebacks from compiled jython code will now list valid line >numbers instead of zeros? > >Bug fixes. > - Include a LineNumberTable in the compiled class files. No. The fix only include a LineNumberTable attribute in the $py.class files. As a result, a java stacktrace will show correct line numbers from the .py files (a python stacktrace already showed linenumbers) The fix does nothing for jythonc. regards, finn |