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: Sébastien B. <seb...@te...> - 2016-05-13 15:59:32
|
Hi all, I have currently a problem with imports I do not understand. This is what happens (Jython 2.7.0, java 1.8.0u66, on debian 8): ----8< ---- 8< ---- ./jython.sh Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_66 Type "help", "copyright", "credits" or "license" for more information. >>> import sys; sys.path ['', '/path/to/XMCDA-java.jar', '/home/bigaret/lang/python/Lib', '/home/bigaret/lang/python/jython-standalone-2.7.0.jar/Lib', '__classpath__', '__pyclasspath__/'] >>> import org.xmcda.parsers.xml # this one fails here.... Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named xmcda >>> from org.xmcda.parsers.xml.xmcda_3_0 import XMCDAParser >>> import org.xmcda.parsers.xml # ...but now it succeeds >>> org.xmcda.parsers.xml <java package org.xmcda.parsers.xml 0x2> >>> sys.path ['', '/path/to/XMCDA-java.jar', '/home/bigaret/lang/python/Lib', '/home/bigaret/lang/python/jython-standalone-2.7.0.jar/Lib', '__classpath__', '__pyclasspath__/'] ----8< ---- 8< ---- Note that the first import fails, while the last (which is the same statement) succeeds --and sys.path was untouched, there is just an import between the two identical imports) Does someone has any hint why I get such a strange behaviour, or can point me to the right documentation to read? I could unfortunately not find any hint on such peculiarities when searching in jython's doc or on the web in general. Thanks in advance, __ Sébastien. NB: The jython.sh is a simple bash script: ----8< ---- 8< ---- #! /bin/bash JAVA=/usr/local/java8/bin/java JYTHON_STANDALONE_JAR=/home/bigaret/lang/python/jython-standalone-2.7.0.jar XMCDA_LIB="/path/to/XMCDA-java.jar" export JYTHONPATH="${XMCDA_LIB}" "${JAVA}" -cp "${JYTHON_STANDALONE_JAR}" org.python.util.jython ----8< ---- 8< ---- (and I have the same behaviour when adding XMCDA_LIB to the java '-cp' argument. -- Sébastien Bigaret Institut Mines-Télécom - Télécom Bretagne (Département LUSSI) CNRS - UMR 6285 Lab-STICC (Pôle CID - Équipe DECIDE) Technopôle Brest-Iroise - CS 83818 - 29238 Brest Cedex 3 - France Tél. +33 (0)2 29 00 14 22 |
From: Jimmy <jim...@gm...> - 2016-05-11 01:32:40
|
Great work On Fri, May 6, 2016 at 2:46 AM, Fabio Zadrozny <fa...@gm...> wrote: > PyDev 5.0.0 Released > > Release Highlights: > ------------------------------- > > * **Important** PyDev now requires Java 8. > > * PyDev 4.5.5 is the last release supporting Java 7. > * See: http://www.pydev.org/update_sites/index.html for the update site > of older versions of PyDev. > * See: the **PyDev does not appear after install** section on > http://www.pydev.org/download.html for help on using a Java 8 vm in > Eclipse. > > * PyUnit view now persists its state across restarts. > > * Fixed issue in super() code completion. > > * PyDev.Debugger updated to the latest version. > > * No longer showing un-needed shell on Linux on startup when showing > donation dialog. > > * Fixed pyedit_wrap_expression to avoid halt of the IDE on Ctrl+1 -> Wrap > expression. > > 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/ > > > > ------------------------------------------------------------------------------ > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
From: Fabio Z. <fa...@gm...> - 2016-05-05 18:47:19
|
PyDev 5.0.0 Released Release Highlights: ------------------------------- * **Important** PyDev now requires Java 8. * PyDev 4.5.5 is the last release supporting Java 7. * See: http://www.pydev.org/update_sites/index.html for the update site of older versions of PyDev. * See: the **PyDev does not appear after install** section on http://www.pydev.org/download.html for help on using a Java 8 vm in Eclipse. * PyUnit view now persists its state across restarts. * Fixed issue in super() code completion. * PyDev.Debugger updated to the latest version. * No longer showing un-needed shell on Linux on startup when showing donation dialog. * Fixed pyedit_wrap_expression to avoid halt of the IDE on Ctrl+1 -> Wrap expression. 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: Matt R. <mjr...@gm...> - 2016-04-26 22:39:18
|
Hi all I built Jython from latest source on linux using Open JDK 7, Python 2.7. I easy_install virtualenv then create and enter a new environment. When I run: import timeit timeit.timeit('"-".join(str(n) for n in range(1000))', number=10000) I wait something of the order of 6 seconds before completion. For comparison it's about 5 seconds using the system python which is more or less expected. When I install a python package, namely the testing library robotframework via this virtual environments pip, then the execution time increases to 20 seconds. When I run tests via robot or install any python packages, it takes a lot longer than normal. So much so that the 4 times slower observed on the simple timeit above would be an improvement for these tasks! What could be possible reasons for such a drastic reduction in performance? |
From: Quanah Gibson-M. <qu...@zi...> - 2016-04-09 19:29:26
|
--On Saturday, April 09, 2016 7:01 PM +0000 Chris Clark <Chr...@ac...> wrote: > I discovered > http://fwierzbicki.blogspot.com/2016/02/jython-271-beta3-released.html > this morning. Same behavior with Jython 2.7.1b3 (standalone jar). I would suggest filing a bug report @ http://bugs.jython.org --Quanah -- Quanah Gibson-Mount Platform Architect Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration A division of Synacor, Inc |
From: Chris C. <Chr...@ac...> - 2016-04-09 18:01:29
|
I discovered http://fwierzbicki.blogspot.com/2016/02/jython-271-beta3-released.html this morning. Same behavior with Jython 2.7.1b3 (standalone jar). Chris |
From: Chris C. <Chr...@ac...> - 2016-04-09 03:40:25
|
TL;DR I need a way to convert str type into a Java array of bytes type, jarray used to be the way to do this with all previous versions of Jython before 2.7. I'm seeing a change in behavior in Jython 2.7.0 compared with Jython 2.5.3 related to jarray and bytes. Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:48:36) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_67 Type "help", "copyright", "credits" or "license" for more information. >>> import jarray >>> sval = 'a string' >>> print type(sval) <type 'str'> >>> x = jarray.array(sval, 'b') >>> Above works fine. Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_67 Type "help", "copyright", "credits" or "license" for more information. >>> import jarray >>> sval = 'a string' >>> print type(sval) <type 'str'> >>> x = jarray.array(sval, 'b') Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Type not compatible with array type Above fails :-( I can't see anything in the docs about this. There is the new bytearray support in Jython 2.7.0 which appears to work for the above example: >>> x = jarray.array(bytearray(sval), 'b') But this doesn't really work once things get more complicated. >>> sval = ''.join([chr(z) for z in range(0xff + 1)]) >>> x = jarray.array(bytearray(sval), 'b') Traceback (most recent call last): File "<stdin>", line 1, in <module> OverflowError: value too large for byte I don't even know what too large might mean, it seems to be a problem with values above 128. This is preventing blob/binary support from working in jyjdbc (https://bitbucket.org/clach04/jyjdbc/) with Jython 2.7.0, binary works fine in Jython 2.2 and 2.5.3. Thanks, Chris |
From: Jeff E. <jem...@fr...> - 2016-04-07 15:00:24
|
Since I use Jython primarily to script my Java application, I tend to use Java API's and would do it this way: from java.nio.charset import Charset from java.lang import String s = str(String(aByteArray,Charset.forName('UTF-8'))) but I would omit the str() part and just keep the Java String and let Jython convert if and when it needs to. s = String(aByteArray,Charset.forName('UTF-8')) On 4/7/2016 2:36 AM, Master Of The wrote: > Hi, > > I am having java byte[] available to me from JDBC driver which Id > like to convert to Jython str/unicode types (with specified charset when > converting to unicode eg. utf8). > > Whats the best way to do this? > > ... unless of course its as simple as: > > s_str = str(rs.getString(...)) > s_unicode = str(rs.getString(...)).decode('utf8') > > Regards |
From: Master Of T. <hi....@bt...> - 2016-04-07 08:36:27
|
Hi, I am having java byte[] available to me from JDBC driver which Id like to convert to Jython str/unicode types (with specified charset when converting to unicode eg. utf8). Whats the best way to do this? ... unless of course its as simple as: s_str = str(rs.getString(...)) s_unicode = str(rs.getString(...)).decode('utf8') Regards -- Master Of The Universe hi....@bt... |
From: Fernando C. <fc...@gm...> - 2016-03-22 16:10:02
|
Hi there, I worked on a script to scrap some information from a web site. Before, I just used a shell script that called wget with the right parameters to do a session log-in, retrieve the session cookies, then afterwards perform the required calls to several .php scripts to retrieve the info I wanted to a file on disk, which I ten parsed. BUT the server changed its code, and while the URLs for the PHP scripts remain the same, what was passed before as HTTP-GET requests is now handled via POST URLencoded AJAX requests, and the server is refusing http get requests so my scripts work no more. Q: what would be the easiest way to redo my scripts in Jython, particularly, is there any built-in code to deal with ajax POST requests, and urlencode? or any third party Java library that is known to work well from Jython? Thanks in advance. FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell |
From: Jim B. <jim...@py...> - 2016-02-24 01:16:53
|
David, Thanks for this experience report! It's great to hear that Sphinx works without problems for you, once you applied the workaround you found. We still want to fix the failing Sphinx tests (see http://bugs.jython.org/issue2288), but I suspect these are edge cases for Python compatibility at this point for Jython. re os.makedirs - in general, I have found the Java-based solution found as part of Java 7 is very robust (especially on Windows). The one change I would make in your solution is to use https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createDirectories(java.nio.file.Path,%20java.nio.file.attribute.FileAttribute...), so you can get the mode set. Making this be the default implementation in the os module makes sense to me. Lastly, it would be great if you could submit a bug report, including traceback, etc, so we can trap the error you are seeing and turn it into an appropriate OSError, with errno properly set. - Jim On Tue, Feb 23, 2016 at 11:16 AM, David Charles <dav...@gm...> wrote: > Here I am, reporting back as I now have *working* Sphinx documentation for > my Jython+JavaFX project! Thank you for your support. > > The root issue seems to have been the OS. I upgraded the server from > Ubuntu 12.04.5 to Ubuntu 14.04.4 and was able to install Jython 2.7.0 > without the 'passwd.pw_passwd' exception. > > After the fact, I discovered that I was using this java: > > $ java -version > java version "1.7.0_95" > OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1) > OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) > > And that the JAVA_HOME environment variable was unset. > > I was able to install Sphinx1.3.3 into this Jython instance and generate > my documentation after overcoming only a few additional obstacles. > > 1. os.makedirs() failed for me. I replaced the default implementation of > os.makedirs() in $JYTHON_HOME/Lib/os.py with this and was able to keep > moving: > > import java.io.File > return java.io.File(name).mkdirs() > > My own failure of os.makedirs() looked exactly like this issue: > http://bugs.jython.org/issue1885 > > 2. To get my JavaFX-dependent modules to import, I had to do some hackery > on the headless server to ensure that the JavaFX runtime was already > running, and running in headless mode with Monocle. (But, that has nothing > to do with Jython.) > > Thanks again for your support and for the great platform that is Jython. > This story has a happy ending. > > David > > > On Tue, Jan 12, 2016 at 8:03 AM, David Charles <dav...@gm... > > wrote: > >> Jim, >> >> Thanks for commenting. It works for me too *on my laptop*. It does not >> work for me on *the virtual machine provided by my employer*, which I now >> see is 'Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-77-generic x86_64)'. >> >> Perhaps I should upgrade that (virtual) box to 14.04.2 LTS before >> bothering this list any further. >> >> Just in case it is useful, here are the results of my attempts to install >> several different versions of Jython that I just happened to have laying >> around on the virtual machine: >> >> ./installjython jython-installer-2.7.0.jar $HOME/jython2.7.0 # FAIL: >> passwd.pw_passwd >> ./installjython jython-installer-2.7.1b1.jar $HOME/jython2.7.1b1 # FAIL: >> passwd.pw_passwd >> ./installjython jython-installer-2.7.1b2.jar $HOME/jython2.7.1b2 # FAIL: >> passwd.pw_passwd >> ./installjython jython-installer-2.7-b2.jar $HOME/jython2.7b2 # PASS >> ./installjython jython-installer-2.7-b4.jar $HOME/jython2.7b4 # PASS >> >> And, here are the results of my attempts to install Sphinx into each of >> the previous attempted installations. >> >> ./installsphinx $HOME/jython2.7.0 # FAIL: umask >> ./installsphinx $HOME/jython2.7.1b1 # FAIL: umask >> ./installsphinx $HOME/jython2.7.1b2 # FAIL: umask >> ./installsphinx $HOME/jython2.7b2 # FAIL: CERT_REQUIRED >> ./installsphinx $HOME/jython2.7b4 # FAIL: umask >> >> $JAVA_HOME/bin/java -version responds as expected. I did not try >> unsetting JAVA_HOME, as /usr/bin/java is version 1.6.0_34. >> >> Thanks again, >> David >> >> >> On Mon, Jan 11, 2016 at 4:50 PM, Jim Baker <jim...@py...> wrote: >> >>> David, >>> >>> First, it works for me, running against 2.7.1 master. So let's see what >>> we have here. I think you have two separate issues: >>> >>> 1. Installing Jython, with pip support. We have been making progress on >>> updating various aspects of Jython 2.7.1 master so that it supports latest >>> pip/setuptools. (Although I think it would work with 2.7.0 final.) But to >>> me, your problems look more of an issue with the Jython installer (see >>> http://bugs.jython.org/issue2346). I would check the following >>> >>> $JAVA_HOME/bin/java -version >>> >>> If that test above doesn't work, you have a JAVA_HOME set so that it >>> does NOT works with Jython 2.7. ( FWIW, unsetting JAVA_HOME usually is the >>> easiest choice.) >>> >>> 2. Using Sphinx. We have some broken unit tests in Sphinx ( >>> http://bugs.jython.org/issue2288), but I don't think these really >>> matter for Sphinx users; instead they are more useful for Jython developers >>> to identify good edge cases. >>> >>> So for my realistic test case, I tried running Sphinx on Jython against >>> the source of the Jython book, https://github.com/jython/book. After >>> setting up a minimal conf.py, that worked just fine. (Note we will still >>> need to translate some of the directives in the concurrency chapter I >>> wrote, but that also occurs with >>> http://jython.readthedocs.org/en/latest/, which probably uses CPython >>> to run Sphinx.) >>> >>> - JimI have JAVA_HOME pointing >>> >>> On Wed, Jan 6, 2016 at 2:25 PM, David Charles < >>> dav...@gm...> wrote: >>> >>>> I have made a little progress: The IOException goes away if I pass a >>>> full, absolute path to -d >>>> >>>> Next problem, my installation of Jython 2.7.1b2 fails with a different >>>> error: >>>> >>>> $ java -jar jython-installer-2.7.1b2.jar -s -d $JYTHON_HOME >>>> Performing silent installation >>>> 10 % >>>> 20 % >>>> 30 % >>>> 40 % >>>> 50 % >>>> 60 % >>>> 70 % >>>> Generating start scripts ... >>>> Installing pip and setuptools >>>> 90 % >>>> ...lots of output... >>>> [Loaded jnr.posix.JavaPasswd from >>>> file:/home/me/jython2.7.1b2/jython.jar] >>>> Traceback (most recent call last): >>>> File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 161, in >>>> _run_module_as_main >>>> return _run_code(code, main_globals, None,I have JAVA_HOME pointing >>>> File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 72, in _run_code >>>> exec code in run_globals >>>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__main__.py", line 4, >>>> in <module> >>>> ensurepip._main() >>>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line >>>> 220, in _main >>>> bootstrap( >>>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line >>>> 123, in bootstrap >>>> _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) >>>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 45, >>>> in _run_pip >>>> import pip >>>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", >>>> line 10, in <module> >>>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/util.py", line >>>> 17, in <module> >>>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>>> line 109, in <module> >>>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>>> line 71, in _get_build_prefix >>>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>>> line 66, in __get_username >>>> File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 60, in getpwuid >>>> return struct_passwd(entry) >>>> File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 36, in __new__ >>>> pwd = (newStringOrUnicode(pwd.loginName), >>>> newStringOrUnicode(pwd.password), int(pwd.UID), >>>> NotImplementedError: passwd.pw_passwd unimplemented >>>> 100 % >>>> Congratulations! You successfully installed Jython 2.7.1b2 to directory >>>> /home/c11319/jython2.7.1b2. >>>> >>>> This appears to be the same issue reported here: >>>> >>>> * http://bugs.jython.org/issue2333 >>>> >>>> Try as I might, I cannot get past this. Moreover, I do not understand >>>> the error, as I do not see any attempt to access passwd.pw_passwd in the >>>> offending line (pwd.py:36). Perhaps that is a clue? >>>> >>>> This is my environment: >>>> >>>> $ export | grep -e JAVA -e JYTHON >>>> declare -x JAVA_ENCODING="UTF-8" >>>> declare -x JAVA_HOME="/usr/local/jdk1.8.0_66" >>>> declare -x JAVA_MEM="512m" >>>> declare -x JAVA_OPTS="-verbose" >>>> declare -x JAVA_STACK="-Xss1024k" >>>> declare -x JYTHON_HOME="/home/me/jython2.7.1b2" >>>> declare -x JYTHON_OPTS="-v" >>>> >>>> As an aside: I thought it strange that I had to put '-Xss' into >>>> JAVA_STACK, but I did not have to put '-Xmx' into JAVA_MEM. Without the >>>> '-Xss' prefix in JAVA_STACK, my 1024k was interpreted to be a main class. >>>> >>>> David >>>> >>>> >>>> On Wed, Jan 6, 2016 at 1:03 PM, Quanah Gibson-Mount <qu...@zi...> >>>> wrote: >>>> >>>>> --On Wednesday, January 06, 2016 12:45 PM -0700 David Charles < >>>>> dav...@gm...> wrote: >>>>> >>>>> >>>>>> >>>>>> I just tried it. Jython2.7.1b2+Sphinx-1.3.3 appears to fail in >>>>>> precisely the same ways. >>>>>> >>>>> >>>>> Damn, it was worth a shot. :/ >>>>> >>>>> I notice the original bug <http://bugs.jython.org/issue2349> notes >>>>> other env variables may require being set outside of JAVA_HOME >>>>> (comment#4). Have you looked at setting them in addition to JAVA_HOME? >>>>> >>>>> >>>>> --Quanah >>>>> >>>>> >>>>> -- >>>>> >>>>> Quanah Gibson-Mount >>>>> Platform Architect >>>>> Zimbra, Inc. >>>>> -------------------- >>>>> Zimbra :: the leader in open source messaging and collaboration >>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> Jython-users mailing list >>>> Jyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jython-users >>>> >>>> >>> >> > |
From: David C. <dav...@gm...> - 2016-02-23 18:16:22
|
Here I am, reporting back as I now have *working* Sphinx documentation for my Jython+JavaFX project! Thank you for your support. The root issue seems to have been the OS. I upgraded the server from Ubuntu 12.04.5 to Ubuntu 14.04.4 and was able to install Jython 2.7.0 without the 'passwd.pw_passwd' exception. After the fact, I discovered that I was using this java: $ java -version java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.1) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) And that the JAVA_HOME environment variable was unset. I was able to install Sphinx1.3.3 into this Jython instance and generate my documentation after overcoming only a few additional obstacles. 1. os.makedirs() failed for me. I replaced the default implementation of os.makedirs() in $JYTHON_HOME/Lib/os.py with this and was able to keep moving: import java.io.File return java.io.File(name).mkdirs() My own failure of os.makedirs() looked exactly like this issue: http://bugs.jython.org/issue1885 2. To get my JavaFX-dependent modules to import, I had to do some hackery on the headless server to ensure that the JavaFX runtime was already running, and running in headless mode with Monocle. (But, that has nothing to do with Jython.) Thanks again for your support and for the great platform that is Jython. This story has a happy ending. David On Tue, Jan 12, 2016 at 8:03 AM, David Charles <dav...@gm...> wrote: > Jim, > > Thanks for commenting. It works for me too *on my laptop*. It does not > work for me on *the virtual machine provided by my employer*, which I now > see is 'Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-77-generic x86_64)'. > > Perhaps I should upgrade that (virtual) box to 14.04.2 LTS before > bothering this list any further. > > Just in case it is useful, here are the results of my attempts to install > several different versions of Jython that I just happened to have laying > around on the virtual machine: > > ./installjython jython-installer-2.7.0.jar $HOME/jython2.7.0 # FAIL: > passwd.pw_passwd > ./installjython jython-installer-2.7.1b1.jar $HOME/jython2.7.1b1 # FAIL: > passwd.pw_passwd > ./installjython jython-installer-2.7.1b2.jar $HOME/jython2.7.1b2 # FAIL: > passwd.pw_passwd > ./installjython jython-installer-2.7-b2.jar $HOME/jython2.7b2 # PASS > ./installjython jython-installer-2.7-b4.jar $HOME/jython2.7b4 # PASS > > And, here are the results of my attempts to install Sphinx into each of > the previous attempted installations. > > ./installsphinx $HOME/jython2.7.0 # FAIL: umask > ./installsphinx $HOME/jython2.7.1b1 # FAIL: umask > ./installsphinx $HOME/jython2.7.1b2 # FAIL: umask > ./installsphinx $HOME/jython2.7b2 # FAIL: CERT_REQUIRED > ./installsphinx $HOME/jython2.7b4 # FAIL: umask > > $JAVA_HOME/bin/java -version responds as expected. I did not try > unsetting JAVA_HOME, as /usr/bin/java is version 1.6.0_34. > > Thanks again, > David > > > On Mon, Jan 11, 2016 at 4:50 PM, Jim Baker <jim...@py...> wrote: > >> David, >> >> First, it works for me, running against 2.7.1 master. So let's see what >> we have here. I think you have two separate issues: >> >> 1. Installing Jython, with pip support. We have been making progress on >> updating various aspects of Jython 2.7.1 master so that it supports latest >> pip/setuptools. (Although I think it would work with 2.7.0 final.) But to >> me, your problems look more of an issue with the Jython installer (see >> http://bugs.jython.org/issue2346). I would check the following >> >> $JAVA_HOME/bin/java -version >> >> If that test above doesn't work, you have a JAVA_HOME set so that it does >> NOT works with Jython 2.7. ( FWIW, unsetting JAVA_HOME usually is the >> easiest choice.) >> >> 2. Using Sphinx. We have some broken unit tests in Sphinx ( >> http://bugs.jython.org/issue2288), but I don't think these really matter >> for Sphinx users; instead they are more useful for Jython developers to >> identify good edge cases. >> >> So for my realistic test case, I tried running Sphinx on Jython against >> the source of the Jython book, https://github.com/jython/book. After >> setting up a minimal conf.py, that worked just fine. (Note we will still >> need to translate some of the directives in the concurrency chapter I >> wrote, but that also occurs with http://jython.readthedocs.org/en/latest/, >> which probably uses CPython to run Sphinx.) >> >> - JimI have JAVA_HOME pointing >> >> On Wed, Jan 6, 2016 at 2:25 PM, David Charles <dav...@gm... >> > wrote: >> >>> I have made a little progress: The IOException goes away if I pass a >>> full, absolute path to -d >>> >>> Next problem, my installation of Jython 2.7.1b2 fails with a different >>> error: >>> >>> $ java -jar jython-installer-2.7.1b2.jar -s -d $JYTHON_HOME >>> Performing silent installation >>> 10 % >>> 20 % >>> 30 % >>> 40 % >>> 50 % >>> 60 % >>> 70 % >>> Generating start scripts ... >>> Installing pip and setuptools >>> 90 % >>> ...lots of output... >>> [Loaded jnr.posix.JavaPasswd from file:/home/me/jython2.7.1b2/jython.jar] >>> Traceback (most recent call last): >>> File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 161, in >>> _run_module_as_main >>> return _run_code(code, main_globals, None,I have JAVA_HOME pointing >>> File "/home/c11319/jython2.7.1b2/Lib/runpy.py", line 72, in _run_code >>> exec code in run_globals >>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__main__.py", line 4, >>> in <module> >>> ensurepip._main() >>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 220, >>> in _main >>> bootstrap( >>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 123, >>> in bootstrap >>> _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) >>> File "/home/c11319/jython2.7.1b2/Lib/ensurepip/__init__.py", line 45, >>> in _run_pip >>> import pip >>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", >>> line 10, in <module> >>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/util.py", line >>> 17, in <module> >>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>> line 109, in <module> >>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>> line 71, in _get_build_prefix >>> File "/tmp/tmpvmUCiQ/pip-1.6-py2.py3-none-any.whl/pip/locations.py", >>> line 66, in __get_username >>> File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 60, in getpwuid >>> return struct_passwd(entry) >>> File "/home/c11319/jython2.7.1b2/Lib/pwd.py", line 36, in __new__ >>> pwd = (newStringOrUnicode(pwd.loginName), >>> newStringOrUnicode(pwd.password), int(pwd.UID), >>> NotImplementedError: passwd.pw_passwd unimplemented >>> 100 % >>> Congratulations! You successfully installed Jython 2.7.1b2 to directory >>> /home/c11319/jython2.7.1b2. >>> >>> This appears to be the same issue reported here: >>> >>> * http://bugs.jython.org/issue2333 >>> >>> Try as I might, I cannot get past this. Moreover, I do not understand >>> the error, as I do not see any attempt to access passwd.pw_passwd in the >>> offending line (pwd.py:36). Perhaps that is a clue? >>> >>> This is my environment: >>> >>> $ export | grep -e JAVA -e JYTHON >>> declare -x JAVA_ENCODING="UTF-8" >>> declare -x JAVA_HOME="/usr/local/jdk1.8.0_66" >>> declare -x JAVA_MEM="512m" >>> declare -x JAVA_OPTS="-verbose" >>> declare -x JAVA_STACK="-Xss1024k" >>> declare -x JYTHON_HOME="/home/me/jython2.7.1b2" >>> declare -x JYTHON_OPTS="-v" >>> >>> As an aside: I thought it strange that I had to put '-Xss' into >>> JAVA_STACK, but I did not have to put '-Xmx' into JAVA_MEM. Without the >>> '-Xss' prefix in JAVA_STACK, my 1024k was interpreted to be a main class. >>> >>> David >>> >>> >>> On Wed, Jan 6, 2016 at 1:03 PM, Quanah Gibson-Mount <qu...@zi...> >>> wrote: >>> >>>> --On Wednesday, January 06, 2016 12:45 PM -0700 David Charles < >>>> dav...@gm...> wrote: >>>> >>>> >>>>> >>>>> I just tried it. Jython2.7.1b2+Sphinx-1.3.3 appears to fail in >>>>> precisely the same ways. >>>>> >>>> >>>> Damn, it was worth a shot. :/ >>>> >>>> I notice the original bug <http://bugs.jython.org/issue2349> notes >>>> other env variables may require being set outside of JAVA_HOME >>>> (comment#4). Have you looked at setting them in addition to JAVA_HOME? >>>> >>>> >>>> --Quanah >>>> >>>> >>>> -- >>>> >>>> Quanah Gibson-Mount >>>> Platform Architect >>>> Zimbra, Inc. >>>> -------------------- >>>> Zimbra :: the leader in open source messaging and collaboration >>>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >>> >>> >> > |
From: Rafael B. <be...@hs...> - 2016-02-19 15:44:34
|
First of all, I appreciate your continued interest in helping me with the problem. I am using jython2.7.0. I’ve tried the program on two versions of the Mac OS, El Capitan and an older version on another computer (I don’t recall the number off hand). I’ve been swamped with work the last couple of days, so I haven’t had a chance to try your suggestions, but I will soon. I will post my result on the mailing list. Meanwhile, I continue to welcome any new insights on the problem. Cordially, Rafael > On Feb 18, 2016, at 6:03 PM, Stefan Richthofer <Ste...@gm...> wrote: > > Rafael, sorry, I had read your email too quickly and had misconcepted the issue in the sense > that the window would not display at all. (That's why I suggested to call frame.show > and try the JOptionPane-based test program.) > Given that the window actually *does* display makes my suggestions rather irrelevant I suppose. > > However, I can also not reproduce the *actual* issue on my system - here the button causes > the console to print "Clicked!" as expected (using Jython 2.7.1 beta 3 and Java 7). > Maybe you can first check that it's not a console issue: Let the click change the button- > or frame capture instead. Does ordinary console printing work? > What Jython- and Java version are you using? > > -Stefan > > > >> Gesendet: Donnerstag, 18. Februar 2016 um 17:27 Uhr >> Von: "Bejarano, Rafael P." <be...@hs...> >> An: "Stefan Richthofer" <Ste...@gm...> >> Cc: "jyt...@li..." <jyt...@li...> >> Betreff: RE: [Jython-users] Help with broken code >> >> Thank you for your prompt reply. I'll give your suggestions a try. >> >> Rafael >> ________________________________________ >> From: Stefan Richthofer [Ste...@gm...] >> Sent: Wednesday, February 17, 2016 2:52 PM >> To: Bejarano, Rafael P. >> Cc: jyt...@li... >> Subject: Re: [Jython-users] Help with broken code >> >> Hello Rafael, >> >> trying your program on linux, it works like expected. >> However, did you try to call frame.show()? >> (maybe instead of frame.visible = True) >> >> If this also fails, can you confirm that the equivalent Java-program would work? >> Given that it works on my setup, it is possible that on your system >> something with Java is broken rather than with Jython. >> >> In case you don't speak Java, try the trivial swing program: >> >> from javax.swing import JOptionPane >> JOptionPane.showInputDialog("Hello Jython"); >> >> in Java: >> >> public static class TestSwing { >> public static void main(String[] args) { >> javax.swing.JOptionPane.showInputDialog("Hello Jython"); >> } >> } >> >> If this works in Java, but not in Jython, I'd suggest to file an issue on bugs.jython.org. >> Also helpful: Did you apply some specific change that broke the program? Some update of >> Java or Jython, or some System update? Every information about what caused the breakage >> is helpful. >> >> Best >> >> Stefan >> >> >>> Gesendet: Mittwoch, 17. Februar 2016 um 19:07 Uhr >>> Von: "Rafael Bejarano" <be...@hs...> >>> An: jyt...@li... >>> Betreff: [Jython-users] Help with broken code >>> >>> Hello, >>> >>> The demo program below used to work, but now, when the button is clicked, nothing happens, although the window displaying the button does open just fine. I run it in the Macintosh Unix terminal. Any assistance with this problem would be greatly appreciated. >>> >>> Rafael Bejarano >>> >>> from javax.swing import JButton, JFrame >>> frame = JFrame('Hello, Jython!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE, size = (300,300)) >>> def change_text(event): >>> print "Clicked!" >>> >>> button = JButton('Click Me!', actionPerformed=change_text) >>> frame.add(button) >>> frame.visible = True >>> ------------------------------------------------------------------------------ >>> Site24x7 APM Insight: Get Deep Visibility into Application Performance >>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >>> Monitor end-to-end web transactions and take corrective actions now >>> Troubleshoot faster and improve end-user experience. Signup Now! >>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >>> |
From: Hasan D. <has...@gm...> - 2016-02-19 08:12:10
|
Works fine for me -- Mac OS X El Capital JDK 1.8, jython 2.7b3 -- H On 17 February 2016 at 10:07, Rafael Bejarano <be...@hs...> wrote: > Hello, > > The demo program below used to work, but now, when the button is clicked, > nothing happens, although the window displaying the button does open just > fine. I run it in the Macintosh Unix terminal. Any assistance with this > problem would be greatly appreciated. > > Rafael Bejarano > > from javax.swing import JButton, JFrame > frame = JFrame('Hello, Jython!', defaultCloseOperation = > JFrame.EXIT_ON_CLOSE, size = (300,300)) > def change_text(event): > print "Clicked!" > > button = JButton('Click Me!', actionPerformed=change_text) > frame.add(button) > frame.visible = True > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > -- OpenPGP: http://hasan.d8u.us/gpg.asc Sent from my mobile device Envoyé de mon portable |
From: Stefan R. <Ste...@gm...> - 2016-02-19 00:03:24
|
Rafael, sorry, I had read your email too quickly and had misconcepted the issue in the sense that the window would not display at all. (That's why I suggested to call frame.show and try the JOptionPane-based test program.) Given that the window actually *does* display makes my suggestions rather irrelevant I suppose. However, I can also not reproduce the *actual* issue on my system - here the button causes the console to print "Clicked!" as expected (using Jython 2.7.1 beta 3 and Java 7). Maybe you can first check that it's not a console issue: Let the click change the button- or frame capture instead. Does ordinary console printing work? What Jython- and Java version are you using? -Stefan > Gesendet: Donnerstag, 18. Februar 2016 um 17:27 Uhr > Von: "Bejarano, Rafael P." <be...@hs...> > An: "Stefan Richthofer" <Ste...@gm...> > Cc: "jyt...@li..." <jyt...@li...> > Betreff: RE: [Jython-users] Help with broken code > > Thank you for your prompt reply. I'll give your suggestions a try. > > Rafael > ________________________________________ > From: Stefan Richthofer [Ste...@gm...] > Sent: Wednesday, February 17, 2016 2:52 PM > To: Bejarano, Rafael P. > Cc: jyt...@li... > Subject: Re: [Jython-users] Help with broken code > > Hello Rafael, > > trying your program on linux, it works like expected. > However, did you try to call frame.show()? > (maybe instead of frame.visible = True) > > If this also fails, can you confirm that the equivalent Java-program would work? > Given that it works on my setup, it is possible that on your system > something with Java is broken rather than with Jython. > > In case you don't speak Java, try the trivial swing program: > > from javax.swing import JOptionPane > JOptionPane.showInputDialog("Hello Jython"); > > in Java: > > public static class TestSwing { > public static void main(String[] args) { > javax.swing.JOptionPane.showInputDialog("Hello Jython"); > } > } > > If this works in Java, but not in Jython, I'd suggest to file an issue on bugs.jython.org. > Also helpful: Did you apply some specific change that broke the program? Some update of > Java or Jython, or some System update? Every information about what caused the breakage > is helpful. > > Best > > Stefan > > > > Gesendet: Mittwoch, 17. Februar 2016 um 19:07 Uhr > > Von: "Rafael Bejarano" <be...@hs...> > > An: jyt...@li... > > Betreff: [Jython-users] Help with broken code > > > > Hello, > > > > The demo program below used to work, but now, when the button is clicked, nothing happens, although the window displaying the button does open just fine. I run it in the Macintosh Unix terminal. Any assistance with this problem would be greatly appreciated. > > > > Rafael Bejarano > > > > from javax.swing import JButton, JFrame > > frame = JFrame('Hello, Jython!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE, size = (300,300)) > > def change_text(event): > > print "Clicked!" > > > > button = JButton('Click Me!', actionPerformed=change_text) > > frame.add(button) > > frame.visible = True > > ------------------------------------------------------------------------------ > > Site24x7 APM Insight: Get Deep Visibility into Application Performance > > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > > Monitor end-to-end web transactions and take corrective actions now > > Troubleshoot faster and improve end-user experience. Signup Now! > > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
From: Bejarano, R. P. <be...@hs...> - 2016-02-18 16:28:27
|
Thank you for your prompt reply. I'll give your suggestions a try. Rafael ________________________________________ From: Stefan Richthofer [Ste...@gm...] Sent: Wednesday, February 17, 2016 2:52 PM To: Bejarano, Rafael P. Cc: jyt...@li... Subject: Re: [Jython-users] Help with broken code Hello Rafael, trying your program on linux, it works like expected. However, did you try to call frame.show()? (maybe instead of frame.visible = True) If this also fails, can you confirm that the equivalent Java-program would work? Given that it works on my setup, it is possible that on your system something with Java is broken rather than with Jython. In case you don't speak Java, try the trivial swing program: from javax.swing import JOptionPane JOptionPane.showInputDialog("Hello Jython"); in Java: public static class TestSwing { public static void main(String[] args) { javax.swing.JOptionPane.showInputDialog("Hello Jython"); } } If this works in Java, but not in Jython, I'd suggest to file an issue on bugs.jython.org. Also helpful: Did you apply some specific change that broke the program? Some update of Java or Jython, or some System update? Every information about what caused the breakage is helpful. Best Stefan > Gesendet: Mittwoch, 17. Februar 2016 um 19:07 Uhr > Von: "Rafael Bejarano" <be...@hs...> > An: jyt...@li... > Betreff: [Jython-users] Help with broken code > > Hello, > > The demo program below used to work, but now, when the button is clicked, nothing happens, although the window displaying the button does open just fine. I run it in the Macintosh Unix terminal. Any assistance with this problem would be greatly appreciated. > > Rafael Bejarano > > from javax.swing import JButton, JFrame > frame = JFrame('Hello, Jython!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE, size = (300,300)) > def change_text(event): > print "Clicked!" > > button = JButton('Click Me!', actionPerformed=change_text) > frame.add(button) > frame.visible = True > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Stefan R. <Ste...@gm...> - 2016-02-17 20:53:05
|
Hello Rafael, trying your program on linux, it works like expected. However, did you try to call frame.show()? (maybe instead of frame.visible = True) If this also fails, can you confirm that the equivalent Java-program would work? Given that it works on my setup, it is possible that on your system something with Java is broken rather than with Jython. In case you don't speak Java, try the trivial swing program: from javax.swing import JOptionPane JOptionPane.showInputDialog("Hello Jython"); in Java: public static class TestSwing { public static void main(String[] args) { javax.swing.JOptionPane.showInputDialog("Hello Jython"); } } If this works in Java, but not in Jython, I'd suggest to file an issue on bugs.jython.org. Also helpful: Did you apply some specific change that broke the program? Some update of Java or Jython, or some System update? Every information about what caused the breakage is helpful. Best Stefan > Gesendet: Mittwoch, 17. Februar 2016 um 19:07 Uhr > Von: "Rafael Bejarano" <be...@hs...> > An: jyt...@li... > Betreff: [Jython-users] Help with broken code > > Hello, > > The demo program below used to work, but now, when the button is clicked, nothing happens, although the window displaying the button does open just fine. I run it in the Macintosh Unix terminal. Any assistance with this problem would be greatly appreciated. > > Rafael Bejarano > > from javax.swing import JButton, JFrame > frame = JFrame('Hello, Jython!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE, size = (300,300)) > def change_text(event): > print "Clicked!" > > button = JButton('Click Me!', actionPerformed=change_text) > frame.add(button) > frame.visible = True > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Rafael B. <be...@hs...> - 2016-02-17 18:25:47
|
Hello, The demo program below used to work, but now, when the button is clicked, nothing happens, although the window displaying the button does open just fine. I run it in the Macintosh Unix terminal. Any assistance with this problem would be greatly appreciated. Rafael Bejarano from javax.swing import JButton, JFrame frame = JFrame('Hello, Jython!', defaultCloseOperation = JFrame.EXIT_ON_CLOSE, size = (300,300)) def change_text(event): print "Clicked!" button = JButton('Click Me!', actionPerformed=change_text) frame.add(button) frame.visible = True |
From: Stefan R. <Ste...@gm...> - 2016-02-16 14:30:13
|
Following up on the recent release of Jython 2.7.1 beta 3 I am proud to announce the release of JyNI 2.7-alpha.3. Take a look at jyni.org or go directly to the release: https://github.com/Stewori/JyNI/releases/tag/v2.7-alpha.3 Binaries are provided for target platforms JyNI is tested on. It should in principle be buildable/workable also on other posix platforms. Main new features are: * OS-X support * CPython-compatible garbage collection of native objects * capable of loading ctypes (core functionality tested) What comes next? ---------------- With this release I updated jyni.org/#roadmap; take a look to learn about plans for alpha.4, alpha.5 and beta.1. However, before I continue work toward alpha.4 I will check some Python frameworks that have ctypes-only native dependency for workability (e.g. PyOpenGL). Wish List --------- With this release I also introduce the Wish List section jyni.org/#wish-list. The intention of this list is to focus on actually *needed* API with priority before attempting exhaustive API support. If you have desire for a specific extension to work, send me a mail regarding jyni.org/#wish-list and I will check whether your extension is a "low hanging fruit" that can be supported via minor improvements. Especially extensions from the above mentioned category of ctypes-only-dependency highly qualify. Enjoy! -Stefan |
From: <fwi...@gm...> - 2016-02-05 04:18:26
|
On behalf of the Jython development team, I'm pleased to announce that Jython 2.7.1 beta3 is released! Thanks to Amobee for sponsoring my work on Jython, and thanks to the many contributors to Jython! Details are here: http://fwierzbicki.blogspot.com/2016/02/jython-271-beta3-released.html -Frank |
From: Tami T. <tta...@us...> - 2016-02-04 21:35:51
|
Last year, I posted a question on zxJDBC + jython2.7.0 DATE issue, but it was not really a zxJDBC issue. Instead, there seems an issue somewhere in JTable-related code. When I ran the attached code with Jython 2.7.0, I see "2015-12-30" and "2015-12-31", which should be "2015-12-31" and "2016-01-01". When I ran the attached code with Jython 2.5.3, I see correct results. Can I report this as a bug? Tami Takamiya ==== from javax.swing import JFrame, JTable, JScrollPane from javax.swing.table import DefaultTableModel from datetime import date class TableViewer(JFrame): def __init__(self): data = [[1, date(2015, 12, 31)], [2, date(2016, 1, 1)]] columnNames = ['Number', 'Date'] table = JTable() table.setModel(DefaultTableModel(data, columnNames)) self.add(JScrollPane(table)) self.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE) self.pack() self.visible = True viewer = TableViewer() ==== Tami Takamiya/Raleigh/IBM@IBMUS wrote on 06/23/2015 10:15:47 AM: > From: Tami Takamiya/Raleigh/IBM@IBMUS > To: jyt...@li... > Date: 06/23/2015 10:17 AM > Subject: [Jython-users] zxJDBC + jython2.7.0 DATE issue > > Hello, > > We have been using an in-house Swing GUI application written in > jython script with zxJDBC to query data stored in our database (IBM DB2). > > One of our developer noticed that the dates stored in database were > incorrectly displayed on the application. The dates displayed are > one-day prior to the correct dates. > For example, if the correct date is 2015-02-15, 2015-02-14 is displayed. > > I found the problem occurs when jython2.7.0 is used. No problem was > found when the same script was invoked with jython2.5.3. The same > JDBC driver was used for both jython versions. > > So I am guessing there might be a bug in newer zxJDBC code... Is it > a known issue? Thank you. > > Tami Takamiya > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Fabio Z. <fa...@gm...> - 2016-01-27 13:27:01
|
PyVmMonitor 1.0.1 is now available for download *Release Highlights:* - Pstats files may be passed in the command line to be opened in pyvmmonitor-ui. - Fixed issue opening PyVmMonitor in Mac OS (El Capitan). - Opening PStats file may fail because it's linked to a Python version, so, in such a situation, PyVmMonitor allows opening it using a different interpreter. - Command line examples are properly wrapped with quotes on Windows. See: http://www.pyvmmonitor.com for more information. *What is PyVmMonitor?* PyVmMonitor is a profiler with a simple goal: being the best way to profile a Python program. *Features* - Attach profiler to a running (CPython) program - Deterministic profiling through cProfile/profile integration - On demand profiling with Yappi integration - Analyze existing PStats results - Open DOT files - Programatic API access - Profile on a different machine - Multiple processes support (multiprocessing, django...) - Live sampling/CPU view - Select time range - Group samples by method or line - PyDev integration - PyCharm integration Enjoy! 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: Fabio Z. <fa...@gm...> - 2016-01-22 11:49:17
|
Release Highlights: ------------------------------- * Debugger * Fixed issue in set next statement (#PyDev 651). * pydevd.settrace was stopping inside the debugger and not in user code (#PyDev 648). * subprocess.Popen could crash when running non python executable (#PyDev 650). * PyUnit view * The last pinned test suite appears as the first entry in the history. * More information is shown on the test run history. * A string representation of the test suite can be saved in the clipboard (last item in the test run history). * Indexing: fixed issue where the indexing and code-analysis could race with each other and one could become corrupt. 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: Jon C. <jon...@gm...> - 2016-01-20 21:50:48
|
I've run into a problem with zxJDBC and clobs. The code: from com.ziclix.python.sql import zxJDBC as DBAPI ... crs.execute("update session set xml=? " "where " "id=1", [xml_clob], {0:DBAPI.CLOB}) Generates the error: crs.execute("update session set xml=? " Error: ORA-01461: can bind a LONG value only for insert into a LONG column [SQLCode: 1461], [SQLState: 72000] I have to use the actual clob datatype here, as using the STRING data type produces: crs.execute("update session set xml=? " Error: error setting index [1], type [12] [SQLCode: 0] setString can only process strings of less than 32766 chararacters [SQLCode: 17157] The problem is no longer critical to me as I've managed to work around it by using direct JDBC calls: ps=db.__connection__.prepareStatement("update session set xml=? " "where " "id=1" ) ps.setStringForClob(1,xml_clob) ps.executeUpdate() However, even with that workaround, I'm a bit nervous as to if that statement executes in the same transaction as the others. Is the zxJDBC clob code broken, or am I somehow using it incorrectly? FWIW, I'm running Jython 2.7.0 installed via brew on Mac OS 10.10.5. Thanks for any help you can provide. -Jon |
From: Fabio Z. <fa...@gm...> - 2016-01-14 15:53:10
|
Release Highlights: ------------------------------- * Debugger * Cython speedup modules are now available for the debugger (see performance improvements at: https://www.speedtin.com/reports/7_pydevd_cython). * It is considerably faster even without the speedup modules (see performance improvements at: https://www.speedtin.com/reports/8_pydevd_pure_python). * When debugging multiple processes the console wasn't being updated to the selected stack in the debug view. * Many bug-fixes. * Improved the search to always play safe and update the index so that the matches are always consistent (#PyDev-634). * Fixed issue renaming top-level module on refactoring. * Refactoring has option to rename variable to a standard case style. * Improved the parser that extracted the outline for global tokens to deal with async and consider declarations inside ifs. * Code completion of properties with @property no longer shows arguments parenthesis (#PyDev-453). * Preventing a freeze if some code-analysis takes too much time (#PyDev-636). * Ctrl+1 can be used to wrap/unwrap the contents of brackets (patch by yohell). 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/ |