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

Regression in 2.1.4: 'WatchdogFileMonitor' object has no attribute '_emitters' #830

Closed
hyperknot opened this issue Aug 22, 2021 · 6 comments

Comments

@hyperknot
Copy link

hyperknot commented Aug 22, 2021

2.1.4 terminates in

AttributeError: 'WatchdogFileMonitor' object has no attribute '_emitters'

2.1.3 is OK.

Full trace:

Traceback (most recent call last):
  File "venv/bin/pserve", line 8, in <module>
    sys.exit(main())
  File "venv/lib/python3.7/site-packages/pyramid/scripts/pserve.py", line 34, in main
    return command.run()
  File "venv/lib/python3.7/site-packages/pyramid/scripts/pserve.py", line 250, in run
    ignore_files=self.ignore_files,
  File "venv/lib/python3.7/site-packages/hupper/reloader.py", line 489, in start_reloader
    return reloader.run()
  File "venv/lib/python3.7/site-packages/hupper/reloader.py", line 138, in run
    with self._setup_runtime():
  File "/Users/user/.pyenv/versions/3.7.10/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "venv/lib/python3.7/site-packages/hupper/reloader.py", line 179, in _setup_runtime
    with self._start_monitor():
  File "/Users/user/.pyenv/versions/3.7.10/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "venv/lib/python3.7/site-packages/hupper/reloader.py", line 209, in _start_monitor
    self.monitor.start()
  File "venv/lib/python3.7/site-packages/hupper/reloader.py", line 56, in start
    self.monitor.start()
  File "venv/lib/python3.7/site-packages/watchdog/observers/api.py", line 254, in start
    for emitter in self._emitters.copy():
AttributeError: 'WatchdogFileMonitor' object has no attribute '_emitters'
@BoboTiG
Copy link
Collaborator

BoboTiG commented Aug 22, 2021

Could you share a minimal reproduction code please?

@hyperknot
Copy link
Author

hyperknot commented Aug 22, 2021 via email

@BoboTiG
Copy link
Collaborator

BoboTiG commented Aug 22, 2021

OK I will have a look when I can, thanks for the report :)

@BoboTiG
Copy link
Collaborator

BoboTiG commented Aug 23, 2021

I reproduced and the regression was introduced with #814.

@BoboTiG
Copy link
Collaborator

BoboTiG commented Aug 23, 2021

Watchdog 2.1.5 released with the fix :)

@hyperknot
Copy link
Author

2.1.5 works perfectly, thanks for the quick fix!

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

No branches or pull requests

2 participants