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

missing keyword on reloader #3200

Open
porkytin opened this issue Nov 28, 2024 · 1 comment
Open

missing keyword on reloader #3200

porkytin opened this issue Nov 28, 2024 · 1 comment

Comments

@porkytin
Copy link

Describe the bug
A clear and concise description of what the bug is.

In volttron/utils/init.py line 107

super(VolttronHomeFileReloader, self).__init__([get_home() + '/' + filetowatch])

The parent class requires the explicit keyword patterns=[get_home() + '/' + filetowatch]
This mess ups the vc startup when using http at least.

To Reproduce
Steps to reproduce the behavior:

  1. install vc using vcfg
  2. Start volttron
  3. look for error:

Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/user/volttron/volttron/platform/web/platform_web_service.py", line 768, in startupagent
    self._admin_endpoints = AdminEndpoints(rpc_caller=rpc_caller)
  File "/home/user/volttron/volttron/platform/web/admin_endpoints.py", line 94, in __init__
    VolttronHomeFileReloader("web-users.json", self.reload_userdict),
  File "/home/user/volttron/volttron/utils/__init__.py", line 109, in __init__
    super(VolttronHomeFileReloader, self).__init__([get_home() + '/' + filetowatch])
TypeError: PatternMatchingEventHandler.__init__() takes 1 positional argument but 2 were given

Operating System (please complete the following information):

  • OS: Ubuntu 22.04 on Rpi4
  • Volttron Version [9.0.1]
@craig8
Copy link
Contributor

craig8 commented Dec 5, 2024

@porkytin thank you I will get this fixed up today!

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

No branches or pull requests

2 participants