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: Régis R. <reg...@gm...> - 2021-03-02 09:50:10
|
Thank you Jeef, I tried to copy lib into a 'contrib' folder without installing it. It's a bit better, but it still doesn't work... Caused by: org.python.core.PySyntaxError: SyntaxError: no viable alternative at input '"module '{__name__}' has no attribute '{name}'"' (__init__.py, line 42) at org.python.core.ParserFacade.fixParseError(ParserFacade.java:95) ~[jython-2.7.2.jar:2.7.2] at org.python.core.ParserFacade.parse(ParserFacade.java:190) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.compileSource(imp.java:542) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.createFromSource(imp.java:575) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.loadFromSource(imp.java:944) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.find_module(imp.java:769) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.import_next(imp.java:1158) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.import_module_level(imp.java:1350) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.importName(imp.java:1528) ~[jython-2.7.2.jar:2.7.2] at org.python.core.ImportFunction.__call__(__builtin__.java:1285) ~[jython-2.7.2.jar:2.7.2] at org.python.core.PyObject.__call__(PyObject.java:433) ~[jython-2.7.2.jar:2.7.2] at org.python.core.__builtin__.__import__(__builtin__.java:1232) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.importFromAs(imp.java:1620) ~[jython-2.7.2.jar:2.7.2] at org.python.core.imp.importFrom(imp.java:1595) ~[jython-2.7.2.jar:2.7.2] at openpyxl.drawing.image$py.f$0(C:/Tools/jython2.7.2/Lib/site-packages/openpyxl/drawing/image.py:23) ~[na:na] at openpyxl.drawing.image$py.call_function(C:/Tools/jython2.7.2/Lib/site-packages/openpyxl/drawing/image.py) ~[na:na] I can't figure where it comes from. I commented all functions in image.py but still get the same error... Thanks again ! :) Régis Le mar. 2 mars 2021 à 00:02, Jeff Mitchell <jef...@za...> a écrit : > fwiw, with xlsxwriter, I just imported that and good to go. > > https://xlsxwriter.readthedocs.io/ > > I don't even bother with pip in this one project, I have a 'contrib' > directory that I drop in various libs. (Connectivity to internet is > unavailable on this target server, and working on cached egg files or > whatever seemed like work.) So in this case, I clone the repo to a dir in > contrib, use sys.path.append ( contrib-dir-path ), and then import > xlsxwriter > > > On Mon, Mar 1, 2021 at 5:33 PM Régis Ramillien <reg...@gm...> > wrote: > >> Dear jython users, >> >> I'm new to python, and I would like to call a python script from java. >> After a little bit of research, I decided to use jython. >> >> I want the java program to let an admin generate custom excel files using >> python. >> >> That's why I need to install openpyxl, multiprocessing and finally pillow >> to load images into the xlsx. >> >> But installing pillow gives me some troubles. >> First, I got a "java heap space" exception. So I tried installing it >> using this command: >> >> ---------------------------------------------------------------------------------------------- >> jython -J-Xmx1g -m pip install pillow. >> >> ---------------------------------------------------------------------------------------------- >> I know, you're right, 1g seems enormous ! But I still get java heap space >> with 512mb... >> >> And with 1g of memory, I receive this stack: >> >> ---------------------------------------------------------------------------------------------- >> c:\Tools\jython2.7.2\bin>jython -J-Xmx1g -m pip install pillow >> [33mDEPRECATION: A future version of pip will drop support for Python >> 2.7. [0m >> Collecting pillow >> Using cached >> https://files.pythonhosted.org/packages/b3/d0/a20d8440b71adfbf133452d4f6e0fe80de2df7c2578c9b498fb812083383/Pillow-6.2.2.tar.gz >> [31m ERROR: Complete output from command python setup.py egg_info: [0m >> [31m ERROR: Traceback (most recent call last): >> File "<string>", line 1, in <module> >> File >> "C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\setup.py", >> line 25, in <module> >> import mp_compile >> File "mp_compile.py", line 11, in <module> >> from multiprocessing import Pool, cpu_count >> File >> "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\__init__.py", line >> 64, in <module> >> import multiprocessing.patch >> File >> "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 58, >> in <module> >> class ConditionPatch(object): >> File >> "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 61, >> in ConditionPatch >> notify_all = threading._Condition.notifyAll.im_func >> AttributeError: 'module' object has no attribute '_Condition' >> ---------------------------------------- [0m >> [31mERROR: Command "python setup.py egg_info" failed with error code 1 in >> C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\ [0m >> [33mWARNING: You are using pip version 19.1, however version 20.3.4 is >> available. >> You should consider upgrading via the 'pip install --upgrade pip' >> command. [0m >> >> ---------------------------------------------------------------------------------------------- >> >> Does any one able to install pillow on jython ? Or is it a pillow issue ? >> Or my fault ? >> >> Thank you all for your kind help ! >> >> Best regards, >> >> Régis Ramillien >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> > > > -- > > Jeff Mitchell > > Sr Application Architect > > Zayo | Our Fiber Fuels Global Innovation > > 1821 30th Street | Unit A | Boulder, CO 80301 > > Desk: 999.999.9999 | Cell: 999.999.9999 > > jef...@za... > > Purpose <http://zayo.is/signature-purpose> | Network Map > <http://zayo.is/signature-network> | LinkedIn > <http://zayo.is/signature-linkedin> | Twitter > <http://zayo.is/signature-twitter> > > This communication is the property of Zayo and may contain confidential or > privileged information. If you have received this communication in error, > please promptly notify the sender by reply e-mail and destroy all copies of > the communication and any attachments. > > > He who dies with the best barbecue sauce, wins. > |
From: Jeff M. <jef...@za...> - 2021-03-01 23:34:35
|
fwiw, with xlsxwriter, I just imported that and good to go. https://xlsxwriter.readthedocs.io/ I don't even bother with pip in this one project, I have a 'contrib' directory that I drop in various libs. (Connectivity to internet is unavailable on this target server, and working on cached egg files or whatever seemed like work.) So in this case, I clone the repo to a dir in contrib, use sys.path.append ( contrib-dir-path ), and then import xlsxwriter On Mon, Mar 1, 2021 at 5:33 PM Régis Ramillien <reg...@gm...> wrote: > Dear jython users, > > I'm new to python, and I would like to call a python script from java. > After a little bit of research, I decided to use jython. > > I want the java program to let an admin generate custom excel files using > python. > > That's why I need to install openpyxl, multiprocessing and finally pillow > to load images into the xlsx. > > But installing pillow gives me some troubles. > First, I got a "java heap space" exception. So I tried installing it using > this command: > > ---------------------------------------------------------------------------------------------- > jython -J-Xmx1g -m pip install pillow. > > ---------------------------------------------------------------------------------------------- > I know, you're right, 1g seems enormous ! But I still get java heap space > with 512mb... > > And with 1g of memory, I receive this stack: > > ---------------------------------------------------------------------------------------------- > c:\Tools\jython2.7.2\bin>jython -J-Xmx1g -m pip install pillow > [33mDEPRECATION: A future version of pip will drop support for Python 2.7. > [0m > Collecting pillow > Using cached > https://files.pythonhosted.org/packages/b3/d0/a20d8440b71adfbf133452d4f6e0fe80de2df7c2578c9b498fb812083383/Pillow-6.2.2.tar.gz > [31m ERROR: Complete output from command python setup.py egg_info: [0m > [31m ERROR: Traceback (most recent call last): > File "<string>", line 1, in <module> > File > "C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\setup.py", > line 25, in <module> > import mp_compile > File "mp_compile.py", line 11, in <module> > from multiprocessing import Pool, cpu_count > File > "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\__init__.py", line > 64, in <module> > import multiprocessing.patch > File > "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 58, > in <module> > class ConditionPatch(object): > File > "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 61, > in ConditionPatch > notify_all = threading._Condition.notifyAll.im_func > AttributeError: 'module' object has no attribute '_Condition' > ---------------------------------------- [0m > [31mERROR: Command "python setup.py egg_info" failed with error code 1 in > C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\ [0m > [33mWARNING: You are using pip version 19.1, however version 20.3.4 is > available. > You should consider upgrading via the 'pip install --upgrade pip' command. > [0m > > ---------------------------------------------------------------------------------------------- > > Does any one able to install pillow on jython ? Or is it a pillow issue ? > Or my fault ? > > Thank you all for your kind help ! > > Best regards, > > Régis Ramillien > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > -- Jeff Mitchell Sr Application Architect Zayo | Our Fiber Fuels Global Innovation 1821 30th Street | Unit A | Boulder, CO 80301 Desk: 999.999.9999 | Cell: 999.999.9999 jef...@za... Purpose <http://zayo.is/signature-purpose> | Network Map <http://zayo.is/signature-network> | LinkedIn <http://zayo.is/signature-linkedin> | Twitter <http://zayo.is/signature-twitter> This communication is the property of Zayo and may contain confidential or privileged information. If you have received this communication in error, please promptly notify the sender by reply e-mail and destroy all copies of the communication and any attachments. He who dies with the best barbecue sauce, wins. |
From: Régis R. <reg...@gm...> - 2021-03-01 22:33:30
|
Dear jython users, I'm new to python, and I would like to call a python script from java. After a little bit of research, I decided to use jython. I want the java program to let an admin generate custom excel files using python. That's why I need to install openpyxl, multiprocessing and finally pillow to load images into the xlsx. But installing pillow gives me some troubles. First, I got a "java heap space" exception. So I tried installing it using this command: ---------------------------------------------------------------------------------------------- jython -J-Xmx1g -m pip install pillow. ---------------------------------------------------------------------------------------------- I know, you're right, 1g seems enormous ! But I still get java heap space with 512mb... And with 1g of memory, I receive this stack: ---------------------------------------------------------------------------------------------- c:\Tools\jython2.7.2\bin>jython -J-Xmx1g -m pip install pillow [33mDEPRECATION: A future version of pip will drop support for Python 2.7. [0m Collecting pillow Using cached https://files.pythonhosted.org/packages/b3/d0/a20d8440b71adfbf133452d4f6e0fe80de2df7c2578c9b498fb812083383/Pillow-6.2.2.tar.gz [31m ERROR: Complete output from command python setup.py egg_info: [0m [31m ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\setup.py", line 25, in <module> import mp_compile File "mp_compile.py", line 11, in <module> from multiprocessing import Pool, cpu_count File "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\__init__.py", line 64, in <module> import multiprocessing.patch File "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 58, in <module> class ConditionPatch(object): File "C:\Tools\jython2.7.2\Lib\site-packages\multiprocessing\patch.py", line 61, in ConditionPatch notify_all = threading._Condition.notifyAll.im_func AttributeError: 'module' object has no attribute '_Condition' ---------------------------------------- [0m [31mERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\RGISRA~1\AppData\Local\Temp\pip-install-ctmgop\pillow\ [0m [33mWARNING: You are using pip version 19.1, however version 20.3.4 is available. You should consider upgrading via the 'pip install --upgrade pip' command. [0m ---------------------------------------------------------------------------------------------- Does any one able to install pillow on jython ? Or is it a pillow issue ? Or my fault ? Thank you all for your kind help ! Best regards, Régis Ramillien |
From: Fabio Z. <fa...@gm...> - 2020-12-08 18:57:36
|
PyDev 8.1.0 Release Highlights - *Interactive Console* - The selection for which console to open may be saved. (*#PyDev-1112*) - When the *current editor* option is selected, the related interpreter is no longer asked. (*#PyDev-1112*) - *Debugger* (updated to pydevd 2.2.0) - Better support for Python flags when auto-attaching to subprocesses. - Fixes to path translation (when debugging in a different machine). - Catch warnings related to *imp* import from *pkg_resources*. - No longer crashing when running with *Pyjion* (patch by Anthony Shaw). - *Others* - Code analysis now supports *from __future__ import anotations*. ( *#PyDev-1040*) - AST pretty-printing supports printing slices. (*#PyDev-1106*) - Code-completion with auto imports for the builtin module is no longer shown. (*#PyDev-1117*) - MyPy messages from a different file are no longer shown in the current editor. (*#PyDev-1114*) 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: Randall W. <ran...@al...> - 2020-11-01 13:30:44
|
Ask on the JMRI user’s group (https://groups.io/g/jmriusers <https://groups.io/g/jmriusers>); you probably want to use the JMRI APIs to find and delete the car instead of directly manipulating the XML content. > On 01-Nov-2020, at 07:44, James Kelly <jwk...@gm...> wrote: > > Win-10, Java 1.8, current JMRI version, NetBeans IDE, Jython, elementTree > I'm pulling elements from OperationsCarRoster.xml and want to delete some siblings. Since all siblings have the same name <car> how can I select and delete a specific car using attributes? > for example how do I use elementTree Remove(subelement) to delete a car with id="MILW1001" > > i'm using Jython (Python) on Win-10 and elementTree > here's all the code as I have it right now. > > import xml.etree.ElementTree as ET > def __init__(self): > #def open_car_xml_file(): > global trainTree > global trainRoot > trainTree = ET.parse('train.xml') > trainRoot = trainTree.getroot() > #self.add_train_rfid_tags() > print trainRoot > > def drop_car(self, car, engine, location): > for elem in trainRoot: > for subelem in elem.findall('car'): > indentifier = str(subelem.get('engine', default=None)) > if indentifier == engine: > indentifier2 = str(subelem.get('id', default=None)) > if indentifier2 == car: > getDroppedCarData = [0,1,2,3,4,5,6,7] > getDroppedCarData[0] = subelem.get('id', default=None) > getDroppedCarData[1] = subelem.get('roadName', default=None) > getDroppedCarData[2] = subelem.get('roadNumber', default=None) > getDroppedCarData[3] = subelem.get('type', default=None) > getDroppedCarData[4] = subelem.get('color', default=None) > getDroppedCarData[5] = subelem.get('rfid', default=None) > getDroppedCarData[6] = subelem.get('locationId', default=None) > getDroppedCarData[7] = subelem.get('owner', default=None) > (how do I using remove() to delete this record? > > return getDroppedCarData > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: James K. <jwk...@gm...> - 2020-11-01 12:45:20
|
Win-10, Java 1.8, current JMRI version, NetBeans IDE, Jython, elementTree I'm pulling elements from OperationsCarRoster.xml and want to delete some siblings. Since all siblings have the same name <car> how can I select and delete a specific car using attributes? for example how do I use elementTree Remove(subelement) to delete a car with id="MILW1001" i'm using Jython (Python) on Win-10 and elementTree here's all the code as I have it right now. import xml.etree.ElementTree as ET def __init__(self): #def open_car_xml_file(): global trainTree global trainRoot trainTree = ET.parse('train.xml') trainRoot = trainTree.getroot() #self.add_train_rfid_tags() print trainRoot def drop_car(self, car, engine, location): for elem in trainRoot: for subelem in elem.findall('car'): indentifier = str(subelem.get('engine', default=None)) if indentifier == engine: indentifier2 = str(subelem.get('id', default=None)) if indentifier2 == car: getDroppedCarData = [0,1,2,3,4,5,6,7] getDroppedCarData[0] = subelem.get('id', default=None) getDroppedCarData[1] = subelem.get('roadName', default=None) getDroppedCarData[2] = subelem.get('roadNumber', default=None) getDroppedCarData[3] = subelem.get('type', default=None) getDroppedCarData[4] = subelem.get('color', default=None) getDroppedCarData[5] = subelem.get('rfid', default=None) getDroppedCarData[6] = subelem.get('locationId', default=None) getDroppedCarData[7] = subelem.get('owner', default=None) (how do I using remove() to delete this record? return getDroppedCarData |
From: Jeff M. <jef...@za...> - 2020-10-26 14:33:16
|
May be way off base for .. if you "dabble with programming" (meaning you're not at top of your game right now), then is using jython for serial really the wisest choice? ie: pure python would do better, since it would be a more concrete thing - remove a few uncertainties. The main advantage of jython for you would be that you could also take advantage of some java libraries. Strikes me for now, if you're essentially writing pure python code to talk serial, do it in CPython so you have less surface area for issues; if you then get that working, then run it in jython and see if it still works, or if it fails; this could help you identify if theres a gap in jython or a bug in your code, and then once debugged, you could move on to the parts that need java. If you don't need java at all, then jython is probably not what you need. So, I suggest one step at a time.. debug the python code, as pure python, first, make your life easier :) On Fri, Oct 23, 2020 at 6:54 PM Jon Christopher <jon...@gm...> wrote: > Not jython-specific, but have you tried pyserial by any chance? > > It looks pretty simple: > > https://pyserial.readthedocs.io/en/latest/shortintro.html > <https://urldefense.com/v3/__https://pyserial.readthedocs.io/en/latest/shortintro.html__;!!Bqsxq_o9!j9GtPJ3b0SAlYpyrm_V5GFdXY-3_8Wg0TOZT7kNHE8uftc1xxTjtmPVf9uetHHptpoE$> > > >>> ser = serial.Serial('COM3', 38400, timeout=0,... parity=serial.PARITY_EVEN, rtscts=1)>>> s = ser.read(100) # read up to one hundred bytes... # or as much is in the buffer > > > > > > On Fri, Oct 23, 2020 at 2:34 PM James Kelly <jwk...@gm...> wrote: > >> Hi, >> I'm aware of the fact that I'm about to ask a lot of the group but I do >> need the help. I dabble with programming but have to acknowledge that what >> I need is beyond my abilities to develop; so I hope the group will take >> mercy on an old retired model railroader. >> I have an Arduino that I need to pass ASCII to/from a computer through a >> USB COM1 port. I want to use Jython as I am running Win-10 with a JRE. >> I find a lot of code samples, most using the RXTX library, but nothing >> demonstrating a way the user can input data to send and and at least a >> print statement to show the ASCII input. Most code seems to be in Java and >> I know from reading that it can be used from within Jython. >> I'm old school (before OOP) and to be honest I find the code snippets to >> be confusing. Is there a working example on-line or in a reference book >> that demonstrates what I need -- start to finish? >> Jim K. >> Houston TX. >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> <https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/jython-users__;!!Bqsxq_o9!j9GtPJ3b0SAlYpyrm_V5GFdXY-3_8Wg0TOZT7kNHE8uftc1xxTjtmPVf9uetuNZk1Zo$> >> > _______________________________________________ > Jython-users mailing list > Jyt...@li... > > https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/jython-users__;!!Bqsxq_o9!j9GtPJ3b0SAlYpyrm_V5GFdXY-3_8Wg0TOZT7kNHE8uftc1xxTjtmPVf9uetuNZk1Zo$ > -- Jeff Mitchell Sr Application Architect Zayo | Our Fiber Fuels Global Innovation 1821 30th Street | Unit A | Boulder, CO 80301 Desk: 999.999.9999 | Cell: 999.999.9999 jef...@za... Purpose <http://zayo.is/signature-purpose> | Network Map <http://zayo.is/signature-network> | LinkedIn <http://zayo.is/signature-linkedin> | Twitter <http://zayo.is/signature-twitter> This communication is the property of Zayo and may contain confidential or privileged information. If you have received this communication in error, please promptly notify the sender by reply e-mail and destroy all copies of the communication and any attachments. He who dies with the best barbecue sauce, wins. |
From: James K. <jwk...@gm...> - 2020-10-25 22:57:16
|
I want to bring ASCII into WIN-10 running Jython 2.7 on a com port from my Arduino. I send *Axxxx to the Arduino and it replies with -Axxxx. This code works solid when tested with the Arduino IDE serial monitor. Jim K. Houston TX Using Jython code (below) written in Netbeans IDE -- I send "*ATest/n" out the port and get back the correct decimal values that represent the ASCII table. Question 1 -- I have to use the time.sleep(2.0) statements or the outStream won't be sent. Why? & how to fix it correctly. Question 2 -- I tried to use readline() but the compiler says it doesn't exist. Question 3 -- how do I properly convert the read() byte data to ASCII? & how can I get the SIZE of inStream ///////////// code /////////////////////////// import sys, socket, gnu.io import gnu.io.RXTXPort as RXTX import time __author__ = "jwkel" __date__ = "$Oct 20, 2020 3:16:32 PM$" if __name__ == "__main__": print "Hello World" # Here's a listing to demonstrate serial port connection # with Jython and the RXTX module. # Much more needs to be done to make it a useful # program but it demonstrates the key points # to make a connection! # Hope this helps anyone just starting out on a similar project. # Graham #Jython.py Serial Port connection with RXTX print "inport" #Open port COM5 portId=gnu.io.CommPortIdentifier.getPortIdentifier("COM5") serialPort=portId.open("Demo1",2000) #(Name,delay) #Set port parameters serialPort.setSerialPortParams(9600,RXTX.DATABITS_8,RXTX.STOPBITS_1,RXTX.PARITY_NONE) print "set port" #Open input & output streams outStream=serialPort.getOutputStream() inStream=serialPort.getInputStream() time.sleep(2.0) #Define some output and write it to the serial port toOutput="*ATest\n" outStream.write(toOutput) outStream.flush() time.sleep(2.0) s ='' for num in range(7): s = inStream.read() print s #s = inStream.read() #print s #Close inStream, outStream before closing the port itself outStream.close() inStream.close() serialPort.close() print "end Hello World" ///////////////// Netbeans output window ////////////////// Hello World inport set port 45 (-) I added the ASCII chr for reference 65 (A) 84 (T) 101 (e) 115 (s) 116 (t) 10 (/n) end Hello World |
From: James K. <jwk...@gm...> - 2020-10-25 16:31:43
|
Corgi, I can run your check-out script and it works for me, but I can't seem to get RXTX to read data from the port. By chance did you write a check-out for reading data? Jim K. Houston TX ///////////////////////////////////////////////////////////////////////// #Jython.py Serial Port connection with RXTX import sys, socket, gnu.io import gnu.io.RXTXPort as RXTX #Open port COM3 portId=gnu.io.CommPortIdentifier.getPortIdentifier("COM3") serialPort=portId.open("Demo1",2000) #(Name,delay) #Set port parameters serialPort.setSerialPortParams(9600,RXTX.DATABITS_8,RXTX.STOPBITS_1,RXTX.PARITY_NONE) #Open input & output streams outStream=serialPort.getOutputStream() inStream=serialPort.getInputStream() #Define some output and write it to the serial port toOutput="Test output to serial port" outStream.write(toOutput) #Close inStream, outStream before closing the port itself outStream.close() inStream.close() serialPort.close() |
From: Jon C. <jon...@gm...> - 2020-10-23 22:54:28
|
Not jython-specific, but have you tried pyserial by any chance? It looks pretty simple: https://pyserial.readthedocs.io/en/latest/shortintro.html >>> ser = serial.Serial('COM3', 38400, timeout=0,... parity=serial.PARITY_EVEN, rtscts=1)>>> s = ser.read(100) # read up to one hundred bytes... # or as much is in the buffer On Fri, Oct 23, 2020 at 2:34 PM James Kelly <jwk...@gm...> wrote: > Hi, > I'm aware of the fact that I'm about to ask a lot of the group but I do > need the help. I dabble with programming but have to acknowledge that what > I need is beyond my abilities to develop; so I hope the group will take > mercy on an old retired model railroader. > I have an Arduino that I need to pass ASCII to/from a computer through a > USB COM1 port. I want to use Jython as I am running Win-10 with a JRE. > I find a lot of code samples, most using the RXTX library, but nothing > demonstrating a way the user can input data to send and and at least a > print statement to show the ASCII input. Most code seems to be in Java and > I know from reading that it can be used from within Jython. > I'm old school (before OOP) and to be honest I find the code snippets to > be confusing. Is there a working example on-line or in a reference book > that demonstrates what I need -- start to finish? > Jim K. > Houston TX. > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: James K. <jwk...@gm...> - 2020-10-23 21:34:04
|
Hi, I'm aware of the fact that I'm about to ask a lot of the group but I do need the help. I dabble with programming but have to acknowledge that what I need is beyond my abilities to develop; so I hope the group will take mercy on an old retired model railroader. I have an Arduino that I need to pass ASCII to/from a computer through a USB COM1 port. I want to use Jython as I am running Win-10 with a JRE. I find a lot of code samples, most using the RXTX library, but nothing demonstrating a way the user can input data to send and and at least a print statement to show the ASCII input. Most code seems to be in Java and I know from reading that it can be used from within Jython. I'm old school (before OOP) and to be honest I find the code snippets to be confusing. Is there a working example on-line or in a reference book that demonstrates what I need -- start to finish? Jim K. Houston TX. |
From: Fabio Z. <fa...@gm...> - 2020-09-06 17:01:27
|
PyDev 8.0 Release Highlights - *MyPy* - Make sure that only one MyPy is running at a given time (to prevent cache corruptions). - Properly report MyPy messages that only have a line number. ( *#PyDev-1091*) - MyPy integration now also shows notes for a message. (*#PyDev-1088*) - *Debugger* (updated to pydevd 2.0.0) - The frame evaluation mode (which adds programmatic breakpoints by rewriting bytecode) was redone (it had a critical issue which could make it skip breakpoints). - Fixed issue collecting try..except information. - Fixed issue evaluating numpy array with unexpected dimension. - *Type Inference* - Option to create a method at a given class properly considers type-hinting. (*#PyDev-1092*) - Support code-completion for Optional[]. (*#PyDev-1089*) - Properly handle type information when given as a string. ( *#PyDev-1082*, *#PyDev-1087*) - Fixed issue where line/col was not forwarded properly in go to definition. (*#PyDev-1075*) - Typing info should have priority when available. (*#PyDev-1079*) - Properly get completions considering function annotation. ( *#PyDev-1078*) - *Test running* - Fixed issue running tests which override *address* with nose. ( *#PYDev-1095*) - Fixed issue where test import/export didn't deal well with binary chars that were collected from the test. (*#PyDev-1067*) - *Others* - When finding a file in a project on Windows consider paths as case insensitive. - .mypy_cache and .pytest_cache contents are now marked as derived (so they can be filtered out in searches). - Fixed case where auto-import could be added to wrong location. ( *#PyDev-1085*) - Occurrence was not found in type hint return. (*#PyDev-1076*) - Find references not working for constant depending how it's used. ( *#PyDev-1083*) - Backported fix to properly parse raw f-string in Python 3.6. ( *#PyDev-991*) - Code completion inside f-strings. (*#PyDev-1081*) 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...> - 2020-06-11 11:35:19
|
PyDev 7.6.0 Release Highlights - *Debugger improvements* (updated to pydevd 1.9.1). - *Variables are now grouped* (special/class/function/protected) -- note: it's possible to hide groups in the variables view menu dropdown. - When a launching a subprocess does not target a python executable, the original args are kept (so, quotes are no longer trimmed). - A step in which would skip code won't be reported in the return if it'd reach the same location. - The disassembled version of a frame may be shown if the sources are not available. - PySide2 is supported to recognize QThreads/event loop in interactive console. - *Python 3.8 parsing fixes* - Properly parsing f-strings with named unicode character. i.e.: *f"\N{BULLET}"*. - Properly parsing f-strings formats using colon. i.e.: *f"{datetime.datetime.now():%Y-%m-%d %H:%M:%S}"*. - Properly parsing f-strings with vars ending in equals. i.e.: *f'{y=}'*. - Properly parsing raw f-strings such as *rf"str"*. - Properly parsing iterable unpacking syntax. i.e.: *return lastname.upper(), *members*. - Support for the latest version of PyTest (which may resolve symlinks and changed the TerminalWriter import location). - PyDev package explorer is a bit faster (cache source project paths for a project). - Recognizing type comments for *self* attributes. i.e.: *#: :type self.var: MyClass*. - Trailing commas properly recognized in automatic import. 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: Garrett R. <st...@us...> - 2020-05-01 21:03:41
|
I am unable to create a jython 2.7.2 virtualenv. Performing a pip install of virtualenv completes successfully. Executing from my jython's bin directory: $ ./virtualenv -h results in: /private/tmp/jy2.7.2/Lib/site-packages/filelock.py:451: UserWarning: only soft file lock is available warnings.warn("only soft file lock is available") RuntimeError: No virtualenv implementation for PythonInfo(spec=Jython2.7.2.final.0-32, exe=/private/tmp/jy2.7.2/bin/jython, platform=java1.8.0_181, version=u'2.7.2 (v2.7.2:925a3cc3b49d, Mar 21 2020, 10:03:58)\n[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]', encoding_fs_io=utf-8-UTF-8) I receive similar results for: $ ./jython -m virtualenv -h Environment details: $ ./jython --version Jython 2.7.2 $ sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G4032 My searching has come up empty, so I figure I must be missing something obvious. |
From: Randall W. <ran...@al...> - 2020-04-04 14:41:04
|
Assuming you are trying to access USB devices using Jython within the JMRI Model Railroad software, please ask for assistance on the JMRI User’s group or GitHub site. Randall > On 02-Apr-2020, at 02:53, Stefan Richthofer <ste...@gm...> wrote: > > Using native bindings from Jython is always difficult. From a quick look at https://github.com/pyudev/pyudev <https://github.com/pyudev/pyudev> it seems to be using ctypes to access native code. > Jython has some limited ctypes support but this is often insufficient. There is a fair chance to get it working via JyNI (I never tested pyudev but some other ctypes-based libs work). That said, note that JyNI is still highly experimental. > > Best regards > > Stefan > > Am Do., 2. Apr. 2020 um 08:02 Uhr schrieb Charles Meo <ch...@ap... <mailto:ch...@ap...>>: > Hello all, > > I am using JMRI which includes jython. I'd like to use the python pyudev module to help control USB devices used by JMRI but it doesn't seem to be supported in jython. import pyudev throws lots of errors from inside the jython script. > > Is there a way to make use of this module from inside jython? > > Thank you, > > Charles > > -- > > > > <Apulia_email_signature.gif> > > Apulia Grove Olives > 40 Tranter Rd > Toolleen > Victoria 3551 > > M: 0409 258 471 > ch...@ap... <mailto:ch...@ap...> > www.apulia-grove.com.au <http://www.apulia-grove.com.au/>_______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> > _______________________________________________ > Jython-users mailing list > Jyt...@li... <mailto:Jyt...@li...> > https://lists.sourceforge.net/lists/listinfo/jython-users <https://lists.sourceforge.net/lists/listinfo/jython-users> |
From: Stefan R. <ste...@gm...> - 2020-04-02 06:54:40
|
Using native bindings from Jython is always difficult. From a quick look at https://github.com/pyudev/pyudev it seems to be using ctypes to access native code. Jython has some limited ctypes support but this is often insufficient. There is a fair chance to get it working via JyNI (I never tested pyudev but some other ctypes-based libs work). That said, note that JyNI is still highly experimental. Best regards Stefan Am Do., 2. Apr. 2020 um 08:02 Uhr schrieb Charles Meo < ch...@ap...>: > Hello all, > > I am using JMRI which includes jython. I'd like to use the python pyudev > module to help control USB devices used by JMRI but it doesn't seem to be > supported in jython. *import pyudev *throws lots of errors from inside > the jython script. > > Is there a way to make use of this module from inside jython? > > Thank you, > > Charles > -- > > > > [image: Apulia Grove Oil logo] > > Apulia Grove Olives > 40 Tranter Rd > Toolleen > Victoria 3551 > > M: 0409 258 471 > ch...@ap... > www.apulia-grove.com.au > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Adam B. <ada...@gm...> - 2020-04-02 06:44:10
|
Hi Charles Do you mean the model railway toolkit? https://www.jmri.org/help/en/html/tools/scripting/Python.shtml It's a bit hard to help without more precise details on which library and which errors. Thanks Adam On Thu, 2 Apr 2020 at 16:02, Charles Meo <ch...@ap...> wrote: > Hello all, > > I am using JMRI which includes jython. I'd like to use the python pyudev > module to help control USB devices used by JMRI but it doesn't seem to be > supported in jython. *import pyudev *throws lots of errors from inside > the jython script. > > Is there a way to make use of this module from inside jython? > > Thank you, > > Charles > -- > > > > [image: Apulia Grove Oil logo] > > Apulia Grove Olives > 40 Tranter Rd > Toolleen > Victoria 3551 > > M: 0409 258 471 > ch...@ap... > www.apulia-grove.com.au > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Charles M. <ch...@ap...> - 2020-04-02 06:02:01
|
Hello all, I am using JMRI which includes jython. I'd like to use the python pyudev module to help control USB devices used by JMRI but it doesn't seem to be supported in jython. *import pyudev *throws lots of errors from inside the jython script. Is there a way to make use of this module from inside jython? Thank you, Charles -- Untitled Document Apulia Grove Oil logo Apulia Grove Olives 40 Tranter Rd Toolleen Victoria 3551 M: 0409 258 471 ch...@ap... <mailto:ch...@ap...> www.apulia-grove.com.au <http://www.apulia-grove.com.au> |
From: Jeff A. <ja...@fa...> - 2020-03-24 17:47:15
|
On behalf of the Jython development team, I am pleased to announce that Jython 2.7.2 has been released. Notable additions include: * much improved support for locale, but as a backward-incompatible change, it is provided as an opt-in. * a main program that behaves more like CPython in many small ways, including -i and -E support. * a JAR and POM that may be cited as a dependency by other projects using Gradle or Maven (experimental). * a great many bug-fixes. For the details see: https://www.jython.org/news and the NEWS link there. Convenient download links are at https://www.jython.org/download . Thanks are due to the many contributors to Jython for making this possible. -- Jeff Allen |
From: Jeff M. <jef...@za...> - 2020-02-06 15:07:34
|
Personally, for a couple years I found jython + Vaadin (java web UI framework) to be a Jython 'killer app' - that ease of use in bringing python code to bear on a new UI app with tight integration to backend (shared python code) is amazing (especially in parts of the shop that were so accustomed to java or needed existing commercial java library compatibility etc). However as Java evolved with newer syntax, and frameworks like Vaadin have taken gratuitous advantage of it, its gotten increasingly messy to determine workarounds for the new java syntax and expressing it as jython code. Still, when timeframes got really crunchy, Jython saved the day more than once :) I assume you mean another RC for 2.7.x family, not for the 3.x? A roadmap in general might be of value, but most important would be (for the 3.x branch) the signs of life; a periodic update on the main Jython sites showing 'oh hey, we're working on it, slowly <date here>'. As is, it looks 'dead' (last I checked a few months back), which can be uncomfortable in the era of py2 being deprecated. ie: Moving away from py2, theres no Jython option today, so thats going to hurt momentum in the community perhaps. (And again, don't take this as a commentary on anyones work; it is volunteer work after all. I've been there, supporting thankless OSS projects, and I always took these sorts of comments the wrong way :) On Thu, Feb 6, 2020 at 4:36 AM Jeff Allen <ja...@fa...> wrote: > On 13/01/2020 14:55, Jeff Mitchell wrote: > > > On 06/01/2020 15:49, Jeff Mitchell wrote: >> > I have found jython for 2.x to be exceedingly stable (thanks! >> > wonderful piece of work over the years!) .. though you need to halfway >> > recent for ssl/encryption changes and stability fixes. >> >> I'm glad you've found it so. Although familiar mostly with its flaws, >> now and then I stand far enough back to recognise how remarkable an >> achievement it is, and that I have the privilege of contributing to. >> > > Any big flaws we should know about? or you mean just internal design > flaws, which are inevitable for such a project? :) > > Mostly unfixed bugs, test skips and implementation gaps. They're not > hidden. A number of XXX and FIXME comments are scattered around the code > base and we have a bug-tracker. Also, I wish there were better explanations > of some of the cleverness. My point, however, is that when working mostly > as a maintainer, and perfectionist, flaws loom large and one forgets that > Jython is a significant intellectual feat that does a good job for many > users in practice. > > > Maybe update some 'signs of life' somewhere on the website or repo might > be wise, as I've seen a few people asking around this over the months? > *shrug* > > Thank you (and the team!) again! > > You're welcome. The next beta will appear shortly in NEWS and if nothing > really bad turns up, a release candidate in 2-3 weeks. A roadmap (for 2.7.x > and 3.x) would not be worth much except as declaration of intent to go that > way. > > > Jeff Allen > > -- Jeff Mitchell Sr Application Architect Zayo | Our Fiber Fuels Global Innovation 1821 30th Street | Unit A | Boulder, CO 80301 Desk: 999.999.9999 | Cell: 999.999.9999 jef...@za... Purpose <http://zayo.is/signature-purpose> | Network Map <http://zayo.is/signature-network> | LinkedIn <http://zayo.is/signature-linkedin> | Twitter <http://zayo.is/signature-twitter> This communication is the property of Zayo and may contain confidential or privileged information. If you have received this communication in error, please promptly notify the sender by reply e-mail and destroy all copies of the communication and any attachments. He who dies with the best barbecue sauce, wins. |
From: Jeff A. <ja...@fa...> - 2020-02-06 09:36:31
|
On 13/01/2020 14:55, Jeff Mitchell wrote: > > On 06/01/2020 15:49, Jeff Mitchell wrote: > > I have found jython for 2.x to be exceedingly stable (thanks! > > wonderful piece of work over the years!) .. though you need to > halfway > > recent for ssl/encryption changes and stability fixes. > > I'm glad you've found it so. Although familiar mostly with its flaws, > now and then I stand far enough back to recognise how remarkable an > achievement it is, and that I have the privilege of contributing to. > > > Any big flaws we should know about? or you mean just internal design > flaws, which are inevitable for such a project? :) > Mostly unfixed bugs, test skips and implementation gaps. They're not hidden. A number of XXX and FIXME comments are scattered around the code base and we have a bug-tracker. Also, I wish there were better explanations of some of the cleverness. My point, however, is that when working mostly as a maintainer, and perfectionist, flaws loom large and one forgets that Jython is a significant intellectual feat that does a good job for many users in practice. > > Maybe update some 'signs of life' somewhere on the website or repo > might be wise, as I've seen a few people asking around this over the > months? *shrug* > > Thank you (and the team!) again! > You're welcome. The next beta will appear shortly in NEWS and if nothing really bad turns up, a release candidate in 2-3 weeks. A roadmap (for 2.7.x and 3.x) would not be worth much except as declaration of intent to go that way. Jeff Allen |
From: Jeff A. <ja...@fa...> - 2020-02-02 07:27:03
|
Bundled jars I should think. ICU and bouncycastle add up to around 16MB. But the language is bigger too (unicode, bytearray, etc..). Depending on your application, it may be possible to rebuild it without some bundled jars. The recent 2.7.2b2 includes a -slim jar intended for use in Gradle or Maven builds where the dependencies are supplied in your build, and you have some control over them. We're interested in whether we've done that correctly to meet user needs. Jeff Allen On 29/01/2020 08:45, Houtman, Roland wrote: > > Dear users, > > Does anyone know why jython2.7-standalone.jar is about 40 MB, > while Jython 2.5 was only about 13 MB? > > Can the 2.7standalone be stripped in some way? > > Kind regards, > > Roland > > |
From: Houtman, R. <Rol...@nl...> - 2020-01-29 13:21:03
|
Dear users, Does anyone know why jython2.7-standalone.jar is about 40 MB, while Jython 2.5 was only about 13 MB? Can the 2.7standalone be stripped in some way? Kind regards, Roland |
From: Stephen G. <sg...@hu...> - 2020-01-15 16:41:14
|
Thanks for your responses, Jeffs. This was really helpful! On Mon, Jan 13, 2020 at 9:56 AM Jeff Mitchell <jef...@za...> wrote: > > On 06/01/2020 15:49, Jeff Mitchell wrote: >> > I have found jython for 2.x to be exceedingly stable (thanks! >> > wonderful piece of work over the years!) .. though you need to halfway >> > recent for ssl/encryption changes and stability fixes. >> >> I'm glad you've found it so. Although familiar mostly with its flaws, >> now and then I stand far enough back to recognise how remarkable an >> achievement it is, and that I have the privilege of contributing to. >> > > Any big flaws we should know about? or you mean just internal design > flaws, which are inevitable for such a project? :) > > > Hijacking the thread though .. any news on jython3, or is there just >> > nto enough volunteer manpower? Every few months I google up and only >> > find a repo from 2017, and various threads or questions but no >> > answers. (And I wish I had time to jump in and help, same as everyone..) >> > --> but is jython3 essentially dead for now? >> >> I don't think so. The main problem with that repo is that 2.7 moved on a >> lot since the fork, and since basic things like str changed from 2 to 3, >> there are technical problems merging. We also say amongst ourselves >> "we'll do that differently in 3" and it is difficult to see how you >> could, starting from there. 3 looks like a great opportunity for change, >> but the more one takes on, the longer it will be. Fortunately I have >> some time, but it has to be divided with 2.7. >> > > Appreciate the insider view :) From the outside though .. I'd assume at > least a couple years before jython3 is usable. > > Maybe update some 'signs of life' somewhere on the website or repo might > be wise, as I've seen a few people asking around this over the months? > *shrug* > > Thank you (and the team!) again! > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Jeff M. <jef...@za...> - 2020-01-13 14:55:47
|
> On 06/01/2020 15:49, Jeff Mitchell wrote: > > I have found jython for 2.x to be exceedingly stable (thanks! > > wonderful piece of work over the years!) .. though you need to halfway > > recent for ssl/encryption changes and stability fixes. > > I'm glad you've found it so. Although familiar mostly with its flaws, > now and then I stand far enough back to recognise how remarkable an > achievement it is, and that I have the privilege of contributing to. > Any big flaws we should know about? or you mean just internal design flaws, which are inevitable for such a project? :) > Hijacking the thread though .. any news on jython3, or is there just > > nto enough volunteer manpower? Every few months I google up and only > > find a repo from 2017, and various threads or questions but no > > answers. (And I wish I had time to jump in and help, same as everyone..) > > --> but is jython3 essentially dead for now? > > I don't think so. The main problem with that repo is that 2.7 moved on a > lot since the fork, and since basic things like str changed from 2 to 3, > there are technical problems merging. We also say amongst ourselves > "we'll do that differently in 3" and it is difficult to see how you > could, starting from there. 3 looks like a great opportunity for change, > but the more one takes on, the longer it will be. Fortunately I have > some time, but it has to be divided with 2.7. > Appreciate the insider view :) From the outside though .. I'd assume at least a couple years before jython3 is usable. Maybe update some 'signs of life' somewhere on the website or repo might be wise, as I've seen a few people asking around this over the months? *shrug* Thank you (and the team!) again! |