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
Thanks for the heads up. Is there an overlay with python:2.6 in?
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
maven-helper.py contains: from javatoolkit.maven import MavenPom This import should be changed to: from javatoolkit.maven.MavenPom import MavenPom
Created attachment 184227 [details, diff] dev-java/java-config-2.1.6 patch to remove python2.6 Sets warnings
Created attachment 184229 [details, diff] dev-java/javatoolkit-0.3.0 patch for MavenPom failure
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,