Skip to content
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

fix python nodes being blocked by log #783

Merged
merged 3 commits into from
Mar 19, 2020
Merged

fix python nodes being blocked by log #783

merged 3 commits into from
Mar 19, 2020

Conversation

ChemicalXandco
Copy link
Contributor

Fix for #780, the log is cleared directly from processChunk instead of relying on chunk.statusChanged

...when ran on command line with meshroom_photogrammetry or meshroom_compute
setup.py Outdated
@@ -41,6 +41,8 @@ def __init__(self, script, initScript=None, base=None, targetName=None, icons=No
build_exe_options = {
# include dynamically loaded plugins
"packages": ["meshroom.nodes", "meshroom.submitters"],
# cx_Freeze does not copy idnadata by default, so it needs to be added here
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"includes": [
    "idna.idnadata",  # Dependency needed by SketchfabUpload node, but not detected by cx_Freeze
    ],

if not chunk.node.output.value:
return
try:
chunk.logManager.start(chunk.node.verboseLevel.value)
Copy link
Member

@fabiencastan fabiencastan Mar 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to use with instead of start/end:

with chunk.logManager:
    ...

@fabiencastan fabiencastan added this to the Meshroom 2020.1.0 milestone Mar 19, 2020
@fabiencastan fabiencastan merged commit 9fe8d2b into alicevision:develop Mar 19, 2020
@ChemicalXandco ChemicalXandco deleted the sketchfab_upload_node branch June 20, 2020 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants