Skip to content

Build failing on v0.13, but no issues on 0.12.10 #807

Closed
@kharoutaj

Description

@kharoutaj

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.

Traceback (most recent call last):
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/cli.py", line 475, in main
    summary = reactor.build(
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/reactor.py", line 235, in build
    execution_summary = self.build_execution_plan(tasks, execution_plan)
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/reactor.py", line 270, in build_execution_plan
    task_execution_summaries = self.execution_manager.execute_execution_plan(
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/execution.py", line 393, in execute_execution_plan
    summaries.append(self.execute_task(task, **kwargs))
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/execution.py", line 340, in execute_task
    task.execute(self.logger, kwargs, _executable=_executable)
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/execution.py", line 179, in execute
    executable.execute(argument_dict)
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/execution.py", line 95, in execute
    self.callable(*arguments)
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 65, in run_unit_tests
    run_tests(project, logger, reactor, "unittest", "unit tests")
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 90, in run_tests
    result, console_out = execute_tests_matching(
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/plugins/python/unittest_plugin.py", line 144, in execute_tests_matching
    tests = pipe.get_exposed("unittest_tests")
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/remote/__init__.py", line 667, in get_exposed
    return self._recv()  # type: _BaseProxy
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/remote/__init__.py", line 942, in _recv
    raise data[1]
  File "/home/dev/testing/common/testing/lib/python3.8/site-packages/pybuilder/plugins/python/remote_tools/unittest_tool.py", line 43, in start
    tests = loader.loadTestsFromNames(self.test_modules)
  File "/usr/lib/python3.8/unittest/loader.py", line 220, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.8/unittest/loader.py", line 220, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python3.8/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/dev/testing/common/src/unittest/python/util/url_tests.py", line 8, in <module>
    import seven_common.util.url as url
  File "/home/dev/testing/common/src/main/python/seven_common/util/url.py", line 3, in <module>
    from .data import transform_values
  File "/home/dev/testing/common/src/main/python/seven_common/util/data.py", line 10, in <module>
    from openapi_schema_validator import validate
  File "/home/dev/testing/common/target/venv/build/cpython-3.8.10.final.0/lib/python3.8/site-packages/openapi_schema_validator/__init__.py", line 2, in <module>
    from openapi_schema_validator._format import oas30_format_checker
  File "/home/dev/testing/common/target/venv/build/cpython-3.8.10.final.0/lib/python3.8/site-packages/openapi_schema_validator/_format.py", line 6, in <module>
    from jsonschema._format import FormatChecker
  File "/home/dev/testing/common/target/venv/build/cpython-3.8.10.final.0/lib/python3.8/site-packages/jsonschema/__init__.py", line 34, in <module>
    __version__ = metadata.version("jsonschema")
  File "/usr/lib/python3.8/importlib/metadata.py", line 530, in version
    return distribution(distribution_name).version
  File "/usr/lib/python3.8/importlib/metadata.py", line 503, in distribution
    return Distribution.from_name(distribution_name)
  File "/usr/lib/python3.8/importlib/metadata.py", line 173, in from_name
    dist = next(dists, None)
TypeError: 'list' object is not an iterator

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions