[
https://issues.apache.org/jira/browse/PYLUCENE-25?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685804#comment-13685804
]
Andi Vajda commented on PYLUCENE-25:
------------------------------------
Which version of jcc are you using ?
The __init__.py file I'm looking at right now ends with these two lines::
from _lucene import *
from java.io import PrintWriter, StringWriter
How does your look ?
> JCC: "NameError: global name 'StringWriter' is not defined" occurs when java
> exception raised
> ---------------------------------------------------------------------------------------------
>
> Key: PYLUCENE-25
> URL: https://issues.apache.org/jira/browse/PYLUCENE-25
> Project: PyLucene
> Issue Type: Bug
> Reporter: Ilia Meerovich
> Labels: jcc
>
> I used jcc and tried to run generated python code.
> I noticed that when java exception occurs, python throws NameError exception:
> "NameError: global name 'StringWriter' is not defined"
> It looks like __init__.py needs to adapt to the full names features.
> I found that somebody already sent an email regards similar failure:
> http://mail-archives.apache.org/mod_mbox/lucene-pylucene-dev/201302.mbox/%[email protected]%3E
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira