Skip to content

KeyError: 'publish' (lib\site-packages\pybuilder\execution.py:292) #737

@samsonych

Description

@samsonych

I faced the following error after upgrading the pybuilder from 0.11 to 0.12 (environment 'system': CPython version 3.6.8.final.0 on win32).

PyBuilder version 0.12.6
Build started at 2020-07-20 22:30:50
------------------------------------------------------------
[INFO]  Installing or updating plugin "pypi:my_pybuilder_plugin, module name 'my_pybuilder_plugin'"
[INFO]  Processing plugin packages 'my_pybuilder_plugin' to be installed with {}
------------------------------------------------------------
BUILD FAILED - KeyError: 'publish' (lib\site-packages\pybuilder\execution.py:292)
------------------------------------------------------------
Build finished at 2020-07-20 22:31:09
Build took 19 seconds (19333 ms)

I'm not sure that I fully understand the method pybuilder.execution.ExecutionManager.register_late_task_dependencies but it seems to me there is a error parameter in the debug message. Please look at the line 292) or check it in this pull request #738 .

I suppose it is necessary to use self._dependencies_pending_tasks instead of dependencies in this case. At least my project was built successfully after this fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions