New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jython: ImportError: No module named pkg_resources #9
Comments
Note: I tried it with jython-standalone and after using the installer.
If I remove pkg_resources from typelogger.py and set the version to some constant, both variants pass again. |
Jython does come with setuptools preinstalled, does it not? Installing it normally should make it work. I don't quite understand how the above error relates to pkg_resources. |
On second look, I see that importing pkg_resources causes the pytypes code to be imported. This is an import order issue. I'll look into it. |
That fixed the issue in principle, thank you. Do you know if it's possible to include Jython into travis tests? |
From Travis documentation:
|
So I'd say it's possible but not without some degree of hacking. |
There is an alternative to setuptools_scm, named pbr but it adds its own complexity to the build process. The upside is that it doesn't require |
Okay, let's stick to setuptools_scm now. You'll probably not like the workaround in 872bd33, I also don't like it. |
Re: authors/notices: yeah, looks okay to me. |
Anyways, the hack is ugly but it doesn't matter if it's just temporary workaround. |
Seems like I broke travis with the assert. Removed it as of d07414f |
This is probably a Jython issue, but I'd like to have a fallback, since pytypes used to work with Jython apart from this.
As far as I understand, this is about some functionality of setuptools.
I didn't explicitly run setup.py on Jython, so something might be ill-configured.
However, I also didn't do such a thing on CPython, but there it runs out of the box.
How to fix it?
The text was updated successfully, but these errors were encountered: