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
nikola auto throws ValueError exception on rebuild #3766
Comments
Can you add some |
results in:
|
I have a very similar issue on macOS.
As suggested I print the values of I also have another error that might be related:
I added a The event object does not have a |
@LudovicRousseau Your issue is #3761, it’s fixed on the |
The issue here seems to be
we see event_path = event.dest_path when dest_path is present but empty. When I get this error, event has the following values, including a blank dest_path
So perhaps changing that line to event_path = getattr(event, 'dest_path', None) or event.src_path fixes the issue. This code looks pretty old, so I'm not sure what changed to start causing this issue, probably something in watchdog. |
@clayadavis I confirm you proposed patch fixes the issue for me. |
Environment
Python Version: 3.11.2
Nikola Version:
master
0a533d6Operating System: WSL 2.0
Description:
nikola auto throws an exception when rebuilding, though the rebuild seems to be successful:
The text was updated successfully, but these errors were encountered: