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: Adam B. <ada...@gm...> - 2018-08-11 21:56:03
|
Hi Deb On top of that, depending on how the script you’re calling is written, it might be useful to call one layer down instead of using I/O. Jython lets you work with python objects fairly directly from Java, and call Python functions directly as well. So if your python script has internal functions and classes, you could call straight into them. YMMV. Adam > 在 2018年8月12日,上午7:41,Jeff Allen <ja...@fa...> 写道: > > I don't know anything about Spring Boot, but the standalone JAR must be on your path for you to be able to refer to "PythonInterpreter" in your code. So by "not detected" I guess you mean that Jython appear not to find its library (which is in the standalone JAR). Jython guesses based on the path to the JAR it seems to be running from (that org.python.core.Py was loaded from) but telling it is safer. > > This bit struck me as odd: > > props.put("python.home", "C:\\Dev\\Python27"); > > That's not the location of CPython is it? That would cause you a world of confusion. > > However, none of that addresses your question about argv (meaning sys.argv I suppose). The important observation here is that "PythonInterpreter.initialize" is a static method that sets a default argv that all interpreters will see as they are created. It makes a big difference now what version you are using. In 2.7.0, all interpreters were really the same interpreter: you got a separate namespace for your main, but the modules where all the same, in particular every interpreter shared sys. In 2.7.1, each interpreter gets its own sys, and so each module used is loaded again for each interpreter. > > I cannot say off the top of my head what the behaviour of the default argv and sys.argv is, but I'm pretty sure the interpreter you make in the next line has its own sys and the sys.argv you could set independently, although not in the constructor. > > Jeff Allen > >> On 11/08/2018 20:16, Debashish wrote: >> Hi, >> >> I am trying to call a Python Script from a Spring Boot applications. There are two issues I am facing: >> (1) The Jython Standalone JAR is not detected and I am forced to supply the local install path as "python.home" to make it work. >> (2) Once I initialize the /PythonInterpreter/ class, it seems it caches the argv I supply to it as for the subsequent invocation it uses the same argv values. I do call the close() method to do cleanup, but it doesn't help :( >> >> Properties preprops = System.getProperties(); >> Properties props = new Properties(); >> >> props.put("python.home", "C:\\Dev\\Python27"); >> props.put("python.console.encoding", "UTF-8"); >> props.put("python.security.respectJavaAccessibility", "false"); >> props.put("python.import.site", "false"); >> >> PythonInterpreter.initialize(preprops, props, arguments); >> PythonInterpreter pyInterpreter = new PythonInterpreter(); >> >> try { >> resource = new ClassPathResource("mypyscript.py"); >> out = new ByteArrayOutputStream(); >> err = new ByteArrayOutputStream(); >> pyInterpreter.setOut(out); >> pyInterpreter.setErr(err); >> pyInterpreter.execfile(resource.getInputStream()); >> result[0] = out.toString(); // reading the output >> result[1] = err.toString(); // reading any error >> } catch (Exception e) { >> throw new Exception(e); >> } finally { >> try { >> if (out != null) >> out.close(); >> if (err != null) >> err.close(); >> pyInterpreter.close(); >> } catch (IOException e) { >> e.printStackTrace(); >> } >> } >> >> Please help. >> >> Thanks, >> >> Deb >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Jeff A. <ja...@fa...> - 2018-08-11 21:41:49
|
I don't know anything about Spring Boot, but the standalone JAR must be on your path for you to be able to refer to "PythonInterpreter" in your code. So by "not detected" I guess you mean that Jython appear not to find its library (which is in the standalone JAR). Jython guesses based on the path to the JAR it seems to be running from (that org.python.core.Py was loaded from) but telling it is safer. This bit struck me as odd: props.put("python.home", "C:\\Dev\\Python27"); That's not the location of CPython is it? That would cause you a world of confusion. However, none of that addresses your question about argv (meaning sys.argv I suppose). The important observation here is that "PythonInterpreter.initialize" is a static method that sets a default argv that all interpreters will see as they are created. It makes a big difference now what version you are using. In 2.7.0, all interpreters were really the same interpreter: you got a separate namespace for your main, but the modules where all the same, in particular every interpreter shared sys. In 2.7.1, each interpreter gets its own sys, and so each module used is loaded again for each interpreter. I cannot say off the top of my head what the behaviour of the default argv and sys.argv is, but I'm pretty sure the interpreter you make in the next line has its own sys and the sys.argv you could set independently, although not in the constructor. Jeff Allen On 11/08/2018 20:16, Debashish wrote: > Hi, > > I am trying to call a Python Script from a Spring Boot applications. > There are two issues I am facing: > (1) The Jython Standalone JAR is not detected and I am forced to > supply the local install path as "python.home" to make it work. > (2) Once I initialize the /PythonInterpreter/ class, it seems it > caches the argv I supply to it as for the subsequent invocation it > uses the same argv values. I do call the close() method to do cleanup, > but it doesn't help :( > > Properties preprops = System.getProperties(); > Properties props = new Properties(); > > props.put("python.home", "C:\\Dev\\Python27"); > props.put("python.console.encoding", "UTF-8"); > props.put("python.security.respectJavaAccessibility", "false"); > props.put("python.import.site", "false"); > > PythonInterpreter.initialize(preprops, props, arguments); > PythonInterpreter pyInterpreter = new PythonInterpreter(); > > try { > resource = new ClassPathResource("mypyscript.py"); > out = new ByteArrayOutputStream(); > err = new ByteArrayOutputStream(); > pyInterpreter.setOut(out); > pyInterpreter.setErr(err); > pyInterpreter.execfile(resource.getInputStream()); > result[0] = out.toString(); // reading the output > result[1] = err.toString(); // reading any error > } catch (Exception e) { > throw new Exception(e); > } finally { > try { > if (out != null) > out.close(); > if (err != null) > err.close(); > pyInterpreter.close(); > } catch (IOException e) { > e.printStackTrace(); > } > } > > Please help. > > Thanks, > > Deb > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Debashish <deb...@gm...> - 2018-08-11 19:16:52
|
Hi, I am trying to call a Python Script from a Spring Boot applications. There are two issues I am facing: (1) The Jython Standalone JAR is not detected and I am forced to supply the local install path as "python.home" to make it work. (2) Once I initialize the *PythonInterpreter* class, it seems it caches the argv I supply to it as for the subsequent invocation it uses the same argv values. I do call the close() method to do cleanup, but it doesn't help :( Properties preprops = System.getProperties(); Properties props = new Properties(); props.put("python.home", "C:\\Dev\\Python27"); props.put("python.console.encoding", "UTF-8"); props.put("python.security.respectJavaAccessibility", "false"); props.put("python.import.site", "false"); PythonInterpreter.initialize(preprops, props, arguments); PythonInterpreter pyInterpreter = new PythonInterpreter(); try { resource = new ClassPathResource("mypyscript.py"); out = new ByteArrayOutputStream(); err = new ByteArrayOutputStream(); pyInterpreter.setOut(out); pyInterpreter.setErr(err); pyInterpreter.execfile(resource.getInputStream()); result[0] = out.toString(); // reading the output result[1] = err.toString(); // reading any error } catch (Exception e) { throw new Exception(e); } finally { try { if (out != null) out.close(); if (err != null) err.close(); pyInterpreter.close(); } catch (IOException e) { e.printStackTrace(); } } Please help. Thanks, Deb |
From: Fabio Z. <fa...@gm...> - 2018-07-06 11:55:12
|
*PyDev 6.4.3 Release Highlights* PyDev changes: - *Debugger* - Notification of threads is done as they're created instead of synchronized afterwards. - Support for using frame evaluation disabled by default as it made the debugger much slower on some cases. - Fixed case where breakpoint was missed if an exception was raised in a given line. - Properly break on unhandled exceptions on threads. - Add missing import which affected repl with IPython. - Fix for case where breakpoints could be missed. - Fixed issue tracing lamda functions. - pydevd.settrace() could end up not stopping the debugger properly. - Fixed critical error on debugger (could deadlock when creating a new thread). - *Code Formatter* - It's now possible to use the PyDev code formatter using the command line. - Install with: *pip install pydevf* - Fixes many common formatter errors. - Tries to keep code close to the original formatting. - see: https://github.com/fabioz/PyDev.Formatter for more details. - Fixed issue where blank line was being put in the wrong place in the PyDev code formatter. - Grammar: fixed issue parsing f-strings. - Fixed issue sending current line to interactive console (F2). About PyDev PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development, now also available for Python on Visual Studio Code. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. It is also available as a standalone through LiClipse with goodies such as multiple cursors, theming and support for many other languages, such as Django Templates, Jinja2, Html, JavaScript, etc. Links: PyDev: http://pydev.org PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode LiClipse: http://www.liclipse.com PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/ Cheers, Fabio Zadrozny |
From: Jeff A. <ja...@fa...> - 2018-04-06 22:31:10
|
Hello Hartmut. The fact that jython.exe (and hence org.python.util.jython) works for you, and not your application, suggests the problem may be in setting up the encoding of stdin/out/err for the interpreter. Jython struggles to guess the correct encoding for the console. The interpreter will look in system properties (at python.io.encoding). Values may come from the java command, registry file or environment variables. If it has nothing to go on, it may result in a default ASCII encoding or desperate use of the Java file.encoding.You can check what it concluded by asking from within the interpreter about sys.stderr.encoding, etc.. The launcher also sets the property python.launcher.tty=true, although this mostly affects whether you get an interactive console prompt. It may also be worth ensuring a plain console is in use (python.console="") if you are not using it interactively, and perhaps python.console.encoding will matter too. (I forget the order of precedence with python.io.encoding.) We've done significant work since 2.7.0 on encoding, including resistance to coding errors in error messages (that may result from coding errors ... ). When it comes, 2.7.2 would be worth trying anywhere ASCII is not enough. Jeff Allen On 06/04/2018 10:36, Niemann, Hartmut wrote: > Hello! > > I am using Jython 2.7.0 embedded into a java application, that is: not the jython.exe, on windows. > > When an exception parameter or a line in the stack trace contains an Umlaut, there seems to be an exception in the exception handler itself, > because all I get (if one of the source lines has umlauts) is > > Exception in thread "main" > Exception: org.python.core.PyException thrown from the UncaughtExceptionHandler in thread "main" > > If the string representation of the exception itself contains an umlaut, stack trace and type of the exception are printed, but the argument is missing. > > (If run from jython.exe, the output is completely readable, although some garbage characters are printed instead of the umlauts, which is (sort of) to be expected.) > > if I catch the exception like > except Exception as e: > print ('Uncaught exception in main: %s' % e) > print (sys.exc_info()) > import traceback > traceback.print_tb(sys.exc_info()[2]) > i get reasonable output. > > ---- the snippet from the embedding java function is: > //start python > PythonInterpreter.initialize(null, null, argv.toArray(new String[0])); > > PythonInterpreter py; > py = new PythonInterpreter(); > > //exec > py.exec("import cpsgen_py"); > > PyObject ret; > ret = py.eval("cpsgen_py.main()"); > > if (ret instanceof PyInteger) { > return ((PyInteger) ret).getValue(); > } > --- a simple examle to try is > s = 'Hallöle' > assert False, s # ä > > What do I see here? Am I doing something wrong when setting up the interpreter? > > > Mit freundlichen Grüßen > Dr. Hartmut Niemann > > Siemens AG > Mobility Division > Rolling Stock > Standardization, Remote Control, Display > MO RS LM EN CCI SRD > Werner-von-Siemens-Str. 67 > 91052 Erlangen, Deutschland > Mobil: +49 173 5342327 > mailto:har...@si... > > www.siemens.com/ingenuityforlife > > Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322 > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Niemann, H. <har...@si...> - 2018-04-06 10:04:16
|
Hello! I am using Jython 2.7.0 embedded into a java application, that is: not the jython.exe, on windows. When an exception parameter or a line in the stack trace contains an Umlaut, there seems to be an exception in the exception handler itself, because all I get (if one of the source lines has umlauts) is Exception in thread "main" Exception: org.python.core.PyException thrown from the UncaughtExceptionHandler in thread "main" If the string representation of the exception itself contains an umlaut, stack trace and type of the exception are printed, but the argument is missing. (If run from jython.exe, the output is completely readable, although some garbage characters are printed instead of the umlauts, which is (sort of) to be expected.) if I catch the exception like except Exception as e: print ('Uncaught exception in main: %s' % e) print (sys.exc_info()) import traceback traceback.print_tb(sys.exc_info()[2]) i get reasonable output. ---- the snippet from the embedding java function is: //start python PythonInterpreter.initialize(null, null, argv.toArray(new String[0])); PythonInterpreter py; py = new PythonInterpreter(); //exec py.exec("import cpsgen_py"); PyObject ret; ret = py.eval("cpsgen_py.main()"); if (ret instanceof PyInteger) { return ((PyInteger) ret).getValue(); } --- a simple examle to try is s = 'Hallöle' assert False, s # ä What do I see here? Am I doing something wrong when setting up the interpreter? Mit freundlichen Grüßen Dr. Hartmut Niemann Siemens AG Mobility Division Rolling Stock Standardization, Remote Control, Display MO RS LM EN CCI SRD Werner-von-Siemens-Str. 67 91052 Erlangen, Deutschland Mobil: +49 173 5342327 mailto:har...@si... www.siemens.com/ingenuityforlife Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Jim Hagemann Snabe; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Cedrik Neike, Michael Sen, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322 |
From: Fabio Z. <fa...@gm...> - 2018-03-21 17:52:35
|
PyDev 6.3.2 Release Highlights PyDev changes: - Type inference - PyDev can now uses information on .pyi files (when along the typed .py file) for type inference. - Fixed issue opening code completion preferences page. About PyDev PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development, now also available for Python on Visual Studio Code. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. It is also available as a standalone through LiClipse with goodies such as multiple cursors, theming and support for many other languages, such as Django Templates, Jinja2, Html, JavaScript, etc. Links: PyDev: http://pydev.org PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode LiClipse: http://www.liclipse.com PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/ Cheers, Fabio Zadrozny |
From: Fabio Z. <fa...@gm...> - 2018-02-28 18:57:47
|
PyDev 6.3.1 Release Highlights - PyDev is now also available for Python coding on Visual Studio Code -- see: http://www.pydev.org/vscode/ for more details. PyDev changes: - Type inference - Folders no longer require *__init__* to be considered a package. - Properly recognize *cx_Oracle.cp36-win_amd64.pyd* as *cx_Oracle* ( *#PyDev-885*). - Empty numpy arrays properly handled in debugger. - Fix to get path to activate conda env on Linux. - Fix debug console freeze when evaluation raises exception with Python 3.5 onwards (*#PyDev-877*). - Interactive console accepting new args passed by IPython in showtraceback (*#PyDev-882*). - Improve terminating running processes (and children). - Properly parsing f-strings which contain double *{{* or *}}* ( *#PyDev-884*). About PyDev PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development, now also available for Python on Visual Studio Code. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. It is also available as a standalone through LiClipse with goodies such as Multiple cursors, theming and support for many other languages, such as Django Templates, Jinja2, Html, JavaScript, etc. Links: PyDev: http://pydev.org PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode LiClipse: http://www.liclipse.com PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/ Cheers, Fabio Zadrozny |
From: Jeff M. <jef...@za...> - 2018-02-12 22:00:39
|
You need to get an email, and separate the MIME attachments. Use python libraries, or java libraries; "jython" doesn't factor too much into it On Mon, Feb 12, 2018 at 4:50 PM, pr144 via Jython-users < jyt...@li...> wrote: > I see a lot of examples of sending attachments... via Jython code. > > I need to login to an SMTP server and detach a file and save to the hard > drive, can this be done? > > Thanks.... > > PR > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: pr144 <pr...@ya...> - 2018-02-12 21:50:38
|
I see a lot of examples of sending attachments... via Jython code. I need to login to an SMTP server and detach a file and save to the hard drive, can this be done? Thanks.... PR |
From: Stefan R. <Ste...@gm...> - 2018-02-12 19:05:47
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div> <div>AFAIK matplotlib contains some C-extension code. This is currently not supported in Jython, JyNI is the way to go here.</div> <div>However, JyNI cannot load matplotlib as of this writing, but might support it in a future release.</div> <div>So maybe nothing is wrong with your paths, Jython just does not know what to do with a native library.</div> <div> </div> <div>-Stefan</div> <div> <div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> <div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 12. Februar 2018 um 17:42 Uhr<br/> <b>Von:</b> "Jeff Mitchell" <jef...@za...><br/> <b>An:</b> "Parastoo Delgoshaei" <p.d...@gm...><br/> <b>Cc:</b> jyt...@li...<br/> <b>Betreff:</b> Re: [Jython-users] Modules are not found when importing Python in Jython</div> <div name="quoted-content"> <div>If you're running inside a WAR or EAR, it can be tricky to know what module path to include in your sys.path .. at least, I find it so. (ie: Storing modules in Web-content, and exploded paths by a container, etc) <div> </div> <div>I tend to have a config file that I pull in as part of bootstrapping, which appends various path to sys.path or the CLASSPATH. </div> <div> </div> <div>Perhaps try printing our your paths, and making sure the pu modules and .jar dependencies are in there, or adding some paths.</div> <div> </div> <div>jeff</div> </div> <div class="gmail_extra"> <div class="gmail_quote">On Mon, Feb 12, 2018 at 11:34 AM, Parastoo Delgoshaei <span><<a href="mailto:p.d...@gm..." onclick="parent.window.location.href='p.d...@gm...'; return false;" target="_blank">p.d...@gm...</a>></span> wrote: <blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;"> <div>Greetings, <div> </div> <div>I am trying to use a Python class in my Jython code. The Python code works fine by itself and is using some modules such as matplotlib. However, when I attempt to import it in my Jython code, I get the error:</div> <div> </div> <div> </div> <div>'<span style="color: rgb(0,0,0);font-family: Menlo;font-size: 11.0px;">No module named matplotlib'.</span></div> <div> </div> <div> </div> <div>I, also, have added the path to Python site-packages to my classpath and still did not see the issue resolved.</div> <div> </div> <div>Thank you</div> <div> </div> <div> </div> </div> <br/> ------------------------------------------------------------------------------<br/> Check out the vibrant tech community on one of the world's most<br/> engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" target="_blank">http://sdm.link/slashdot</a><br/> _______________________________________________<br/> Jython-users mailing list<br/> <a href="mailto:Jyt...@li..." onclick="parent.window.location.href='Jyt...@li...'; return false;" target="_blank">Jyt...@li...</a><br/> <a href="https://lists.sourceforge.net/lists/listinfo/jython-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-users</a><br/> </blockquote> </div> </div> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot_______________________________________________" target="_blank">http://sdm.link/slashdot_______________________________________________</a> Jython-users mailing list Jyt...@li... <a href="https://lists.sourceforge.net/lists/listinfo/jython-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-users</a></div> </div> </div> </div></div></body></html> |
From: Jeff M. <jef...@za...> - 2018-02-12 17:00:18
|
If you're running inside a WAR or EAR, it can be tricky to know what module path to include in your sys.path .. at least, I find it so. (ie: Storing modules in Web-content, and exploded paths by a container, etc) I tend to have a config file that I pull in as part of bootstrapping, which appends various path to sys.path or the CLASSPATH. Perhaps try printing our your paths, and making sure the pu modules and .jar dependencies are in there, or adding some paths. jeff On Mon, Feb 12, 2018 at 11:34 AM, Parastoo Delgoshaei < p.d...@gm...> wrote: > Greetings, > > I am trying to use a Python class in my Jython code. The Python code works > fine by itself and is using some modules such as matplotlib. However, when > I attempt to import it in my Jython code, I get the error: > > > 'No module named matplotlib'. > > > I, also, have added the path to Python site-packages to my classpath and > still did not see the issue resolved. > > Thank you > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
From: Parastoo D. <p.d...@gm...> - 2018-02-12 16:34:53
|
Greetings, I am trying to use a Python class in my Jython code. The Python code works fine by itself and is using some modules such as matplotlib. However, when I attempt to import it in my Jython code, I get the error: 'No module named matplotlib'. I, also, have added the path to Python site-packages to my classpath and still did not see the issue resolved. Thank you |
From: Mike R. <mro...@ya...> - 2018-01-20 13:45:36
|
Has anyone succeeded in getting Jython to work with Gradle? I'm aware of two Jython-Gradle plugins: com.github.rzabini.gradle-jyton com.github.hierynomus.jython ... but both of these seem to have been put together for purely Python-oriented purposes. In fact I opened an "issue" with the rzabini Github project and the author said he didn't know how to get this done. The other one hasn't replied at the time of writing but I don't hold out that much hope. It is slightly frustrating as one should be able to do this moderately easily, I would have thought, given that the .jars can be on either the PYTHONPATH or the CLASSPATH. The problem being that Gradle handles dependency management automatically, squirrelling away dependency jars in quite complicated paths under GRADLE_HOME. Unfortunately I don't know enough about the internal workings of Gradle to have much of a clue about this. HINT (!): Jim Baker himself said, in Jan 2016, that Gradle use would be a "top priority" for 2.7.2.: Issue 2182: Build Jython with Gradle - Jython tracker | | | Issue 2182: Build Jython with Gradle - Jython tracker | | | |
From: Jeff A. <ja...@fa...> - 2018-01-19 22:43:40
|
Q1. There is certainly no energy for work on 2.5, but 2.7 should be made to work on Java 9, I believe. The only real obstacle I'm aware of is the one noted in the Java 9 release notes. I think we do that in an attempt to infer the console encoding. Users may be able to live without that. Q2. Yeah, that's kind of shabby. Question of time/capacity I think. Yes, Frank's blog ought to be correct about 2.7.1 and ISTR that I've installed from there. Jeff Allen On 10/01/2018 08:37, Houtman, Roland wrote: > > Dear users, > > Q 1) > > I haven’t found any news/information about, > > if Java 9 will be supported for Jython2.5 or Jython 2.7 > > Does someone know? > > Q 2) > > Also, the http://jython.org site is not showing version Jython 2.7.1. > > But on http://wiki.python.org it does direct you to jython.org > > Why is the .org site not updated? > > Sidenote: > > I found this blog > http://fwierzbicki.blogspot.nl/2017/07/jython-271-final-released.html > It says everything is in maven? > > Kind regards, > > Roland > |
From: Houtman, R. <Rol...@nl...> - 2018-01-10 08:50:43
|
Dear users, Q 1) I haven't found any news/information about, if Java 9 will be supported for Jython2.5 or Jython 2.7 Does someone know? Q 2) Also, the http://jython.org site is not showing version Jython 2.7.1. But on http://wiki.python.org it does direct you to jython.org Why is the .org site not updated? Sidenote: I found this blog http://fwierzbicki.blogspot.nl/2017/07/jython-271-final-released.html It says everything is in maven? Kind regards, Roland |
From: Mike R. <mro...@ya...> - 2018-01-03 08:24:22
|
Jeff, OK thanks... have also found a Gradle Jython plugin at Gradle - Plugin: com.github.rzabini.gradle-jython | | | Gradle - Plugin: com.github.rzabini.gradle-jython | | | no idea whether this is "official" ... haven't yet experimented with this but will do in due course... Mike From: Jeff Allen <ja...@fa...> To: Mike Rodent <mro...@ya...>; Frank Wierzbicki <fwi...@gm...>; "jyt...@li..." <jyt...@li...> Sent: Monday, 1 January 2018, 21:02 Subject: Re: [Jython-users] State of the language 2018-01-01? Mike: Thanks for your encouragement. I think it's an oversight that jython.org still shows 2.7.0 as the current version. See http://fwierzbicki.blogspot.co.uk/2017/07/jython-271-final-released.html . A concurrency bug emerged in 2.7.1, which is the only good reason I know not to promote it, and in other ways it is a desirable upgrade. 1) For what's happening in development jython-dev mailing list would be your best bet. 2) Ambition often outruns our ability to contribute. We aim for a 2.7.2 in the New Year, and I tagged 2.7.2a in the code base without remembering Jim's ambition to support Gradle in that release specifically. I've looked at Gradle (at the time of Jim's post I think) but have not used it myself, so am not well-placed to contribute on it. github.com/jythontools/jython simply tracks the official repository at hg.python.org/jython, to which we push all new work. We are preparing to move to a workflow based at GitHub. That would include mastering the website jython.org from GitHub, making fixing oversights a team game. Jeff Allen On 01/01/2018 13:40, Mike Rodent via Jython-users wrote: Hi, Jython is my favourite language but it's not exactly mainstream. Looking at the decline in the number of postings to this group I was getting the impression that interest has been declining since 2007. At jython.org the latest reference there is to 2.7.0, May 2015. Imagine my surprise, then, when doing a bit of general searching about using Jython and Gradle, to find this page: github.com/jythontools/jython - said to be "a mirror" of jython.org! Here I find that the latest readme was updated a month ago... It's not signed or dated but makes reference to a talk by Jim Baker in 2015. But the Jython version here is 2.7.2a. An alpha version... so, for one thing, how come 2.7.1 is not present in beta at jython.org? At bugs.jython.org/issue2182 I also find Jim Baker himself saying in March 2016 that use of Gradle is a "top priority" for 2.7.2. I've always assumed that jython.org was the place to go to find out what's the latest in the language... but I just did a search for "gradle" there and nothing came up: one's impression at that site, presumably intended to be the home of all things Jython, is that nothing at all has happened to the language since 2015. So two questions: 1) where's the best URL to bookmark to keep up with the latest in what the developers are doing (is it maybe github?) 2) is there an idiot's guide anywhere to using 2.7.2a with Gradle? | | Thanks ... and keep up the good work! Mike ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Jeff A. <ja...@fa...> - 2018-01-01 21:02:25
|
Mike: Thanks for your encouragement. I think it's an oversight that jython.org still shows 2.7.0 as the current version. See http://fwierzbicki.blogspot.co.uk/2017/07/jython-271-final-released.html . A concurrency bug emerged in 2.7.1, which is the only good reason I know not to promote it, and in other ways it is a desirable upgrade. 1) For what's happening in development jython-dev mailing list would be your best bet. 2) Ambition often outruns our ability to contribute. We aim for a 2.7.2 in the New Year, and I tagged 2.7.2a in the code base without remembering Jim's ambition to support Gradle in that release specifically. I've looked at Gradle (at the time of Jim's post I think) but have not used it myself, so am not well-placed to contribute on it. github.com/jythontools/jython simply tracks the official repository at hg.python.org/jython, to which we push all new work. We are preparing to move to a workflow based at GitHub. That would include mastering the website jython.org from GitHub, making fixing oversights a team game. Jeff Allen On 01/01/2018 13:40, Mike Rodent via Jython-users wrote: > Hi, > > Jython is my favourite language but it's not exactly mainstream. > Looking at the decline in the number of postings to this group I was > getting the impression that interest has been declining since 2007. > > At jython.org the latest reference there is to 2.7.0, May 2015. > > Imagine my surprise, then, when doing a bit of general searching about > using Jython and Gradle, to find this page: > github.com/jythontools/jython - said to be "a mirror" of jython.org! > > Here I find that the latest readme was updated a month ago... It's not > signed or dated but makes reference to a talk by Jim Baker in 2015. > But the Jython version here is 2.7.2a. An alpha version... so, for > one thing, how come 2.7.1 is not present in beta at jython.org? > > At bugs.jython.org/issue2182 I also find Jim Baker himself saying in > March 2016 that use of Gradle is a "top priority" for 2.7.2. > > I've always assumed that jython.org was the place to go to find out > what's the latest in the language... but I just did a search for > "gradle" there and nothing came up: one's impression at that site, > presumably intended to be the home of all things Jython, is that > nothing at all has happened to the language since 2015. > > So two questions: > 1) where's the best URL to bookmark to keep up with the latest in what > the developers are doing (is it maybe github?) > 2) is there an idiot's guide anywhere to using 2.7.2a with Gradle? > > > <http://bugs.jython.org/issue2182> > Thanks ... and keep up the good work! > Mike > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Adam B. <ada...@gm...> - 2018-01-01 14:33:48
|
Hi Malcolm, I've added you. Thanks for contributing. Cheers Adam On 29 December 2017 at 21:35, Malcolm Smith <mal...@gm...> wrote: > Hi, > > I'd like to be added to the Jython wiki editor group so I can update the > mentions of Android. I've already made a number of edits on this subject to > the main python.org wiki. > > My username is MalcolmSmith. > > Thanks, > -- Malcolm > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
From: Mike R. <mro...@ya...> - 2018-01-01 13:50:24
|
Hi, Jython is my favourite language but it's not exactly mainstream. Looking at the decline in the number of postings to this group I was getting the impression that interest has been declining since 2007. At jython.org the latest reference there is to 2.7.0, May 2015. Imagine my surprise, then, when doing a bit of general searching about using Jython and Gradle, to find this page: github.com/jythontools/jython - said to be "a mirror" of jython.org! Here I find that the latest readme was updated a month ago... It's not signed or dated but makes reference to a talk by Jim Baker in 2015. But the Jython version here is 2.7.2a. An alpha version... so, for one thing, how come 2.7.1 is not present in beta at jython.org? At bugs.jython.org/issue2182 I also find Jim Baker himself saying in March 2016 that use of Gradle is a "top priority" for 2.7.2. I've always assumed that jython.org was the place to go to find out what's the latest in the language... but I just did a search for "gradle" there and nothing came up: one's impression at that site, presumably intended to be the home of all things Jython, is that nothing at all has happened to the language since 2015. So two questions: 1) where's the best URL to bookmark to keep up with the latest in what the developers are doing (is it maybe github?)2) is there an idiot's guide anywhere to using 2.7.2a with Gradle? | | Thanks ... and keep up the good work!Mike |
From: Malcolm S. <mal...@gm...> - 2017-12-29 13:35:25
|
Hi, I'd like to be added to the Jython wiki editor group so I can update the mentions of Android. I've already made a number of edits on this subject to the main python.org wiki. My username is MalcolmSmith. Thanks, -- Malcolm |
From: Patrick P. <psy...@gm...> - 2017-12-16 17:50:36
|
hello, just wanted to let you know that I have updated my blog to include posts about Jython. As I learn to Python and Jython language, I will be sharing what I discover and learn. Hopefully, it will encourage new ones learning Python/Jython. I really enjoy working with Jython. Thanks to everyone involved in making a really awesome development tool Blog: https://patrickbp.blogspot.com -- *Patrick Palczewski* _VRS# 818.208.2344_ /Sent from Thunderbird Mail for Linux/ |
From: David C. <dav...@gm...> - 2017-12-14 22:23:53
|
I'm having trouble using Jython 2.7.1 from Ant. Here is my Ant target: <target name="hello-jython"> <script language="jython"> print 'Hello, jython!' </script> </target> And when I execute the target: $ ant hello-jython Buildfile: /home/me/myproject/build.xml hello-jython: BUILD FAILED /home/me/myproject/build.xml:95: Unable to create javax script engine for jython Total time: 0 seconds I copied jython.jar from my Jython2.7.1 installation into $ANT_HOME/lib, and I noticed that it created the famous 'cachedir' folder there when I fired up Ant. The version of Ant in question: $ ant -version Apache Ant(TM) version 1.9.6 compiled on June 29 2015 I will appreciate any tips! Thanks! David |
From: Fabio Z. <fa...@gm...> - 2017-11-30 00:42:17
|
PyDev 6.2.0 Release Highlights - *Interactive Console* - It's possible to use word-wrapping in the PyDev interactive console ( *#PyDev-862*). - *Code Completion* - Checking list unpacking with user specified types. - Code completion aware of variable typing from Python 3.6 ( *#PyDev-866*). - *Others* - Properly terminating child processes of launched python processes on Linux with Java 9 (*#PyDev-871*). - Comments with 3 dashes properly appear in outline in all cases ( *#PyDev-868*). - Properly hyperlinking pytest output. - Accepting *noqa* as a way to skip errors (*#PyDev-814*). - If there's a *flake8: noqa* in the first 3 lines of the file, don't analyze it (*#PyDev-814*). - Fixed issue where a closing peer character was skiped when it was actually not a matching closing peer (*#PyDev-869*). - Fixed issue where line indentation was not correct on a new line with multiple open parenthesis. What is PyDev? PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com What is LiClipse? LiClipse is a PyDev standalone with goodies such as support for Multiple cursors, theming, TextMate bundles and a number of other languages such as Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript, etc. It's also a commercial counterpart which helps supporting the development of PyDev. Details on LiClipse: http://www.liclipse.com/ Cheers, -- Fabio Zadrozny ------------------------------ Software Developer LiClipse http://www.liclipse.com PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com PyVmMonitor - Python Profiler http://www.pyvmmonitor.com/ |
From: Stefan R. <Ste...@gm...> - 2017-11-22 15:34:18
|
Dear Jython developers and users, Next weekend is another Python sprint by "Python Meeting Düsseldorf", https://www.meetup.com/Python-Meeting-Dusseldorf/events/243737124/. (25th and 26th of November in Düsseldorf, Germany) I'll be offering a sprint on Jython there. More specifically I hope we can look into merging Jython 2.7 trunk and Jython 3 sandbox. I'm aware that hardly anyone from this list can make it there in person (if so, even better!), but please feel encouraged to participate remotely via Jython's IRC-channel irc://irc.freenode.net/#jython. We will be online there 11.00-17.30 CET each day (and hopefully fill it with more activity than usual). Potential topics include: Using Jython: - Jython basics / getting started - Python/Java integration (e.g. calling Java from Python and vice versa) - scripting Java with Jython - GUI with JavaFX in Python Developing Jython: - Jython internals / getting started - Bugfixes in Jython core - Can we fix some actual bugs? (I will especially look into current release blockers http://bugs.jython.org/issue2487 and http://bugs.jython.org/issue2570) - Merging Jython 2.7 trunk and Jython 3 sandbox Experimental stuff (What is already workable? Let's try!): - JyNI (e.g. NumPy, ctypes) - Jython 3 Individual stuff: - You have some project or usecase for Jython and need advice? - There is some specific gap keeping you from using Jython? -- Maybe we can fix it or work around. -- Maybe even if it involves a C-Extension (let's tweak JyNI) Looking forward to work with you! -Stefan |