Thanks for the response.
I moved the created wheel to our server and did a “pip install pi_customization”
but now I get this error:
RuntimeError: Assets for plugin pi_customization have not been built:
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/core/plugins/__init__.py", line 192, in _do_inject
return self.manifest[name]
~~~~~~~~~~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/flask_pluginengine/util.py", line 190, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/flask/util.py", line 80, in wrapper
return obj().process()
^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py", line 307, in process
res = self._do_process()
^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/rh.py", line 275, in _do_process
rv = self._process()
^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/pi_customization/controllers.py", line 120, in _process
return self._prepare_template(form)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/pi_customization/controllers.py", line 97, in _prepare_template
return WPSeminarManagement.render_template('seminar_management.html', form=form,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/views.py", line 129, in render_template
return cls(g.rh, *wp_args, **context).display()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/web/views.py", line 269, in display
injected_bundles = values_from_signal(signals.plugin.inject_bundle.send(self.__class__), as_list=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/blinker/base.py", line 279, in send
result = receiver(sender, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/flask_pluginengine/util.py", line 190, in wrapped
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/core/plugins/__init__.py", line 203, in _func
return _do_inject(sender)
^^^^^^^^^^^^^^^^^^
File "/opt/indico/.venv/lib/python3.12/site-packages/indico/core/plugins/__init__.py", line 194, in _do_inject
raise RuntimeError(f'Assets for plugin {self.name} have not been built')
I ran had ran the build assets script:
./bin/maintenance/build-assets.py plugin ~/dev/indico/custom/plugins/pi_customization --dev --watch