Error when trying to access Plugin interface

Hi guys,

I installed the vc_vidyo plugin (pip install -e .), but when I try to go to /event/3/manage/videoconference/
I get the following error:

OSError

OSError: [Errno 2] No such file or directory: '/home/user/dev/indico/plugins/indico-plugins/vc_vidyo/indico_vc_vidyo/static/dist/manifest.json'
Traceback (most recent call last)

This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into a gist:

Traceback (most recent call last):
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    return handler(e)
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/user/dev/indico/src/indico/web/flask/util.py", line 84, in wrapper
    return obj().process()
  File "/home/user/dev/indico/src/indico/web/rh.py", line 275, in process
    res = self._do_process()
  File "/home/user/dev/indico/src/indico/web/rh.py", line 245, in _do_process
    rv = self._process()
  File "/home/user/dev/indico/src/indico/modules/vc/controllers.py", line 96, in _process
    event_vc_rooms=event_vc_rooms, plugins=get_vc_plugins().values())
  File "/home/user/dev/indico/src/indico/web/views.py", line 126, in render_template
    return cls(g.rh, *wp_args, **context).display()
  File "/home/user/dev/indico/src/indico/web/views.py", line 239, in display
    injected_bundles = values_from_signal(signals.plugin.inject_bundle.send(self.__class__), as_list=True,
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/user/dev/indico/env/lib/python2.7/site-packages/flask_pluginengine/util.py", line 194, in wrapped
    return func(*args, **kwargs)
  File "/home/user/dev/indico/src/indico/core/plugins/__init__.py", line 197, in _func
    return _do_inject(sender)
  File "/home/user/dev/indico/src/indico/core/plugins/__init__.py", line 188, in _do_inject
    return self.manifest[name]
  File "/home/user/dev/indico/src/indico/core/plugins/__init__.py", line 174, in manifest
    return self._get_manifest()
  File "/home/user/dev/indico/src/indico/core/plugins/__init__.py", line 159, in _get_manifest
    return loader.load(os.path.join(self.root_path, 'static', 'dist', 'manifest.json'))
  File "/home/user/dev/indico/src/indico/core/webpack.py", line 27, in load
    key = (filepath, os.path.getmtime(filepath))
  File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/user/dev/indico/plugins/indico-plugins/vc_vidyo/indico_vc_vidyo/static/dist/manifest.json'

The plugin Admin section at /admin/plugins/vc_vidyo/ works just fine, and the /service/videoconference/ Search form works fine as well.

I am clueless. :frowning:

Did you build the plugin assets?

python bin/maintenance/build-assets.py plugin --dev ../plugins/indico-plugins/vc_vidyo

Didn’t :frowning: Will do in a sec and try again…
What does this tool do behind the scenes? Just curious…

it runs webpack to build the js/css bundles from the source files

All working now. Thank you @ThiefMaster!