Public bug reported:

[Impact]
jcc/__init__.py uses _jcc without directly importing importing it
this can cause import errors
this breaks e.g. the pylucene build in precise, see bug 935380 which again 
blocks bug 1085226

[Fix]
add to the __init__.py
from jcc import _jcc
as is done in quantal

[TEST CASE]
I have not managed to find a simple testcase, so for now the pylucene build is 
the testcase
apt-get --compile pylucene

you should _not_ get this type of error:
  File "/usr/lib/python2.7/dist-packages/jcc/__init__.py", line 37, in <module>
     _jcc.CLASSPATH = CLASSPATH
 NameError: name '_jcc' is not defined

[Regression potential]
low just a simple add of an import, it is already applied in quantal

** Affects: jcc (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: jcc (Ubuntu Precise)
     Importance: Undecided
         Status: New

** Also affects: jcc (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Changed in: jcc (Ubuntu)
       Status: New => Fix Released

** Description changed:

  [Impact]
  jcc/__init__.py uses _jcc without directly importing importing it
  this can cause import errors
- this breaks e.g. the pylucene build in precise, see 935380
+ this breaks e.g. the pylucene build in precise, see bug 935380 which again 
blocks bug 1085226
  
  [Fix]
  add to the __init__.py
  from jcc import _jcc
  as is done in quantal
  
  [TEST CASE]
- I have not managed to fine a simple testcase, so for now the pylucene build 
is the testcase
+ I have not managed to find a simple testcase, so for now the pylucene build 
is the testcase
  apt-get --compile pylucene
  
  you should _not_ get this type of error:
-   File "/usr/lib/python2.7/dist-packages/jcc/__init__.py", line 37, in 
<module>
-      _jcc.CLASSPATH = CLASSPATH
-  NameError: name '_jcc' is not defined
+   File "/usr/lib/python2.7/dist-packages/jcc/__init__.py", line 37, in 
<module>
+      _jcc.CLASSPATH = CLASSPATH
+  NameError: name '_jcc' is not defined
  
  [Regression potential]
  low just a simple add of an import, it is already applied in quantal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1085256

Title:
  jcc not importable in some situations

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jcc/+bug/1085256/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to