You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(38) |
Nov
(98) |
Dec
(58) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(114) |
Feb
(123) |
Mar
(96) |
Apr
(66) |
May
(84) |
Jun
(72) |
Jul
(128) |
Aug
(126) |
Sep
(82) |
Oct
(80) |
Nov
(148) |
Dec
(55) |
| 2002 |
Jan
(137) |
Feb
(85) |
Mar
(118) |
Apr
(67) |
May
(71) |
Jun
(28) |
Jul
(69) |
Aug
(48) |
Sep
(83) |
Oct
(79) |
Nov
(54) |
Dec
(32) |
| 2003 |
Jan
(44) |
Feb
(47) |
Mar
(59) |
Apr
(57) |
May
(43) |
Jun
(45) |
Jul
(44) |
Aug
(39) |
Sep
(27) |
Oct
(62) |
Nov
(17) |
Dec
(23) |
| 2004 |
Jan
(41) |
Feb
(51) |
Mar
(38) |
Apr
(30) |
May
(25) |
Jun
(12) |
Jul
(11) |
Aug
(27) |
Sep
(16) |
Oct
(56) |
Nov
(23) |
Dec
(29) |
| 2005 |
Jan
(75) |
Feb
(82) |
Mar
(50) |
Apr
(77) |
May
(19) |
Jun
(104) |
Jul
(47) |
Aug
(42) |
Sep
(28) |
Oct
(143) |
Nov
(62) |
Dec
(13) |
| 2006 |
Jan
(20) |
Feb
(10) |
Mar
(59) |
Apr
(45) |
May
(25) |
Jun
(129) |
Jul
(162) |
Aug
(91) |
Sep
(15) |
Oct
(39) |
Nov
(186) |
Dec
(191) |
| 2007 |
Jan
(134) |
Feb
(140) |
Mar
(106) |
Apr
(77) |
May
(92) |
Jun
(63) |
Jul
(233) |
Aug
(102) |
Sep
(119) |
Oct
(63) |
Nov
(68) |
Dec
(32) |
| 2008 |
Jan
(69) |
Feb
(91) |
Mar
(129) |
Apr
(44) |
May
(18) |
Jun
(53) |
Jul
(50) |
Aug
(25) |
Sep
(11) |
Oct
(28) |
Nov
(67) |
Dec
(36) |
| 2009 |
Jan
(20) |
Feb
(24) |
Mar
(66) |
Apr
(53) |
May
(48) |
Jun
(48) |
Jul
(59) |
Aug
(82) |
Sep
(49) |
Oct
(30) |
Nov
(16) |
Dec
(16) |
| 2010 |
Jan
(52) |
Feb
(25) |
Mar
(36) |
Apr
(34) |
May
(14) |
Jun
(15) |
Jul
(14) |
Aug
(16) |
Sep
(23) |
Oct
(6) |
Nov
(4) |
Dec
(5) |
| 2011 |
Jan
(4) |
Feb
(22) |
Mar
(45) |
Apr
(9) |
May
(8) |
Jun
(13) |
Jul
(12) |
Aug
(4) |
Sep
(6) |
Oct
(10) |
Nov
(21) |
Dec
(5) |
| 2012 |
Jan
(6) |
Feb
(9) |
Mar
(25) |
Apr
(6) |
May
(4) |
Jun
(23) |
Jul
(6) |
Aug
(18) |
Sep
(21) |
Oct
(34) |
Nov
(19) |
Dec
(25) |
| 2013 |
Jan
(8) |
Feb
(34) |
Mar
(35) |
Apr
(4) |
May
(11) |
Jun
(4) |
Jul
(7) |
Aug
(5) |
Sep
(20) |
Oct
(12) |
Nov
(11) |
Dec
(7) |
| 2014 |
Jan
(10) |
Feb
(18) |
Mar
(50) |
Apr
(26) |
May
(53) |
Jun
(21) |
Jul
(12) |
Aug
(39) |
Sep
(43) |
Oct
(26) |
Nov
(8) |
Dec
(6) |
| 2015 |
Jan
(18) |
Feb
(32) |
Mar
(31) |
Apr
(42) |
May
(38) |
Jun
(13) |
Jul
(6) |
Aug
(11) |
Sep
(29) |
Oct
(25) |
Nov
(10) |
Dec
(11) |
| 2016 |
Jan
(24) |
Feb
(12) |
Mar
(13) |
Apr
(15) |
May
(22) |
Jun
(8) |
Jul
(12) |
Aug
(25) |
Sep
(8) |
Oct
(6) |
Nov
(13) |
Dec
(7) |
| 2017 |
Jan
(6) |
Feb
(29) |
Mar
(32) |
Apr
(8) |
May
(82) |
Jun
(42) |
Jul
(20) |
Aug
(17) |
Sep
(27) |
Oct
(14) |
Nov
(22) |
Dec
(6) |
| 2018 |
Jan
(12) |
Feb
(9) |
Mar
(22) |
Apr
(19) |
May
(14) |
Jun
(9) |
Jul
(9) |
Aug
(22) |
Sep
(22) |
Oct
(12) |
Nov
(13) |
Dec
(8) |
| 2019 |
Jan
(22) |
Feb
(3) |
Mar
(30) |
Apr
(20) |
May
(20) |
Jun
(6) |
Jul
(15) |
Aug
(25) |
Sep
(11) |
Oct
(24) |
Nov
(11) |
Dec
(6) |
| 2020 |
Jan
(9) |
Feb
(12) |
Mar
(29) |
Apr
(10) |
May
(22) |
Jun
(11) |
Jul
(15) |
Aug
(5) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(13) |
| 2021 |
Jan
(21) |
Feb
(5) |
Mar
(5) |
Apr
(6) |
May
(10) |
Jun
(7) |
Jul
(6) |
Aug
(8) |
Sep
(5) |
Oct
(9) |
Nov
(5) |
Dec
(6) |
| 2022 |
Jan
(5) |
Feb
(4) |
Mar
(8) |
Apr
(6) |
May
(5) |
Jun
(5) |
Jul
(10) |
Aug
(6) |
Sep
(7) |
Oct
(4) |
Nov
(4) |
Dec
(6) |
| 2023 |
Jan
(5) |
Feb
(5) |
Mar
(6) |
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(7) |
Dec
(8) |
| 2024 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2025 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2026 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: James H. <ja...@ex...> - 2001-05-07 12:31:20
|
Hi, Could you please add this project to to your Jython users list? www.free-schooling.org The Freeplay project is developing a free course authoring tool which can be used to create lessons which are more like adventure games than school lessons. Jython is used as the scripting language. Many thanks, James -------------------- James Holmes |
|
From: Kenny L. <ken...@po...> - 2001-05-07 04:56:39
|
On Friday, May 4, 2001, at 11:05 AM, Finn Bock wrote: > Please keep in mind that getting the class name right is just one part > of the problem. The proxy classes are loaded by a custom classloader > (some instance of BytecodeLoader). By default, I doubt that the > Class.forName() call used by the framework will find the classes loaded > by the BytecodeLoaders. If it is jython that loads the framework, I can > ways of ensuring that the framework can find the proxyclasses. Thanks for the answers, Finn. Yes, you're right. Further experimentation reveals that the class.forName call uses the "standard" class loader, whichever that one is. Here's the backtrace. java.lang.ClassNotFoundException: org.python.proxies.Main$Main$1 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) The documentation is sketchy on this front, but there seems to be no way to replace this standard class loader, nor is there a way to tell it that the class is already loaded in the system. (I assume it has been loaded into the system, because the code from this class has alredy been run. I'm not sure if this is true since I don't know how the Jython internals work.) If this is correct, Java is pretty broken. Even though a class has already been loaded in the system, there's no way to tell other parts of the system! -Kenny |
|
From: <bc...@wo...> - 2001-05-04 18:09:15
|
On Wed, 2 May 2001 14:55:07 -0700, you wrote:
>Hi All.
>
>I want to use jython as a an interpreted replacement for Java classes in
>my development cycle. However, the framework I'm using expects to find
>classes using Class.forName(), and python classes show up in Java with
>funny package names.
>
>Is there a guide for how jython interfaces python classes into Java?
No.
>Is there a good reason that python classes need to show up with the funny
>package names?
Yes.
1) To avoid naming conflicts. The same class can exists in multiple
python modules. The same class name can even be used multiple times
within the same module.
2) To allow a reverse mapping of the proxy class name back to the module
and classname where the class is defined. This is used when reading a
serialized object stream with the PythonObjectInputStream class.
>If not, can someone give me a pointer as to where to fix
>up the code so that python classes show up in Java as with the same name?
Part of the name is created in PyClass.init() just before the call to
MakeProxies.makeProxy(). The rest of the name is created in the
makeProxy() method.
A real solution to this problem could maybe be to define the proxyname
somewhere in the python class:
import java
class A(java.lang.Object):
__proxyname__ = "my.package.FooBar"
The special __proxyname__ attribute must then be defined when the class
statement is executed. The value will be available in PyClass.init()
method in the dict parameter. Such a manually renamed proxy class can
never be de-serialized using java serialization.
Please keep in mind that getting the class name right is just one part
of the problem. The proxy classes are loaded by a custom classloader
(some instance of BytecodeLoader). By default, I doubt that the
Class.forName() call used by the framework will find the classes loaded
by the BytecodeLoaders. If it is jython that loads the framework, I can
ways of ensuring that the framework can find the proxyclasses.
regards,
finn
|
|
From: <bc...@wo...> - 2001-05-04 18:09:04
|
[Randy Heiland] >I'd like to know if it is possible (legally) to distribute Jython on a CD. It is. As long as you comply with the licenses that cover the various parts of Jython. You will have read the licenses yourself in order to decide whether you can live with the very few restrictions that they put in place. The licenses in question are: - JPython-1.1 license (cover the original sources) - Apache license (cover the ORO matcher code) - Python-2.0 license (cover most of the python modules in Lib) - BSD license (cover the changes made to JPython-1.1 sources) regards, fin |
|
From: Rich S. <rse...@ya...> - 2001-05-04 17:02:44
|
Hi Brian, If I understand your test program correctly, it should work when I run it for PyTestA class, and fail for PyTestB. In my case it works for both, clone() is there. What JDK version are you running? We've had some problems here before with Java not accessing protected methods properly. FWIW, I'm running JDK 1.3.1 RC2 on Linux. It is odd that you got a KeyError for my test program. I get a segfault (which may or may not be caused by a stack overflow). However, the same scenario in my real-world application definately causes an infinite recursion, I can see it in the stack trace. This is why I am suspecting a stack overflow for the test program as well. Here's my output: ~/jython-2.1a1 > ./jython test.py ./jython: line 7: 8029 Segmentation fault /usr/local/jdk1.3.1/jre/bin/java -Dpython.home=/home/rseddon/jython-2.1a1 -classpath "/home/rseddon/jython-2.1a1/jython.jar:$CLASSPATH" org.python.util.jython "$@" If I add the "setSize" method into the intermediate class it runs properly. Rich On Friday 04 May 2001 08:56, brian zimmer wrote: > Rich, > > I don't get the StackOverflow, but instead a KeyError. I'm not much of a > Swing guy, but I'm willing to bet that processInputMethodEvent is a > protected method on some object (probably JFrame). Check out my bug at > sourceforge #416871 for Jython and see what the downloadable code does for > you. I'm quite curious. I used to get the StackOverflow, but some changes > to the core fixed that, but in doing so have caused me problems with Jython > not building all the appropriate methods if I subclass (in Python-sp ak) a > Java interface. To workaround it I implement all the methods that fail > (always protected methods such as .clone() and .finalize()). I don't know > if this makes any sense to you, but love to have someone else experience > this problem. I've spoken with Finn and he is unable to reproduce it. > > thanks, > > brian > > So I went and checked the Javadoc and .processInputMethodEvent() is indeed > protected. My theory holds. > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: brian z. <bz...@zi...> - 2001-05-04 15:56:46
|
Rich, I don't get the StackOverflow, but instead a KeyError. I'm not much of a Swing guy, but I'm willing to bet that processInputMethodEvent is a protected method on some object (probably JFrame). Check out my bug at sourceforge #416871 for Jython and see what the downloadable code does for you. I'm quite curious. I used to get the StackOverflow, but some changes to the core fixed that, but in doing so have caused me problems with Jython not building all the appropriate methods if I subclass (in Python-speak) a Java interface. To workaround it I implement all the methods that fail (always protected methods such as .clone() and .finalize()). I don't know if this makes any sense to you, but love to have someone else experience this problem. I've spoken with Finn and he is unable to reproduce it. thanks, brian So I went and checked the Javadoc and .processInputMethodEvent() is indeed protected. My theory holds. At 08:31 AM 5/4/2001 -0700, Rich Seddon wrote: >Hi, > >I've been playing with the latest jython from CVS, and I'm having some >trouble getting my code to work with it. When I attempt to call a Java method >that is overridden in a python class, but not overridden in all intermediate >python classes, I get a stack overflow. > >The following test program fails using the latest CVS, but works fine if I >pull jython using the "Release_2_1alpha1" tag: > >from javax.swing import * > >class fooFrame(JFrame): > def __init__(self): > JFrame.__init__(self) > >class barFrame(fooFrame): > def __init__(self): > fooFrame.__init__(self) > > def setSize(self, width, height): > fooFrame.setSize(self, width, height) > > >if __name__ == "__main__": > frm = barFrame() > frm.setSize(100,100) > > frm.show() > >Regards, > >Rich Seddon > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > > >_______________________________________________ >Jython-dev mailing list >Jyt...@li... >http://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Rich S. <rse...@ya...> - 2001-05-04 15:32:09
|
Hi, I've been playing with the latest jython from CVS, and I'm having some trouble getting my code to work with it. When I attempt to call a Java method that is overridden in a python class, but not overridden in all intermediate python classes, I get a stack overflow. The following test program fails using the latest CVS, but works fine if I pull jython using the "Release_2_1alpha1" tag: from javax.swing import * class fooFrame(JFrame): def __init__(self): JFrame.__init__(self) class barFrame(fooFrame): def __init__(self): fooFrame.__init__(self) def setSize(self, width, height): fooFrame.setSize(self, width, height) if __name__ == "__main__": frm = barFrame() frm.setSize(100,100) frm.show() Regards, Rich Seddon _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Waclawczyk J. <Jan...@ic...> - 2001-05-04 12:59:44
|
Hi, I've got rather strange behaviour, when trying following links: http://jython.sourceforge.org/cgi-bin/faqw.py?req=index strange content-type needed http://jython.sourceforge.net/cgi-bin/faqw.py?req=index folowing message: <H3>Traceback (innermost last):</H3> <PRE> File "/home/groups/j/jy/jython/cgi-bin/faqw.py", line 24, in ? os.chdir(FAQDIR) <B>OSError: [Errno 2] No such file or directory: '/home/groups/jython/FAQ/data' </B></PRE> <BR>(times: user 0.05, sys 0.01, ch-user 0, ch-sys 0, real 0.12) Regards Janusz Waclawczyk |
|
From: Randy H. <he...@nc...> - 2001-05-03 14:35:19
|
I'd like to know if it is possible (legally) to distribute Jython on a CD. Some background: We (NCSA at Univ of Illinois, Urbana-Champaign) are preparing to produce a CD that will be given to academic partners (part of the NSF PACI program) who are building Linux clusters. Our NCSA visualization group has developed a visualization tool that requires the use of Jython. It would simply make life simpler if we could put Jython on the Cd along with the other required software. thanks, --Randy --------------------------------------------------------------------- Randy Heiland | he...@nc... NCSA, University of Illinois | 405 N. Mathews Ave., Urbana, IL 61801 | 217-244-7318 (fax)217-244-2909 | |
|
From: <ken...@po...> - 2001-05-02 21:55:09
|
Hi All. I want to use jython as a an interpreted replacement for Java classes in my development cycle. However, the framework I'm using expects to find classes using Class.forName(), and python classes show up in Java with funny package names. Is there a guide for how jython interfaces python classes into Java? Is there a good reason that python classes need to show up with the funny package names? If not, can someone give me a pointer as to where to fix up the code so that python classes show up in Java as with the same name? Thanks! -Kenny |
|
From: Robert W. B. <rb...@di...> - 2001-04-30 13:07:34
|
Hello all,
The current atol in PyString doesn't handle hexstring's.
Use of hex string in long() currently looks like:
>>> long("0x12", 16)
Traceback (innermost last):
File "<console>", line 1, in ?
ValueError: invalid literal for __int__: 0x12
It also seems the ValueError argument should be '__long__'
instead of '__int__', is that right?
Proposed change would allows hex strings when base=16 is
specified, and changes '__int__' to '__long__'. This means:
>>> long("0x12")
Traceback (innermost last):
File "<console>", line 1, in ?
ValueError: invalid literal for __long__: 0x12
>>>
>>> long("0x12", 16)
18L
>>>
=========begin diff -u===========
--- local/org/python/core/PyString.java Sun Apr 29 21:15:08 2001
+++ org/python/core/PyString.java Sun Apr 29 21:45:46 2001
@@ -1326,6 +1326,10 @@
} else
base = 8;
}
+ if (base == 16) {
+ if (str.charAt(b+1) == 'x' || str.charAt(b+1) == 'X')
+ b += 2;
+ }
if (base < 2 || base > 36)
throw Py.ValueError("invalid base for long literal:" + base);
@@ -1340,9 +1344,9 @@
bi = new java.math.BigInteger(str, base);
return new PyLong(bi);
} catch (NumberFormatException exc) {
- throw Py.ValueError("invalid literal for __int__: "+str);
+ throw Py.ValueError("invalid literal for __long__: "+str);
} catch (StringIndexOutOfBoundsException exc) {
- throw Py.ValueError("invalid literal for __int__: "+str);
+ throw Py.ValueError("invalid literal for __long__: "+str);
}
}
=========end diff=========
Cheers,
Robert
|
|
From: Stuart S. <st...@me...> - 2001-04-29 02:59:36
|
Whoops, wrong list. My apologies. Stuart |
|
From: Arun S. <ar...@sh...> - 2001-04-29 02:52:29
|
Can someone here help me with PyServlet question mailed to jython-users ? http://www.geocrawler.com/lists/3/SourceForge/7017/0/5646196/ -Arun Hi, I'm trying to use PyServlet along with tomcat and ran into a couple of problems: (a) Is there a way to load a python servlet (init.py) on startup ? For java servlets, I use load-on-startup=1 (b) Python servlets get reloaded when I make changes, but other python modules they "import" don't get reloaded when they're changed. I understand that this is the default java behavior, but is there a way to change this in python ? Will save me a restart, if I can do that. Thanks! -Arun |
|
From: Stuart S. <st...@me...> - 2001-04-28 23:35:31
|
Hi Folks,
I'm a jython newbie, and I'm trying to utilize Jython so I can
fiddle with/glue Java code I've
written (and debugged). I have a CORBA server running, and I'm using
CORBA client code
written in Java that I'm calling from the jython command line:
from com.adaclabs.camelot.CORBAImageServices import *
from java.net import *
orbURL = URL("http://localhost");
adapter =
CORBADataAccessAdapter(orbURL.toString(),"EventServiceForSTUARTS","");
mylistener = CORBAClientListenerAdapter();
adapter.InitializeConnection(orbURL,mylistener);
strUID=adapter.ListPatientData("<DICOMQueryPatientRoot/>","ftp://anywhere.com");
---
The Class CORBAClientListenerAdapter prints some stuff to System.err
as well as dumping the incoming event (translated from a CORBA Any) to a
file on the local file system.
The Server side sees the request and responds (which I can observe in
the console for the server),
and the CORBA Event channel receives the message from the server.
I just don't see anything coming in on the client, nor is a file created
(containing an incoming event).
There are multiple threads running when I do this without jython (the
client spins in a loop
and sleeps for a few seconds per iteration of the loop after having made
a request via CORBA),
and the code has been working reasonably well for months (including
others making use of it).
Is there something I need to be doing with threads within the jython
client ?
Are there any particular references in the documentation that might help
?
I really did try to find something in the jython docs, python docs, and
the swing example code in jython,
but I just don't see it...
Thank You,
Stuart
P.S.
I'm aware that there are Python bindings for CORBA, but I'm really more
interested in hooking in
to my Java code, the CORBA stuff is just my latest grind...
|
|
From: Zain ul a. <zai...@ya...> - 2001-04-28 12:11:46
|
Hi, can we make java beans in Jython? and if we can can you refer me to any documentation for it. thanks, __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |
|
From: <bc...@wo...> - 2001-04-27 19:30:58
|
[Bobby Impollonia] >hey, folks. on the front page, you have a link to psa (under "exits"), but >that link goes to a page saying that psa no longer exists and "is replaced >by the Python Software Foundation". update time. Done, thanks. regards, finn |
|
From: charles F s. <yr...@ya...> - 2001-04-27 18:34:29
|
Hello, from the python manual online at http://www.python.org/doc/current/ref/try.html There are two forms of try statement: try...except and try...finally. These forms cannot be mixed (but they can be nested in each other). regards, Charles Simons --- "Saravanan Balasubramani (EWU)" <Sar...@am...> wrote: > Hi, > Iam trying to use try, except and finally block in > my jython program and it > givs a syntax error for my finally line: > > class test1(test): > def __init__(self) > test.__init__(self) > > def setInt(self, num) > try: > test.setInt(num) > except Exception, e: > print e.toString() > finally: > print 'program ends here ..' > > When I compile this program, I always get syntax > error for finally. > Can u help me on this. > > thanks, > saravanan > > > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ |
|
From: Saravanan B. (EWU)
<Sar...@am...> - 2001-04-27 17:42:58
|
Hi, Iam trying to use try, except and finally block in my jython program and it givs a syntax error for my finally line: class test1(test): def __init__(self) test.__init__(self) def setInt(self, num) try: test.setInt(num) except Exception, e: print e.toString() finally: print 'program ends here ..' When I compile this program, I always get syntax error for finally. Can u help me on this. thanks, saravanan |
|
From: Mika R. <mry...@ma...> - 2001-04-25 22:32:39
|
[Jayson S Baird] >Hiho, > > I'm a developer who is trying to embed Python code into Java, so of >course I came to Jython. When trying to run your example after compiling, >I get the following stack dump: > Exception in thread "main" java.lang.NullPointerException > at org.python.core.PyJavaClass.lookup(PyJavaClass.java:39) > at org.python.core.PyObject.<init>(PyObject.java:46) > at org.python.core.PySingleton.<init>(PySingleton.java:8) > at org.python.core.PyNone.<init>(PyNone.java:7) > at org.python.core.PySystemState.initStaticFields(PySystemState.java:341) > at org.python.core.PySystemState.initialize(PySystemState.java:320) > at org.python.core.PySystemState.initialize(PySystemState.java:294) > at org.python.core.PySystemState.initialize(PySystemState.java:287) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:61) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:45) > at SimpleEmbedded.main(SimpleEmbedded.java:6) > >Any idea what's causing this? no one has mentioned it in the FAQ's or the >list archives... Hello! The original post was rather old, but as there was no solutions I thought I'd suggest something. I've been using Jython for three days now, so if this is something obvious, please don't flame me :-) I encountered this problem today (exactly the same exception as above). I had installed full Jython (with sources). I was using "classpath=c:\windows\jython-2.1a1;.". I think this means that most Jython classes are loaded from dir "c:\windows\jython-2.1a1\org\python\core". For some reason there was no corresponding compiled .class files for "InternalTables1.java", "InternalTables2.java" and "exceptions.java" included in that directory. The problem was fixed either by compiling these three files, or changing classpath to use the ready-made jar: "classpath=c:\windows\jython-2.1a1\jython.jar;.". I hope this is helpful to someone! -- Mika |
|
From: Pasha A. <par...@en...> - 2001-04-25 22:30:05
|
I need to know exactly how the get_syntax() method works in the regex API because it is no longer supported by the re.py API and I need it becuase some of my python scripts make calls to it. Thanks! ____________________________ Pasha Arshadi Software Engineer Endeavors Technology 19700 Fairchild, Suite 200 Irvine, CA 92612 (949) 833-2800 x110 www.endeavors.com par...@en... |
|
From: <bc...@wo...> - 2001-04-25 18:46:18
|
[taxpro] >Hi >Hoping this message does'n bother anyone, please reply: >1:how to integrate readline with jython Jython already have some support for integration of a readline library. http://www.bablokb.de/java/readline.html In the CVS version the ReadlineConsole class is already included with the distribution (this include the entire "Support for JPython" section which is no longer needed with the current CVS version of Jython). So in the next release the readline support can be installed by setting the registry option python.console=org.python.util.ReadlineConsole and installing Bablok's java binding to readline. I don't yet know how this java binding is compiled or installed (I don't use *nix myself) but I hope someone else will contribute a description. I expect the readline support to be streamlined and improved during the 2.1 release cycle. regards, finn |
|
From: <bc...@wo...> - 2001-04-25 18:42:40
|
[Andreas Jakobik] >Hi > >to ease the use of a Java library from Jython I have written conversion >routines between PyDictionary and mylib.XClass. It works fine when I run >this from the Jython interpreter, but when I want to test my conversion >routines from Java (using JUnit) I get a NullPointerException at >org.python.core.InternalTables.createInternalTables. Could you post the exception traceback? >This happens when I want to (e.g.) create a PyDictionary object. > >I guess I missed initializing the library somehow. You can initialize the runtime by calling one of the PySystemState.initialize() methods. This is normally done automaticly when using the PythonInterpreter class. If you are not using this utility class, you may have to call one of the initialize() methods yourself. If you can post a complete failing example, maybe we can improve jython in this respect. >Is there a system property I must set?? The exception traceback will tell us more. >Using Jython-2.0. regards, finn |
|
From: Pasha A. <par...@en...> - 2001-04-25 17:59:40
|
I have Python scripts that import the python regex modules and i am trying to run the python scripts on jython. When i change the file containing the regex import to re, the new replacement for regex, i get an error stating that the regex module is not found, this is displayed after I have changed all of the instances of regex with re, there is also a regex.compile(line[A]) that I replace with re.compile(line[A]) and for some reason it still says no module names regex. I was wondering if anyone can help me out? Thanks. Pasha ____________________________ Pasha Arshadi Software Engineer Endeavors Technology 19700 Fairchild, Suite 200 Irvine, CA 92612 (949) 833-2800 x110 www.endeavors.com par...@en... |
|
From: Janusch W. <Jan...@ic...> - 2001-04-25 11:41:51
|
Hi, how can I improve the jython performace in the cgi work ? (something like FastCGI, mod_python or PyApache). Can I use jython while working with Zope ? Regards Janusch Waclawczyk |
|
From: v <ta...@xn...> - 2001-04-25 10:12:34
|
Hi Hoping this message does'n bother anyone, please reply: 1:how to integrate readline with jython |