Issue1698
Created on 2011-01-22.06:48:17 by sebukoleth, last changed 2011-01-24.05:58:40 by sebukoleth.
File name |
Uploaded |
Description |
Edit |
Remove |
JythonBSF.zip
|
sebukoleth,
2011-01-22.06:48:17
|
Eclipse project with Jython threading code through BSF/JSR-223 |
|
|
msg6333 (view) |
Author: Sebu Koleth (sebukoleth) |
Date: 2011-01-22.06:48:16 |
|
Invoking a Python script that involves threading does not work when using JSR-223, but works when using BSF
|
msg6335 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2011-01-22.21:25:05 |
|
The problem here isn't due to threads, it's triggered by the use of the warnings module. This is a similar issue to #1674 in that the jsr223 scope object isn't supporting all the dict methods that the warnings module expects it to.
I've added more missing methods in r7188 which fixes this issue.
|
msg6346 (view) |
Author: Sebu Koleth (sebukoleth) |
Date: 2011-01-24.00:34:37 |
|
Even when the import and usage of warnings module is removed from the sample code, I do not see any messages being printed by the threads. So is it really correct to mark this bug as caused by usage of warnings module?
|
msg6347 (view) |
Author: Sebu Koleth (sebukoleth) |
Date: 2011-01-24.05:18:21 |
|
Just to double-check I built revision 7190 from trunk and executed the same code. Again threading did not work. It does not at all look like failure with warning module.
|
msg6348 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2011-01-24.05:31:30 |
|
It works for me, I see the output from the 4 threads. This is a really basic usage of threads (I'm surprised you're having any trouble with it)
How are you invoking it, what platform are you on? Are you sure you're running the right version? (double check sys.version)
|
msg6349 (view) |
Author: Sebu Koleth (sebukoleth) |
Date: 2011-01-24.05:57:13 |
|
Ran from command-line. sys.version output is
2.5.2rc3 (trunk, Jan 23 2011, 17:12:09)
I am also very surprised this is not working. I am in the process of evaluating JSR223-readiness of Jython in order to move off BSF. This is one of the failing tests.
|
msg6350 (view) |
Author: Sebu Koleth (sebukoleth) |
Date: 2011-01-24.05:58:40 |
|
Forgot to mention : platform is Windows XP 32 bit. Invoking through Eclipse or command-line gives same behaviour ie. no messages from the threads.
|
|
Date |
User |
Action |
Args |
2011-01-24 05:58:40 | sebukoleth | set | messages:
+ msg6350 |
2011-01-24 05:57:13 | sebukoleth | set | messages:
+ msg6349 |
2011-01-24 05:31:30 | pjenvey | set | messages:
+ msg6348 |
2011-01-24 05:18:21 | sebukoleth | set | messages:
+ msg6347 |
2011-01-24 00:34:37 | sebukoleth | set | messages:
+ msg6346 |
2011-01-22 21:25:05 | pjenvey | set | status: open -> closed resolution: fixed messages:
+ msg6335 title: Threading code and JSR-223 -> warnings module fails under JSR-223 |
2011-01-22 19:51:16 | pjenvey | set | assignee: pjenvey nosy:
+ pjenvey |
2011-01-22 06:48:17 | sebukoleth | create | |
|