Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239479 - [PATCH] dev-java/javatoolkit fails with python-2.6
Summary: [PATCH] dev-java/javatoolkit fails with python-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2008-10-03 21:41 UTC by Santiago M. Mola (RETIRED)
Modified: 2009-03-07 17:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-java/java-config-2.1.6 patch to remove python2.6 Sets warnings (java-config-2.1.6-python2.6.patch,2.05 KB, patch)
2009-03-07 15:33 UTC, Jesus Rivero (RETIRED)
Details | Diff
dev-java/javatoolkit-0.3.0 patch for MavenPom failure (javatoolkit-0.3.0-python2.6.patch,413 bytes, patch)
2009-03-07 15:35 UTC, Jesus Rivero (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago M. Mola (RETIRED) gentoo-dev 2008-10-03 21:41:25 UTC
javatoolkit produces various warnings with Python 2.6 (annoying but inocous) and maven-helper.py fails.

>>> Starting src_unpack
>>> Unpacking plexus-classworlds-1.2.tar.bz2 to /var/tmp/paludis/dev-java-plexus-classworlds-1.2/work
tar jxf /var/distfiles/plexus-classworlds-1.2.tar.bz2 --no-same-owner
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 151, in <module>
    run()
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 75, in run
    pom = doAction(fs,options)
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 52, in doAction
    pom = MavenPom(options)
TypeError: 'module' object is not callable
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 151, in <module>
    run()
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 75, in run
    pom = doAction(fs,options)
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 52, in doAction
    pom = MavenPom(options)
TypeError: 'module' object is not callable
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 151, in <module>
    run()
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 75, in run
    pom = doAction(fs,options)
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 52, in doAction
    pom = MavenPom(options)
TypeError: 'module' object is not callable
/usr/lib64/python2.6/site-packages/java_config_2/EnvironmentManager.py:15: DeprecationWarning: the sets module is deprecated
  from sets import Set
/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import *
/usr/lib64/python2.6/site-packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import *
/usr/lib64/python2.6/site-packages/java_config_2/EnvironmentManager.py:15: DeprecationWarning: the sets module is deprecated
  from sets import Set
/usr/lib64/python2.6/site-packages/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  from md5 import *
/usr/lib64/python2.6/site-packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  from sha import *
 * Rewriting plexus-classworlds-1.2/pom.xml
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 151, in <module>
    run()
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 75, in run
    pom = doAction(fs,options)
  File "/usr/lib/javatoolkit/bin/maven-helper.py", line 52, in doAction
    pom = MavenPom(options)
TypeError: 'module' object is not callable

!!! ERROR in dev-java/plexus-classworlds-1.2:
!!! In java-maven-2_rewrite_poms at line 3461
!!! failed rewriting /var/tmp/paludis/dev-java-plexus-classworlds-1.2/work/plexus-classworlds-1.2/pom.xml
Comment 1 Alistair Bush (RETIRED) gentoo-dev 2008-10-04 20:27:39 UTC
Thanks for the heads up.

Is there an overlay with python:2.6 in?
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2008-10-04 21:05:47 UTC
Yes. python-experimental [1] at the moment. I guess it'll hit the tree soon.

[1] http://overlays.gentoo.org/svn/proj/python/overlays/experimental
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-12-13 21:24:46 UTC
maven-helper.py contains:
  from javatoolkit.maven import MavenPom
This import should be changed to:
  from javatoolkit.maven.MavenPom import MavenPom
Comment 4 Jesus Rivero (RETIRED) gentoo-dev 2009-03-07 15:33:43 UTC
Created attachment 184227 [details, diff]
dev-java/java-config-2.1.6 patch to remove python2.6 Sets warnings
Comment 5 Jesus Rivero (RETIRED) gentoo-dev 2009-03-07 15:35:35 UTC
Created attachment 184229 [details, diff]
dev-java/javatoolkit-0.3.0 patch for MavenPom failure
Comment 6 Jesus Rivero (RETIRED) gentoo-dev 2009-03-07 17:31:37 UTC
    Hello, Both packages have been fixed (java-config-2.1.7 and
javatoolkit-0.3.0-r3) So this issue shouldn't exist anymore. Thanks everybody!!

    Best regards,