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
Build failing on v0.13, but no issues on 0.12.10 #807
Comments
That's very interesting, thanks! Could you please post |
Sure. Thanks for taking a look.
|
And you're sure that latest 0.12 works fine on the same version of Python? |
Yep here is the output from 0.12.10, I recreated the venv so should be the same Python. Unless there is some error in doing so? Let me know what you think. Thanks again
|
Thanks! Let me see if I can repro it. |
This setup works on 3.9.7: self.write_file("src/main/python/code.py", textwrap.dedent(
"""
def run_code():
import jsonschema
print(jsonschema.__version__)
"""))
self.write_file("src/unittest/python/code_tests.py", textwrap.dedent(
"""
import unittest
import code
class CodeTests(unittest.TestCase):
def test_code(self):
code.run_code()
"""
)) |
This setup also works on 3.9.7: self.write_file("src/main/python/code.py", textwrap.dedent(
"""
import jsonschema
def run_code():
print(jsonschema.__version__)
"""))
self.write_file("src/unittest/python/code_tests.py", textwrap.dedent(
"""
import unittest
import code
class CodeTests(unittest.TestCase):
def test_code(self):
code.run_code()
"""
)) |
Reproduced on 3.8.10 only. 3.9.7 works fine. |
The cause is this: python/importlib_metadata#122 |
Found it, it's a bug in Python 3.8. Workaround found, fix incoming. |
python/importlib_metadata#122 needs to be workedaround in 0.13 fixes pybuilder#807
My project seems to fail to build on the 0.13 release and I was wondering if there are any breaking changes or what could possibly be going wrong that was not an issue on 0.12.10. The traceback does seem to point to importlib, but I figured this could be of use in case there is some other issue.
The text was updated successfully, but these errors were encountered: