[xwiki-devs] Issue with Pygments/Python
Hi all, I've come across this issue today while using the code 20 macro. It seems that there's an issue with the class loader that is unable to locate one of the packaged python modules (os). It might explain the cause given the fact that with Tomcat I've no issues (now using Weblogic as company wide app server). Have you ever experienced something line this: Caused by: Traceback (most recent call last): File "<string>", line 1, in <module> File "__pyclasspath__/pygments/__init__.py", line 36, in <module> ImportError: No module named os at org.python.core.PyException.fillInStackTrace(PyException.java:70) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Exception.java:29) at java.lang.RuntimeException.<init>(RuntimeException.java:32) at org.python.core.PyException.<init>(PyException.java:46) at org.python.core.PyException.<init>(PyException.java:43) at org.python.core.PyException.<init>(PyException.java:61) at org.python.core.Py.ImportError(Py.java:264) at org.python.core.imp.import_first(imp.java:672) at org.python.core.imp.import_name(imp.java:756) at org.python.core.imp.importName(imp.java:806) at org.python.core.ImportFunction.__call__(__builtin__.java:1232) at org.python.core.PyObject.__call__(PyObject.java:367) at org.python.core.__builtin__.__import__(__builtin__.java:1202) -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816815.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Mar 29, 2010 at 10:24, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi all, I've come across this issue today while using the code 20 macro. It seems that there's an issue with the class loader that is unable to locate one of the packaged python modules (os). It might explain the cause given the fact that with Tomcat I've no issues (now using Weblogic as company wide app server). Have you ever experienced something line this:
Caused by: Traceback (most recent call last): File "<string>", line 1, in <module> File "__pyclasspath__/pygments/__init__.py", line 36, in <module> ImportError: No module named os
at org.python.core.PyException.fillInStackTrace(PyException.java:70) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Exception.java:29) at java.lang.RuntimeException.<init>(RuntimeException.java:32) at org.python.core.PyException.<init>(PyException.java:46) at org.python.core.PyException.<init>(PyException.java:43) at org.python.core.PyException.<init>(PyException.java:61) at org.python.core.Py.ImportError(Py.java:264) at org.python.core.imp.import_first(imp.java:672) at org.python.core.imp.import_name(imp.java:756) at org.python.core.imp.importName(imp.java:806) at org.python.core.ImportFunction.__call__(__builtin__.java:1232) at org.python.core.PyObject.__call__(PyObject.java:367) at org.python.core.__builtin__.__import__(__builtin__.java:1202)
At startup Jython scans all jars in the classpath to find python code. Maybe Weblogic configuration you have does not allow it to do that ?
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816815.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, Thanks for replying. Though I've got a context class loader to make Xwiki working with Weblogic I reckon jython is allowd to scan the lib dir. Is there any documentation in your repository describing the integration jython/xwiki? I'm digging into the 2 jars jython-standalone-2.5.1-xwiki && pygments-1.0-xwiki-1.jar for the moment. Regards Nicola ________________________________ From: tmortagne [via XWiki] [mailto:ml-node+4816889-1739552021-433577@n2.nabble.com] Sent: Monday, March 29, 2010 10:53 AM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python On Mon, Mar 29, 2010 at 10:24, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=0> > wrote:
Hi all, I've come across this issue today while using the code 20 macro. It
seems
that there's an issue with the class loader that is unable to locate one of the packaged python modules (os). It might explain the cause given the fact that with Tomcat I've no issues (now using Weblogic as company wide app server). Have you ever experienced something line this:
Caused by: Traceback (most recent call last): File "<string>", line 1, in <module> File "__pyclasspath__/pygments/__init__.py", line 36, in <module> ImportError: No module named os
at org.python.core.PyException.fillInStackTrace(PyException.java:70) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Exception.java:29) at java.lang.RuntimeException.<init>(RuntimeException.java:32) at org.python.core.PyException.<init>(PyException.java:46) at org.python.core.PyException.<init>(PyException.java:43) at org.python.core.PyException.<init>(PyException.java:61) at org.python.core.Py.ImportError(Py.java:264) at org.python.core.imp.import_first(imp.java:672) at org.python.core.imp.import_name(imp.java:756) at org.python.core.imp.importName(imp.java:806) at org.python.core.ImportFunction.__call__(__builtin__.java:1232) at org.python.core.PyObject.__call__(PyObject.java:367) at org.python.core.__builtin__.__import__(__builtin__.java:1202)
At startup Jython scans all jars in the classpath to find python code. Maybe Weblogic configuration you have does not allow it to do that ?
-- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816815.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=2> http://lists.xwiki.org/mailman/listinfo/devs ________________________________ View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816889.html To unsubscribe from Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNjgxNXwtMTY3NzI5OTkzNg==> . -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816902.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Mar 29, 2010 at 10:58, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi,
Thanks for replying. Though I've got a context class loader to make Xwiki working with Weblogic I reckon jython is allowd to scan the lib dir. Is there any documentation in your repository describing the integration jython/xwiki? I'm digging into the 2 jars jython-standalone-2.5.1-xwiki && pygments-1.0-xwiki-1.jar for the moment.
It's not there actually, Jython and Pygments is used directly in code macro: http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki... * pygments-1.0-xwiki-1.jar is just pygment packaged in a jar * jython-standalone-2.5.1-xwiki is the jython standalone jar (java+python standard) on our maven repository because i could not find it in another one
Regards Nicola
________________________________
From: tmortagne [via XWiki] [mailto:ml-node+4816889-1739552021-433577@n2.nabble.com] Sent: Monday, March 29, 2010 10:53 AM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 10:24, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=0> > wrote:
Hi all, I've come across this issue today while using the code 20 macro. It
seems
that there's an issue with the class loader that is unable to locate one of the packaged python modules (os). It might explain the cause given the fact that with Tomcat I've no issues (now using Weblogic as company wide app server). Have you ever experienced something line this:
Caused by: Traceback (most recent call last): File "<string>", line 1, in <module> File "__pyclasspath__/pygments/__init__.py", line 36, in <module> ImportError: No module named os
at org.python.core.PyException.fillInStackTrace(PyException.java:70) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Exception.java:29) at java.lang.RuntimeException.<init>(RuntimeException.java:32) at org.python.core.PyException.<init>(PyException.java:46) at org.python.core.PyException.<init>(PyException.java:43) at org.python.core.PyException.<init>(PyException.java:61) at org.python.core.Py.ImportError(Py.java:264) at org.python.core.imp.import_first(imp.java:672) at org.python.core.imp.import_name(imp.java:756) at org.python.core.imp.importName(imp.java:806) at org.python.core.ImportFunction.__call__(__builtin__.java:1232) at org.python.core.PyObject.__call__(PyObject.java:367) at org.python.core.__builtin__.__import__(__builtin__.java:1202)
At startup Jython scans all jars in the classpath to find python code. Maybe Weblogic configuration you have does not allow it to do that ?
-- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816815.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4816889&i=2> http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816889.html To unsubscribe from Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNjgxNXwtMTY3NzI5OTkzNg==> .
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4816902.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, Thanks for your time. I'll try to work this out somehow and let you know. Regards Nicola -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817037.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Mar 29, 2010 at 11:51, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi, Thanks for your time. I'll try to work this out somehow and let you know.
Thanks to you to work on this ;)
Regards Nicola -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817037.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
At least I've found out a work-around, that's not the ideal solution, but it works. Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython. Cheers Nicola -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
At least I've found out a work-around, that's not the ideal solution, but it works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi, Yeah, it does work without the Lib directory and that's my current configuration. Another option could be dismantle the pygments jar and put the required py file s right away into the jython jar, so that you'll have only one jar. Cheers Nicola ________________________________ From: tmortagne [via XWiki] [mailto:ml-node+4817652-227500172-433577@n2.nabble.com] Sent: Monday, March 29, 2010 2:36 PM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=0> > wrote:
At least I've found out a work-around, that's not the ideal solution,
but it
works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=2> http://lists.xwiki.org/mailman/listinfo/devs ________________________________ View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817652.html To unsubscribe from Re: Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNzIwMXwtMTY3NzI5OTkzNg==> . -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4818198.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Mon, Mar 29, 2010 at 16:26, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi,
Yeah, it does work without the Lib directory and that's my current configuration.
Another option could be dismantle the pygments jar and put the required py file s right away into the jython jar, so that you'll have only one jar.
Yes but actually i was thinking that we could start using the right maven central jython jar instead of having it on our own maven repository and only host the python libs jar. Maybe someday jython will provide some kind of jython-all artefact but in the meantime it's probably better to use standard builds as much as possible.
Cheers Nicola
________________________________
From: tmortagne [via XWiki] [mailto:ml-node+4817652-227500172-433577@n2.nabble.com] Sent: Monday, March 29, 2010 2:36 PM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=0> > wrote:
At least I've found out a work-around, that's not the ideal solution,
but it
works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=2> http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817652.html To unsubscribe from Re: Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNzIwMXwtMTY3NzI5OTkzNg==> .
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4818198.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On Mon, Mar 29, 2010 at 16:48, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Mon, Mar 29, 2010 at 16:26, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi,
Yeah, it does work without the Lib directory and that's my current configuration.
Another option could be dismantle the pygments jar and put the required py file s right away into the jython jar, so that you'll have only one jar.
Yes but actually i was thinking that we could start using the right maven central jython jar instead of having it on our own maven repository and only host the python libs jar. Maybe someday jython will provide some kind of jython-all artefact but in the meantime it's probably better to use standard builds as much as possible.
BTW could you create a jira issue on http://jira.xwiki.org to explain the issue you found and the way to fix it, we will say it count as a patch ;)
Cheers Nicola
________________________________
From: tmortagne [via XWiki] [mailto:ml-node+4817652-227500172-433577@n2.nabble.com] Sent: Monday, March 29, 2010 2:36 PM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=0> > wrote:
At least I've found out a work-around, that's not the ideal solution,
but it
works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=2> http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817652.html To unsubscribe from Re: Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNzIwMXwtMTY3NzI5OTkzNg==> .
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4818198.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
On Mon, Mar 29, 2010 at 16:48, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Mon, Mar 29, 2010 at 16:26, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi,
Yeah, it does work without the Lib directory and that's my current configuration.
Another option could be dismantle the pygments jar and put the required py file s right away into the jython jar, so that you'll have only one jar.
Yes but actually i was thinking that we could start using the right maven central jython jar instead of having it on our own maven repository and only host the python libs jar. Maybe someday jython will provide some kind of jython-all artefact but in the meantime it's probably better to use standard builds as much as possible.
Actually never mind the jython 2.5.1 version is still not in central maven repository... so i will go the one jar way on our repository.
Cheers Nicola
________________________________
From: tmortagne [via XWiki] [mailto:ml-node+4817652-227500172-433577@n2.nabble.com] Sent: Monday, March 29, 2010 2:36 PM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=0> > wrote:
At least I've found out a work-around, that's not the ideal solution,
but it
works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=2> http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817652.html To unsubscribe from Re: Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNzIwMXwtMTY3NzI5OTkzNg==> .
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4818198.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
On Mon, Mar 29, 2010 at 18:06, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Mon, Mar 29, 2010 at 16:48, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
On Mon, Mar 29, 2010 at 16:26, Nicola Nardino <nicola.nardino@credit-suisse.com> wrote:
Hi,
Yeah, it does work without the Lib directory and that's my current configuration.
Another option could be dismantle the pygments jar and put the required py file s right away into the jython jar, so that you'll have only one jar.
Yes but actually i was thinking that we could start using the right maven central jython jar instead of having it on our own maven repository and only host the python libs jar. Maybe someday jython will provide some kind of jython-all artefact but in the meantime it's probably better to use standard builds as much as possible.
Actually never mind the jython 2.5.1 version is still not in central maven repository... so i will go the one jar way on our repository.
Or not. It produce a very messy jar, it hurts my eyes ;)
Cheers Nicola
________________________________
From: tmortagne [via XWiki] [mailto:ml-node+4817652-227500172-433577@n2.nabble.com] Sent: Monday, March 29, 2010 2:36 PM To: Nardino Nicola (KSTB 52) Subject: Re: Issue with Pygments/Python
On Mon, Mar 29, 2010 at 12:41, Nicola Nardino <[hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=0> > wrote:
At least I've found out a work-around, that's not the ideal solution,
but it
works.
Due to the fact that, maybe caused by my context class loader, jython is not able to add the Lib directory to its classpath by default (this is valid only in my specific context). So I've moved all files in jython/Lib/* to jython_home$/* and this works. It would be nice to know how to explitily set the path to Lib or at least where this setting happens in jython.
Does it work without the "Lib" folder in a separated jar (in short, like it's done with Pygments) ? If that's the case then i will change jython packaging that way.
Cheers Nicola -- View this message in context:
http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817201.html
Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=1> http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [hidden email] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4817652&i=2> http://lists.xwiki.org/mailman/listinfo/devs
________________________________
View message @ http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4817652.html To unsubscribe from Re: Issue with Pygments/Python, click here < (link removed) pbm9AY3JlZGl0LXN1aXNzZS5jb218NDgxNzIwMXwtMTY3NzI5OTkzNg==> .
-- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4818198.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne
Yes, I know. It's not the best from your perspective of application owner/deployer, but it's best when it comes to skip path issues. Btw, I've not tried to explicitly set the registry file mentioned in jython documentation, guess that it could fix the issue politely. Cheers Nicola -- View this message in context: http://n2.nabble.com/Issue-with-Pygments-Python-tp4816815p4823150.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
participants (2)
-
Nicola Nardino -
Thomas Mortagne