Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with pkg_resources in pytest 3.0 and Jython #1853
I am working on a Jython project that is built with Maven and uses
I have looked briefly in your code and I'll submit a small PR to move the import sentence in
Reproduce like this:
I'm using Maven 3.3.9 and Java 8. In order to reproduce this problem, you can install those and clone my work repo.
Then run the build:
This will automatically download the latest py.test (3.0) to be included in the deliverable JAR (plus many other things), and run some tests, which will fail with the above error message.
Note you can get rid of all these downloaded stuff by removing the packages from your maven folder in your home directory called
added a commit
Aug 23, 2016
@RonnyPfannschmidt setuptools is being used from the Maven plugin that install all the python packages, it doesn't need to be included in the POM file.
@nicoddemus Jython does have the pkg_resources module.
Thanks both for your comments so far :)
We have just found this error comes from the Maven plugin that install all the python modules. It uses a very old version of setuptools (0.6) which is the one causing the problem.
We can update that plugin, but we were suspecting maybe other people had the same problem and you would consider making a change in the next release to only install pkg_resources when necessary, like you did in the past here, for example.