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

nikola auto: "AttributeError: 'FileOpenedEvent' object has no attribute '_src_path'. Did you mean: 'src_path'?" #3761

Closed
aknrdureegaesr opened this issue Feb 20, 2024 · 0 comments · Fixed by #3762
Labels

Comments

@aknrdureegaesr
Copy link
Contributor

Environment

Python Version: 3.12.2

Nikola Version: SHA #b46b1211128 on my branch

Operating System: Debian Bullseye

Description:

nikola auto -b produces an error

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/python-3.12.2/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/home/andreas/workspace-famsik/dj3ei/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 223, in run
    self.dispatch_events(self.event_queue)
  File "/home/andreas/workspace-famsik/dj3ei/venv/lib/python3.12/site-packages/watchdog/observers/api.py", line 402, in dispatch_events
    handler.dispatch(event)
  File "/home/andreas/comp/nikola/nikola/plugins/command/auto/__init__.py", line 623, in dispatch
    if event._src_path == self.configuration_filename:
       ^^^^^^^^^^^^^^^
AttributeError: 'FileOpenedEvent' object has no attribute '_src_path'. Did you mean: 'src_path'?

Initial analysis:

Our dependency watchdog came out with a new major release 4.0.0 and 4.0.1. The private attribute _src_path has been promoted official to src_path.

Fix should be easy, forthcoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant