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
|
| 2026 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|
From: Alan K. <jyt...@xh...> - 2016-08-27 12:47:08
|
Hi David. The modjy documentation has a fair amount of detail about running jython inside servlet containers. Although the docs are for modjy, the configuration details described are also generally applicable to running jython in servlet containers. These two pages should contain relevant information. http://opensource.xhaus.com/projects/modjy/wiki/ModjyDeployment http://opensource.xhaus.com/projects/modjy/wiki/ModjyTroubleShooting The relevant java code that controls all of this is here https://hg.python.org/jython/file/tip/src/com/xhaus/modjy/ModjyJServlet.java In particular, it looks like you should be looking at the jython registry, how it is located and what values it contains. https://wiki.python.org/jython/UserGuide#finding-the-registry-file http://www.jython.org/jythonbook/en/1.0/appendixA.html Lastly, is there a reason why you don't want to use modjy? It is custom designed for running jython application inside servlet containers, specifically WSGI applications. Regards, Alan. On Tue, Aug 23, 2016 at 11:21 PM, David Charles <dav...@gm...> wrote: > I just created my first servlet in Jython2.7.0 running on > Apache2/Tomcat6. When I tried to access my servlet with my browser, I got > the following error message: > > HTTP Status 500 - Servlet.init() for servlet PyServlet threw exception > ------------------------------ > > *type* Exception report > > *message* *Servlet.init() for servlet PyServlet threw exception* > > *description* *The server encountered an internal error that prevented it > from fulfilling this request.* > > *exception* > > javax.servlet.ServletException: Servlet.init() for servlet PyServlet threw exception > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:745) > > *root cause* > > ImportError: Cannot import site module and its dependencies: No module named site > Determine if the following attributes are correct: > * sys.path: ['/var/lib/tomcat6/webapps/jythonsample/WEB-INF/lib/Lib', '__classpath__', '__pyclasspath__/'] > This attribute might be including the wrong directories, such as from CPython > * sys.prefix: /var/lib/tomcat6/webapps/jythonsample/WEB-INF/lib > This attribute is set by the system property python.home, although it can > be often automatically determined by the location of the Jython jar file > > You can use the -S option or python.import.site=false to not import the site module > > org.python.core.Py.ImportError(Py.java:328) > org.python.core.Py.importSiteIfSelected(Py.java:1563) > org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116) > org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94) > org.python.util.PyServlet.createInterpreter(PyServlet.java:124) > org.python.util.PyServlet.reset(PyServlet.java:170) > org.python.util.PyServlet.init(PyServlet.java:90) > javax.servlet.GenericServlet.init(GenericServlet.java:212) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > java.lang.Thread.run(Thread.java:745) > > *note* *The full stack trace of the root cause is available in the Apache > Tomcat/6.0.39 logs.* > ------------------------------ > Apache Tomcat/6.0.39This is a web application, so I am not using the > command-line interface (so I cannot pass -S), nor am I starting the > interpreter from some Java code (so I cannot set property > python.import.site). > > As a quick experiment, I copied the my $JYTHON_HOME/Lib directory into > jythonsample/WEB-INF/libs and this made the ImportError go away. > Symlinking the $JYTHON_HOME/Lib directory also made the ImportError go > away. But, both of these solutions seem dubious to me. If I copy the Lib > folder I feel like I have greater certainty that jython.jar and the Lib > directory are a matched set, but my Lib directory is 99M in size! If I > symlink the Lib folder, I save the 99M but I lose the certainty that I have > a matching jython.jar and Lib directory. > > I have also considered creating a custom jython.jar that contains Lib, or > learning how to have a single, common jython.jar (and Lib) for all of my > servlets, but before I head down those paths I thought I would ask to see > what other people are doing. > > David > > > > ------------------------------------------------------------ > ------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
|
From: Craig M. <cra...@da...> - 2016-08-24 14:29:40
|
I have potentially found one or more bugs in _sslcerts.py, but before I
file a bug report, I would like to get some context and possibly understand
the intent of the code in question, as I am not an SSL expert.
First, my use case: I have a customer that has a chain of SSL certs in a
PEM file. It includes the leaf cert, then 2 intermediate certs, and finally
their own root CA cert (which they've manually added as a trusted cert in
their browsers throughout their org). When trying to establish an SSL
server connection, the function _get_open_ssl_key_manager tries to validate
that the private and public keys match, and is throwing an SSLError: "key
values mismatch". This same chain of certs worked fine when we were on
CPython and using pyOpenSSL.
I have traced the root cause. In _get_open_ssl_key_manager, it is looping
over all the certs from the cert_file and checking that the modulus from
the private key matches the modulus of the public key. However, this is
only true for the first cert (the leaf). I am going to paste the code here,
because it looks very suspect to me:
keys_match = False
for cert in certs:
# TODO works for RSA only for now
if not isinstance(cert.publicKey, RSAPublicKey) and
isinstance(private_key, RSAPrivateCrtKey):
keys_match = True
continue
if cert.publicKey.getModulus() == private_key.getModulus() \
and cert.publicKey.getPublicExponent() ==
private_key.getPublicExponent():
keys_match = True
else:
keys_match = False
if key_file is not None and not keys_match:
from _socket import SSLError, SSL_ERROR_SSL
raise SSLError(SSL_ERROR_SSL, "key values mismatch")
The first condition in the loop is always false for my case. This isn't
what bothers me. The keys_match flag is True on the first iteration of the
loop, then False, False, False. Certainly this is not what is intended
here. In fact, my co-worker reversed the order of the certs in the PEM
file, and thus avoided the Error. The server started, but the browser
simply would not recognize it as a valid cert chain (couldn't even accept
it as a security exception).
It is theoretically possible that the 2nd or 3rd cert in the chain could
pass the modulus check. The result would still be False after having
temporarily been True. What does this mean? What is the intention here?
Should it simply break out of the loop the first time it finds a match?
Perhaps the problem is elsewhere...
So I looked a little deeper. Just before this loop:
if cert_file is not None:
_certs, _private_key = _extract_certs_for_paths([cert_file],
password)
private_key = _private_key if _private_key else private_key
certs.extend(_certs)
Now, _extract_certs_for_paths does something interesting. It calls
_extract_certs_from_keystore_file in a try/except block, and if it fails,
it then tries _extract_cert_from_data, which reads it as a PEM file.
Curious, I decided to convert the PEM file to a JKS keystore. This actually
worked, and here I found an important difference between these 2 functions.
1. _extract_certs_from_keystore_file returns only the leaf cert. I verified
that the JKS file has the full chain with keytool -list -v. Apparently
keystore.getCertificate(alias) only returns the leaf. Thus the JKS file
passes the check. However, it also loops over the aliases in the keystore,
so if I had more than one key in the store, we would again have potential
breakage.
2. _extract_cert_from_data returns all 4 certs in the chain. Thus the PEM
file fails the check because the last (root) cert causes keys_match to be
False.
Notice also (now I'm knit-picking) the plurality of the word "cert(s)" is
even backwards considering how the 2 functions actually behave.
Before I file this as a bug, I would like to find out if anyone has some
perspective to add. This certainly feels like one or more bugs to me, but
as I said before - I am not an SSL expert.
|
|
From: David C. <dav...@gm...> - 2016-08-23 22:21:53
|
I just created my first servlet in Jython2.7.0 running on Apache2/Tomcat6.
When I tried to access my servlet with my browser, I got the following
error message:
HTTP Status 500 - Servlet.init() for servlet PyServlet threw exception
------------------------------
*type* Exception report
*message* *Servlet.init() for servlet PyServlet threw exception*
*description* *The server encountered an internal error that prevented it
from fulfilling this request.*
*exception*
javax.servlet.ServletException: Servlet.init() for servlet PyServlet
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:745)
*root cause*
ImportError: Cannot import site module and its dependencies: No module
named site
Determine if the following attributes are correct:
* sys.path: ['/var/lib/tomcat6/webapps/jythonsample/WEB-INF/lib/Lib',
'__classpath__', '__pyclasspath__/']
This attribute might be including the wrong directories, such as
from CPython
* sys.prefix: /var/lib/tomcat6/webapps/jythonsample/WEB-INF/lib
This attribute is set by the system property python.home, although it can
be often automatically determined by the location of the Jython jar file
You can use the -S option or python.import.site=false to not import
the site module
org.python.core.Py.ImportError(Py.java:328)
org.python.core.Py.importSiteIfSelected(Py.java:1563)
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
org.python.util.PyServlet.createInterpreter(PyServlet.java:124)
org.python.util.PyServlet.reset(PyServlet.java:170)
org.python.util.PyServlet.init(PyServlet.java:90)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:745)
*note* *The full stack trace of the root cause is available in the Apache
Tomcat/6.0.39 logs.*
------------------------------
Apache Tomcat/6.0.39This is a web application, so I am not using the
command-line interface (so I cannot pass -S), nor am I starting the
interpreter from some Java code (so I cannot set property
python.import.site).
As a quick experiment, I copied the my $JYTHON_HOME/Lib directory into
jythonsample/WEB-INF/libs and this made the ImportError go away.
Symlinking the $JYTHON_HOME/Lib directory also made the ImportError go
away. But, both of these solutions seem dubious to me. If I copy the Lib
folder I feel like I have greater certainty that jython.jar and the Lib
directory are a matched set, but my Lib directory is 99M in size! If I
symlink the Lib folder, I save the 99M but I lose the certainty that I have
a matching jython.jar and Lib directory.
I have also considered creating a custom jython.jar that contains Lib, or
learning how to have a single, common jython.jar (and Lib) for all of my
servlets, but before I head down those paths I thought I would ask to see
what other people are doing.
David
|
|
From: <fwi...@gm...> - 2016-08-23 20:03:57
|
On Tue, Aug 23, 2016 at 3:42 AM, DanglingPointer <dan...@gm...> wrote: > Was wondering if CPyhton 3.x is in Jython's roadmap at all? Things are moving, but it will still be a while before we'd even want to dare call it "alpha" :) I'm hoping to put out some kind of alpha somewhere in the next month or two. -Frank |
|
From: DanglingPointer <dan...@gm...> - 2016-08-23 12:12:37
|
Thanks for the heads up! On 23/08/16 21:20, Stefan Richthofer wrote: > You might want to watch https://github.com/jython/jython3 > > Cheers > > Stefan > > >> Gesendet: Dienstag, 23. August 2016 um 13:08 Uhr >> Von: "Adam Burke" <ada...@gm...> >> An: DanglingPointer <dan...@gm...> >> Cc: jyt...@li... >> Betreff: Re: [Jython-users] CPython 3.x >> >> 3.x has been the main focus of development since 2.7 was released. Haven't seen advertised dates for a beta but commits have been going in. >> >> Cheers >> Adam >> >>> 在 23 Aug 2016,6:42 PM,DanglingPointer <dan...@gm...> 写道: >>> >>> Was wondering if CPyhton 3.x is in Jython's roadmap at all? >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Jython-users mailing list >>> Jyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/jython-users >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Jython-users mailing list >> Jyt...@li... >> https://lists.sourceforge.net/lists/listinfo/jython-users >> |
|
From: Stefan R. <Ste...@gm...> - 2016-08-23 11:21:13
|
You might want to watch https://github.com/jython/jython3 Cheers Stefan > Gesendet: Dienstag, 23. August 2016 um 13:08 Uhr > Von: "Adam Burke" <ada...@gm...> > An: DanglingPointer <dan...@gm...> > Cc: jyt...@li... > Betreff: Re: [Jython-users] CPython 3.x > > 3.x has been the main focus of development since 2.7 was released. Haven't seen advertised dates for a beta but commits have been going in. > > Cheers > Adam > > > 在 23 Aug 2016,6:42 PM,DanglingPointer <dan...@gm...> 写道: > > > > Was wondering if CPyhton 3.x is in Jython's roadmap at all? > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Jython-users mailing list > > Jyt...@li... > > https://lists.sourceforge.net/lists/listinfo/jython-users > > ------------------------------------------------------------------------------ > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
|
From: Adam B. <ada...@gm...> - 2016-08-23 11:08:29
|
3.x has been the main focus of development since 2.7 was released. Haven't seen advertised dates for a beta but commits have been going in. Cheers Adam > 在 23 Aug 2016,6:42 PM,DanglingPointer <dan...@gm...> 写道: > > Was wondering if CPyhton 3.x is in Jython's roadmap at all? > > > ------------------------------------------------------------------------------ > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: DanglingPointer <dan...@gm...> - 2016-08-23 10:42:20
|
Was wondering if CPyhton 3.x is in Jython's roadmap at all? |
|
From: Adam B. <ada...@gm...> - 2016-08-23 10:22:09
|
Hi, it's active just low volume. Cheers Adam > 在 23 Aug 2016,5:00 PM,Fernando Casado <dan...@gm...> 写道: > > Is this mailing list active? I haven't received anything since joining. Does anyone use this? > ------------------------------------------------------------------------------ > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: Fernando C. <dan...@gm...> - 2016-08-23 09:00:54
|
Is this mailing list active? I haven't received anything since joining. Does anyone use this? |
|
From: Fabio Z. <fa...@gm...> - 2016-08-18 12:58:15
|
Release Highlights:
-------------------------------
* **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards.
* PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8.
* See: `update sites page`_ for the update site of older versions of
PyDev.
* See: the **PyDev does not appear after install** section on `the
download page`_ for help on using a Java 8 vm in Eclipse.
* Inital support for code-completion using **PEP 484 static type
declarations**.
* **Debugger**
* Fixed racing condition where the variables view would not be properly
shown in the debugger -- which made an additional select of the stack
required in order to show the variables (#PyDev-672).
* Reusing the existing stack from the thread in the debugger (so that
the expanded state of the variables is properly kept on step over).
* Fixed issue changing attribute of local variable in the variables
view (#PyDev.Debugger-56).
* Fixed issue on attach to process: it required the pydevd_tracing to
be at the top-level and it was moved to _pydevd_bundle (restored it to be a
public API).
* **Indentation**
* The default indent mode now changed to better follow PEP 8 guidelines:
* Indenting directly after {, [, ( will add one indent level.
* Indenting after another token in a line with a {, [, ( will
indent to the {, [, ( level.
* It's possible to restore previous indent modes (which either always
indented to the parenthesis level or always indented a single level) in the
preferences > PyDev > Editor > Typing.
* **Interactive console**
* IPython 5 now supported in interactive console (#PyDev-710).
* Fixed issue executing single line with multiple statements in console.
* Fixed issue executing a multiple line statement in Jython.
* **Others**
* The (fast) parser which detects the outline of a Python module now
handles mixed indentation (and additional fixes which could result in log
entries such as "Did not expect to find item below node: Assign...").
* Support for unpacking generalizations (PEP 448) which could still
result in a syntax error for the Python 3 grammar (#PyDev-701).
* Fixed error in code analysis when the code is connected to an RTC
source control (#PyDev-184, patch by Wesley Barroso Lopes)
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: Jeff A. <ja...@fa...> - 2016-08-18 06:37:58
|
Syntax errors are mostly reported directly from code generated by the ANTLR parser-generator, so will reflect its conventions: "no viable alternative" is one of those. A move to ANTLR 4 (suggested but not straightforward) could change them somewhat, but they are quite stylised. Our guidance for other error messages is to be as like the ones from CPython as is sensible -- nothing more formal is consistently followed. The code that formats exceptions for output (may help with your ideas) is here: https://hg.python.org/jython/file/tip/src/org/python/core/Py.java#l1173 It may also be worth looking at sys.excepthook as an alternative to catching the exception, but catching sounds like a natural Java approach. Jeff Allen On 16/08/2016 20:15, James Ervin wrote: > I was wondering if someone could point me to either the jython class > or a document where the format of error messages is defined. > > I am working on embedding a jython engine inside an Eclipse RCP > application. I would really love to be able to extract line numbers > (if not exact character offsets) from errors generated by bad python code. > > For example I get: > SyntaxError: ("no viable alternative at input 'crap'", ('<string>', 5, > 11, ' crappy crap crap\n')) > > I am trying to figure out how to successfully extract the 5 and 11 there. > > Another example: > Traceback (most recent call last):File "<string>", line 1, in > <module>AttributeError: 'NoneType' object has no attribute 'getName' > > Obviously the line followed by the number should be sufficient. > > Also is there a better way to get these errors than catch exceptions > from PythonInterpreter.exec()? > > Thanks, > James E. Ervin, IV > > "Noli nothis permittere te terere." > "Romanes eunt domus." > Blog: http://iacobus.blogspot.com > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: James E. <je...@gm...> - 2016-08-16 19:15:48
|
I was wondering if someone could point me to either the jython class or a
document where the format of error messages is defined.
I am working on embedding a jython engine inside an Eclipse RCP
application. I would really love to be able to extract line numbers (if
not exact character offsets) from errors generated by bad python code.
For example I get:
SyntaxError: ("no viable alternative at input 'crap'", ('<string>', 5, 11,
' crappy crap crap\n'))
I am trying to figure out how to successfully extract the 5 and 11 there.
Another example:
Traceback (most recent call last):File "<string>", line 1, in
<module>AttributeError: 'NoneType' object has no attribute 'getName'
Obviously the line followed by the number should be sufficient.
Also is there a better way to get these errors than catch exceptions from
PythonInterpreter.exec()?
Thanks,
James E. Ervin, IV
"Noli nothis permittere te terere."
"Romanes eunt domus."
Blog: http://iacobus.blogspot.com
|
|
From: Spence A. <sp...@gm...> - 2016-07-21 18:51:53
|
Hi and thanks for reading:
I have a Jython class:
class MyClass(SomeInterface):
def op(self):
a = some_fun()
return a
In a separate java class I have:
class Task extends MultiThreadedTask {
SomeResult _a;
@Override public void callPerThread() {
SomeInterface si = (SomeInterface) JythonObjectFactory.get("MyClass")
_a = si.op()
}
}
Here's my jython program that I'd like to single step with breakpoints
inside of the "op" call for MyClass:
m = MyClass()
t = Task().do()
I'm debugging from within IntelliJ and I get breakpoints for all of the
single-threaded code, but as soon as execution steps into the
`callperThread` method, all of my breakpoints are seemingly ignored.
Thanks!
Spencer
|
|
From: Häyrinen, A. <ari...@jy...> - 2016-07-20 12:01:42
|
>> hmm — are you sure you're not trying to instantiate a interface? I guess that's what I was trying to do... GroupServiceImpl.java: * Service implementation for the Group object. * This class is responsible for all business logic calls for the Group object and is autowired by spring. * This class should never be accessed directly. Maybe I'm trying to use wrong approach here. I'll check from DSpace folks what are correct methods for making this kind of task in Java and then I try again with Jython. Thanks for your time. |
|
From: Häyrinen, A. <ari...@jy...> - 2016-07-20 08:20:56
|
Thanks for reply! I tried to instantiate it but I got "No visible constructors for class (org.dspace.eperson.service.GroupService) " So it is private? Is setting respectJacaAccessibility to false only option? python.security.respectJavaAccessibility = false Sorry about newbie questions, my java knowledge is very poor. ________________________________ Lähettäjä: Stefan Eletzhofer [ste...@ne...] Lähetetty: 20. heinäkuuta 2016 10:58 Vastaanottaja: Häyrinen, Ari; jyt...@li... Aihe: Re: [Jython-users] What extra argument is needed for java method call? Hi, to me it looks like the GroupService wasn't instantiated. The findByName() is not a class method. The error message hints that way — self is an implicit 1st argument. Mit freundlichen Grüßen // With best regards // Med vennlig hilsen Stefan Eletzhofer nexiles GmbH Birkenweg 12/3 88250 Weingarten tel: +49 (751) 270 856-50 fax: +49 (751) 270 856-51 mobile: +49 (151) 58 5 58 096 e-mail: se...@ne... internet: www.nexiles.com Rechtsform / Legal form: Gesellschaft mit beschränkter Haftung / Limited Liability Company Registergericht / Registration Court: Amtsgericht Ulm Registernummer / Commercial Register No.: HRB 725682 Umsatzsteuernummer / VAT No.: DE 273776037 Geschäftsführer / Managing Directors: Stephan Eletzhofer, Günter Häußner, Michael Schilling, Jörg Szillat Der Inhalt dieser E-Mail und ihrer Anhänge ist vertraulich. Die E-Mail ist ausschließlich für den Adressaten bestimmt. Jeglicher Zugriff darauf durch andere Personen als den Adressaten ist untersagt. Sollten Sie nicht der für die E-Mail bestimmte Adressat sein, ist Ihnen jede Vervielfältigung, Weitergabe oder Veröffentlichung wie auch das Ergreifen oder Unterlassen von Maßnahmen im Vertrauen auf erlangte Information untersagt. This email and any attachment is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized.If you are not the intended recipient, any copying, distribution, disclosure or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Von: "Häyrinen, Ari" <ari...@jy...<mailto:ari...@jy...>> Datum: Mittwoch, 20. Juli 2016 um 09:20 An: "jyt...@li...<mailto:jyt...@li...>" <jyt...@li...<mailto:jyt...@li...>> Betreff: [Jython-users] What extra argument is needed for java method call? Hi, there is a Java class called "GroupServiceImpl": public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements GroupService This class has mehod called "findByName": @Override public Group findByName(Context context, String name) throws SQLException { So there are 2 arguments for that method. I try to use this method like this (this is DSpace curator task): class ConvertOldEmbargo(ScriptedTask): def init(self, curator, taskName): self.c = curator def performDso(self, dso): anonymous = GroupService.findByName(self.c.curationContext(), "Anonymous"); Jython complains: TypeError: findByName(): expected 3 args; got 2 What is the third argument and how should I deliver it? Did I misunderstood something? Any help much appreciated. |
|
From: Adam B. <ada...@gm...> - 2016-07-20 08:12:18
|
Hi Ari
It looks like it is a normal object-level method, but you are invoking it statically.
You could just get hold of a GroupService object, instead of the class, and call findByName() on that the normal way.
You are actually allows to invoke statically in Python, but the method still needs an object to act on, so you have to pass that as the first parameter. It is then received as the parameter self.
class A:
def a(self):
print "a"
aobj = A()
A.a(aobj)
a.a() # same as previous
Cheers
Adam
> 在 20 Jul 2016,3:20 PM,Häyrinen, Ari <ari...@jy...> 写道:
>
>
> Hi,
> there is a Java class called "GroupServiceImpl":
>
> public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements GroupService
>
> This class has mehod called "findByName":
>
> @Override
> public Group findByName(Context context, String name) throws SQLException {
>
>
> So there are 2 arguments for that method.
>
> I try to use this method like this (this is DSpace curator task):
>
> class ConvertOldEmbargo(ScriptedTask):
> def init(self, curator, taskName):
> self.c = curator
>
> def performDso(self, dso):
> anonymous = GroupService.findByName(self.c.curationContext(), "Anonymous");
>
> Jython complains:
> TypeError: findByName(): expected 3 args; got 2
>
> What is the third argument and how should I deliver it? Did I misunderstood something?
>
> Any help much appreciated.
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
|
|
From: Häyrinen, A. <ari...@jy...> - 2016-07-20 07:21:07
|
Hi,
there is a Java class called "GroupServiceImpl":
public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements GroupService
This class has mehod called "findByName":
@Override
public Group findByName(Context context, String name) throws SQLException {
So there are 2 arguments for that method.
I try to use this method like this (this is DSpace curator task):
class ConvertOldEmbargo(ScriptedTask):
def init(self, curator, taskName):
self.c = curator
def performDso(self, dso):
anonymous = GroupService.findByName(self.c.curationContext(), "Anonymous");
Jython complains:
TypeError: findByName(): expected 3 args; got 2
What is the third argument and how should I deliver it? Did I misunderstood something?
Any help much appreciated.
|
|
From: Adam B. <ada...@gm...> - 2016-07-19 22:44:06
|
Hi Vincent First things to check (and share) would be 1/ PYTHONPATH and CLASSPATH 2/ Is it failing on the first invocation of jython or a specific bit of Python code? It looks like it is failing on an import. It would be good to clarify if simple scripts without imports work, just for troubleshooting. Adam > On 20 Jul 2016, at 12:14 AM, Vincent Privat <vp...@au...> wrote: > > Hi, > We’re using Jython 2.7.0 in a Maven/J2EE application and face the following error: > > java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class org.python.antlr.ast.Name > at org.python.core.Py.JavaError(Py.java:546) > at org.python.core.ParserFacade.fixParseError(ParserFacade.java:107) > at org.python.core.ParserFacade.parse(ParserFacade.java:190) > at org.python.core.imp.compileSource(imp.java:366) > at org.python.core.imp.compileSource(imp.java:355) > at org.python.core.util.importer.getModuleCode(importer.java:211) > at org.python.core.util.importer.importer_load_module(importer.java:95) > at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:163) > at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source) > at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46) > at org.python.core.imp.loadFromLoader(imp.java:587) > at org.python.core.imp.find_module(imp.java:537) > at org.python.core.imp.import_next(imp.java:840) > at org.python.core.imp.import_first(imp.java:861) > at org.python.core.imp.load(imp.java:716) > at org.python.core.Py.importSiteIfSelected(Py.java:1558) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116) > at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94) > at com.mycompany.myapplication > Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.python.antlr.ast.Name > at org.python.antlr.GrammarActions.makeDottedName(GrammarActions.java:91) > at org.python.antlr.PythonParser.dotted_name(PythonParser.java:5682) > at org.python.antlr.PythonParser.dotted_as_name(PythonParser.java:5447) > at org.python.antlr.PythonParser.dotted_as_names(PythonParser.java:5539) > at org.python.antlr.PythonParser.import_name(PythonParser.java:4860) > at org.python.antlr.PythonParser.import_stmt(PythonParser.java:4782) > at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2731) > at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2524) > at org.python.antlr.PythonParser.stmt(PythonParser.java:2438) > at org.python.antlr.PythonParser.file_input(PythonParser.java:618) > at org.python.antlr.BaseParser.parseModule(BaseParser.java:78) > at org.python.core.CompileMode$3.dispatch(CompileMode.java:22) > at org.python.core.ParserFacade.parse(ParserFacade.java:158) > at org.python.core.ParserFacade.parse(ParserFacade.java:188) > ... 54 more > I was unable to find this stacktrace in the bug database, is it a known bug, or maybe a configuration problem? > > Thanks, > Vincent > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
|
From: Vincent P. <vp...@au...> - 2016-07-19 16:27:09
|
Hi,
We're using Jython 2.7.0 in a Maven/J2EE application and face the following
error:
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not
initialize class org.python.antlr.ast.Name
at org.python.core.Py.JavaError(Py.java:546)
at org.python.core.ParserFacade.fixParseError(ParserFacade.java:107)
at org.python.core.ParserFacade.parse(ParserFacade.java:190)
at org.python.core.imp.compileSource(imp.java:366)
at org.python.core.imp.compileSource(imp.java:355)
at org.python.core.util.importer.getModuleCode(importer.java:211)
at
org.python.core.util.importer.importer_load_module(importer.java:95)
at
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter
.java:163)
at
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__c
all__(Unknown Source)
at
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46
)
at org.python.core.imp.loadFromLoader(imp.java:587)
at org.python.core.imp.find_module(imp.java:537)
at org.python.core.imp.import_next(imp.java:840)
at org.python.core.imp.import_first(imp.java:861)
at org.python.core.imp.load(imp.java:716)
at org.python.core.Py.importSiteIfSelected(Py.java:1558)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
at
org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
at com.mycompany.myapplication
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.python.antlr.ast.Name
at
org.python.antlr.GrammarActions.makeDottedName(GrammarActions.java:91)
at org.python.antlr.PythonParser.dotted_name(PythonParser.java:5682)
at
org.python.antlr.PythonParser.dotted_as_name(PythonParser.java:5447)
at
org.python.antlr.PythonParser.dotted_as_names(PythonParser.java:5539)
at org.python.antlr.PythonParser.import_name(PythonParser.java:4860)
at org.python.antlr.PythonParser.import_stmt(PythonParser.java:4782)
at org.python.antlr.PythonParser.small_stmt(PythonParser.java:2731)
at org.python.antlr.PythonParser.simple_stmt(PythonParser.java:2524)
at org.python.antlr.PythonParser.stmt(PythonParser.java:2438)
at org.python.antlr.PythonParser.file_input(PythonParser.java:618)
at org.python.antlr.BaseParser.parseModule(BaseParser.java:78)
at org.python.core.CompileMode$3.dispatch(CompileMode.java:22)
at org.python.core.ParserFacade.parse(ParserFacade.java:158)
at org.python.core.ParserFacade.parse(ParserFacade.java:188)
... 54 more
I was unable to find this stacktrace in the bug database, is it a known bug,
or maybe a configuration problem?
Thanks,
Vincent
|
|
From: Michael C. <chi...@mi...> - 2016-07-07 23:28:07
|
On 7/7/2016 6:08 PM, Stefan Richthofer wrote: > This looks like you placed a jar-file inside a jar-file. > I never tried this, but I doubt that Jython (actually Java?) can handle such > nesting of jars (maybe this feature was added and I am overlooking it, sorry in > that case). It's possible; spring-boot does it [1]. I guess with the ability to write custom classloaders, the sky's the limit :) According to > http://www.jython.org/jythonbook/en/1.0/SimpleWebApps.html?highlight=explode#distributing-via-standalone-jar > (which is somewhat dated though) you should "explode" jython-standalone, add > your code-files and then jar it again. I suppose you would have to do this with > your other dependencies too or distribute them as separate files. > (Maybe you better try this with a toy-example first, before re-packing all the > jars). That's sometimes referred to as a "shaded" jar. [1] mentions that approach too. > Looking at this, the need for some kind of deployment-tool that would automate > such a process comes to my mind. You should maybe check, whether such a thing > already exists (maybe for Java-apps in general). I know Maven has a plugin for it [2]. Other build tools might too. I don't know if this is helpful for Ranga's actual problem, but from the quoted email, I thought it would be of interest. Andy 1. http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#executable-jar 2. http://maven.apache.org/plugins/maven-shade-plugin/ |
|
From: Stefan R. <Ste...@gm...> - 2016-07-07 22:08:28
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;"> <div> <div>This looks like you placed a jar-file inside a jar-file.</div> <div>I never tried this, but I doubt that Jython (actually Java?) can handle such nesting of jars (maybe this feature was added and I am overlooking it, sorry in that case). According to <a href="http://www.jython.org/jythonbook/en/1.0/SimpleWebApps.html?highlight=explode#distributing-via-standalone-jar" target="_blank">http://www.jython.org/jythonbook/en/1.0/SimpleWebApps.html?highlight=explode#distributing-via-standalone-jar</a> (which is somewhat dated though) you should "explode" jython-standalone, add your code-files and then jar it again. I suppose you would have to do this with your other dependencies too or distribute them as separate files.</div> <div>(Maybe you better try this with a toy-example first, before re-packing all the jars).</div> <div>Looking at this, the need for some kind of deployment-tool that would automate such a process comes to my mind. You should maybe check, whether such a thing already exists (maybe for Java-apps in general).</div> <div> </div> <div>Best</div> <div> </div> <div>Stefan</div> <div> </div> <div> <div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);"> <div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Dienstag, 05. Juli 2016 um 16:21 Uhr<br/> <b>Von:</b> "Ranga Babu Mandada" <Ran...@ip...><br/> <b>An:</b> "Stefan Richthofer" <Ste...@gm...><br/> <b>Cc:</b> "jyt...@li..." <jyt...@li...><br/> <b>Betreff:</b> Re: [Jython-users] ImportError: No module named re</div> <div> <div style="font-size: 12.0pt;color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: Calibri , Arial , Helvetica , sans-serif;"> <p>Hello Stefan,</p> <p> </p> <p>I am packaging my application as a runnable jar ex: application.jar.</p> <p> </p> <p>It's contents are like below:</p> <p> </p> <p>when I run my application via IDE(Intellij IDEA) it's working properly.</p> <p>sys.path : </p> <p><span style="color: rgb(0,111,201);">['/home/rmandada/.m2/repository/org/python/jython-standalone/2.5.2/Lib', '/home/rmandada/.m2/repository/org/python/jython-standalone/2.5.2/jython-standalone-2.5.2.jar/Lib', '__classpath__', '__pyclasspath__/']</span></p> <p> </p> <p>But when I run the application from command line using <span style="color: rgb(0,111,201);"> java -jar application.jar</span> I am getting the above error.</p> <p>now sys.path is :</p> <p> </p> <p><span style="color: rgb(0,111,201);">['/home/rmandada/amelia-web.jar!/lib/Lib', '__classpath__', '__pyclasspath__/']​</span></p> <p> </p> <p>I tried to add the path like below code.</p> <p> </p> <div><span style="color: rgb(0,111,201);">PySystemState systemState = new PySystemState();</span></div> <div><span style="color: rgb(0,111,201);">systemState.path.append(Py.newString("lib/jython-standalone-2.5.2.jar/Lib"));</span></div> <div><span style="color: rgb(0,111,201);">Py.setSystemState(systemState);</span></div> <div><span style="color: rgb(0,111,201);">return new ScriptEngineManager().getEngineByName("python");</span></div> <div> </div> <div><span style="color: rgb(0,111,201);"><span style="color: rgb(0,0,0);">​But it's not working . Please tell me how to add the path of jython-standalone-2.5.2.jar​ which lies in lib folder of application.jar.</span></span></div> <p> </p> <p> </p> <p> </p> <div id="Signature"> <div style="font-family: Calibri , Arial , Helvetica , sans-serif;margin: 0;">Regards,<br/> Ranga Babu<br/> </div> </div> <div style="color: rgb(33,33,33);"> <hr style="display: inline-block;width: 98.0%;"/> <div id="divRplyFwdMsg"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11.0pt;"><b>From:</b> Stefan Richthofer <Ste...@gm...><br/> <b>Sent:</b> Friday, June 24, 2016 4:58 PM<br/> <b>To:</b> Ranga Babu Mandada<br/> <b>Cc:</b> jyt...@li...<br/> <b>Subject:</b> Re: [Jython-users] ImportError: No module named re</font> <div> </div> </div> <div> <div style="font-family: Verdana;font-size: 12.0px;"> <div> <div>Hello Ranga,</div> <div> </div> <div>this looks like in your command-line Jython-launch cannot find its lib-folder/doesn't have Jython-path configured properly.</div> <div>You should first identify the location of Jython's lib-folder (the folder containing the .py-files making up the major</div> <div>part of the standard lib). Then</div> <div>- you can check via import sys; print sys.path whether that folder is on the path.</div> <div>- you can verify if the problem is cured by manually adding that path via sys.path.append</div> <div>- you can fix you Jython-path configuration by providing the environment variable JYTHONPATH to the jvm (see jython --help)</div> <div>- I guess things get easier or issue might be self-soved if you call Jython via its launcher rather than manually via java-command.</div> <div>- finally you can consider how to solve this for distribution, e.g. by distributing jython-standalone</div> <div>(which contains the lib folder) or by providing an installer or launcher that makes sure the path is configured correctly for the user</div> <div> </div> <div>Hope this somewhat helps.</div> <div>Best</div> <div> </div> <div>Stefan</div> <div> </div> <div> </div> <div> <div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);"> <div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Freitag, 24. Juni 2016 um 12:17 Uhr<br/> <b>Von:</b> "Ranga Babu Mandada" <Ran...@ip...><br/> <b>An:</b> "jyt...@li..." <jyt...@li...><br/> <b>Betreff:</b> [Jython-users] ImportError: No module named re</div> <div> <div style="font-size: 12.0pt;color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: Calibri , Arial , Helvetica , sans-serif;"> <p> </p> <div style="font-size: 12.0pt;color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: Calibri , Arial , Helvetica , sans-serif;"><span style="font-size: 12.0pt;">Hello, </span> <div> <p> </p> <p>I am using Jython in java application to run python scripts. I am using <span style="font-size: 12.0pt;">j</span><span style="font-size: 12.0pt;">ython-standalone-2.5.2 as a dependency in pom.xml in maven project.</span></p> <p><span style="font-size: 12.0pt;">when I run the application in IDE the script is running without problems.</span></p> <p>But when I run the application from command line using<span style="color: rgb(255,0,0);"> java -jar application.jar <span style="color: rgb(0,0,0);">I get the following error</span></span></p> <p><span style="color: rgb(255,0,0);"><span style="color: rgb(0,0,0);">ImportError: No module named re​.</span></span></p> <p> </p> <p><span style="color: rgb(255,0,0);"><span style="color: rgb(0,0,0);">Please help me in fixing the issue.</span></span></p> <p> </p> <div id="Signature"> <div style="font-family: Calibri , Arial , Helvetica , sans-serif;margin: 0;">Regards,<br/> Ranga Babu<br/> </div> </div> </div> </div> ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. <a href="http://sdm.link/attshape_______________________________________________" target="_blank"> http://sdm.link/attshape_______________________________________________</a> Jython-users mailing list Jyt...@li... <a href="https://lists.sourceforge.net/lists/listinfo/jython-users" target="_blank"> https://lists.sourceforge.net/lists/listinfo/jython-users</a></div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div></div></body></html> |
|
From: Fabio Z. <fa...@gm...> - 2016-06-24 16:43:03
|
Release Highlights: ------------------------------- * **Important** PyDev now requires Java 8 and Eclipse 4.5 onwards. * PyDev 4.5.5 is the last release supporting Java 7 and Eclipse 3.8. * 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. * The pytest integration was redone and should now work properly with the latest pytest. * Properly showing output of tests in PyUnit view. * Improved dealing with items filtered through Ctrl+F9. * Better support for xdist (no longer reporting that the session finished when only a slave finished). * Reporting skipped items as "skip" and not "ok". * Properly showing running tests on PyUnit view. * Not using tokenize.open() in Python 3.2 for the execfile custom implementation. * Expand and collapse keybindings changed to use the Numpad entries (so that they don't override the add/subtract used for zooming). #PyDev 695. * The hover in PyDev has an implementation which is now more flexible and easier to extend in plugins (patch by Mark A. Leone). What is PyDev? --------------------------- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com What is LiClipse? --------------------------- LiClipse is a PyDev standalone with goodies such as support for Multiple cursors, theming, TextMate bundles and a number of other languages such as Django Templates, Jinja2, Kivy Language, Mako Templates, Html, Javascript, etc. It's also a commercial counterpart which helps supporting the development of PyDev. Details on LiClipse: http://www.liclipse.com/ Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer LiClipse http://www.liclipse.com PyDev - Python Development Environment for Eclipse http://pydev.org http://pydev.blogspot.com PyVmMonitor - Python Profiler http://www.pyvmmonitor.com/ |
|
From: Stefan R. <Ste...@gm...> - 2016-06-24 11:28:32
|
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello Ranga,</div>
<div> </div>
<div>this looks like in your command-line Jython-launch cannot find its lib-folder/doesn't have Jython-path configured properly.</div>
<div>You should first identify the location of Jython's lib-folder (the folder containing the .py-files making up the major</div>
<div>part of the standard lib). Then</div>
<div>- you can check via import sys; print sys.path whether that folder is on the path.</div>
<div>- you can verify if the problem is cured by manually adding that path via sys.path.append</div>
<div>- you can fix you Jython-path configuration by providing the environment variable JYTHONPATH to the jvm (see jython --help)</div>
<div>- I guess things get easier or issue might be self-soved if you call Jython via its launcher rather than manually via java-command.</div>
<div>- finally you can consider how to solve this for distribution, e.g. by distributing jython-standalone</div>
<div>(which contains the lib folder) or by providing an installer or launcher that makes sure the path is configured correctly for the user</div>
<div> </div>
<div>Hope this somewhat helps.</div>
<div>Best</div>
<div> </div>
<div>Stefan</div>
<div> </div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 24. Juni 2016 um 12:17 Uhr<br/>
<b>Von:</b> "Ranga Babu Mandada" <Ran...@ip...><br/>
<b>An:</b> "jyt...@li..." <jyt...@li...><br/>
<b>Betreff:</b> [Jython-users] ImportError: No module named re</div>
<div name="quoted-content"><!--p {
margin-top: 0.0px;
margin-bottom: 0.0px;
}
-->
<div style="font-size: 12.0pt;color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: Calibri , Arial , Helvetica , sans-serif;">
<p> </p>
<div style="font-size: 12.0pt;color: rgb(0,0,0);background-color: rgb(255,255,255);font-family: Calibri , Arial , Helvetica , sans-serif;"><span style="font-size: 12.0pt;">Hello, </span>
<div>
<p> </p>
<p>I am using Jython in java application to run python scripts. I am using <span style="font-size: 12.0pt;">j</span><span style="font-size: 12.0pt;">ython-standalone-2.5.2 as a dependency in pom.xml in maven project.</span></p>
<p><span style="font-size: 12.0pt;">when I run the application in IDE the script is running without problems.</span></p>
<p>But when I run the application from command line using<span style="color: rgb(255,0,0);"> java -jar application.jar <span style="color: rgb(0,0,0);">I get the following error</span></span></p>
<p><span style="color: rgb(255,0,0);"><span style="color: rgb(0,0,0);">ImportError: No module named re​.</span></span></p>
<p> </p>
<p><span style="color: rgb(255,0,0);"><span style="color: rgb(0,0,0);">Please help me in fixing the issue.</span></span></p>
<p> </p>
<div id="Signature">
<div style="font-family: Calibri , Arial , Helvetica , sans-serif;margin: 0;">Regards,<br/>
Ranga Babu<br/>
</div>
</div>
</div>
</div>
------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. <a href="http://sdm.link/attshape_______________________________________________" target="_blank">http://sdm.link/attshape_______________________________________________</a> Jython-users mailing list Jyt...@li... <a href="https://lists.sourceforge.net/lists/listinfo/jython-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/jython-users</a></div>
</div>
</div>
</div>
</div></div></body></html>
|
|
From: Ranga B. M. <Ran...@ip...> - 2016-06-24 10:17:23
|
Hello, I am using Jython in java application to run python scripts. I am using jython-standalone-2.5.2 as a dependency in pom.xml in maven project. when I run the application in IDE the script is running without problems. But when I run the application from command line using java -jar application.jar I get the following error ImportError: No module named re?. Please help me in fixing the issue. Regards, Ranga Babu |