# Plugin Error when transferring to newly installed Indico

**URL:** <https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142>\
**Category:** Development\
**Created:** [March 1, 2021, 9:53am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142 "2021-03-01T09:53:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![krasytod](https://talk.getindico.io/user_avatar/talk.getindico.io/krasytod/32/666_2.png) [@krasytod](https://talk.getindico.io/u/krasytod)\
**Post date:** [March 1, 2021, 9:53am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/1 "2021-03-01T09:53:19Z")

</div>

The plugin(not installed by me) worked fine with the older installation(ver 2.2) of Indico.

I installed the latest 2.3 to different path and tried to install the plugin my self.

1. Installed the plugin as module to the python virtual env I am using

> indico-plugin-invoices @ file:///home/user/dev/indico\_2.3/plugins/invoices (from pip freeze)

1. Tried building assets with:  
python bin/maintenance/build-assets.py plugin --dev …/plugins/invoices/  
which gives error:  
`subprocess.CalledProcessError: Command '['python', 'bin/maintenance/dump_url_map.py', '--output', '/home/user/dev/indico_2.3/plugins/invoices/url_map.json', '--plugin', 'invoices']' returned non-zero exit status 1`

When I run  
“python bin/maintenance/dump\_url\_map.py --plugin invoices” the exception is

> File “bin/maintenance/dump\_url\_map.py”, line 33, in get\_rules  
> ‘PLUGINS’: plugins})  
> File “/home/user/dev/indico\_2.3/src/indico/web/flask/app.py”, line 379, in make\_app  
> raise Exception(‘Could not load some plugins: {}’.format(', '.join(plugin\_engine.get\_failed\_plugins(app))))  
> Exception: Could not load some plugins: invoices

In plugin setup.py file entry point is defined as:  
entry\_points={‘indico.plugins’: {‘invoices = indico\_invoices.plugin:InvoiceManagementPlugin’}}

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [March 1, 2021, 10:01am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/2 "2021-03-01T10:01:58Z")

</div>

check `indico.log` for the actual error why loading the plugin failed.

my guess would be that it needs to be updated to work on 2.3…

---

<div class="post-metadata">

**Author:** ![krasytod](https://talk.getindico.io/user_avatar/talk.getindico.io/krasytod/32/666_2.png) [@krasytod](https://talk.getindico.io/u/krasytod)\
**Post date:** [March 1, 2021, 10:18am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/3 "2021-03-01T10:18:01Z")

</div>

Nothing in data/logs/indico.log

I will try to create a blank new plugin based on the tutorial and the existing plugins.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [March 1, 2021, 10:20am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/4 "2021-03-01T10:20:22Z")

</div>

Is the plugin actually installed? `indico setup list-plugins` to see the available plugins.

If yes, and enabled in indico.conf, see if `indico shell` fails as well when you try to run it.

---

<div class="post-metadata">

**Author:** ![krasytod](https://talk.getindico.io/user_avatar/talk.getindico.io/krasytod/32/666_2.png) [@krasytod](https://talk.getindico.io/u/krasytod)\
**Post date:** [March 1, 2021, 10:47am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/5 "2021-03-01T10:47:47Z")

</div>

Thank you.  
" `indico setup list-plugins`" gave me the actual error in plugin source that was the problem.

After fixing it now the same command is working, also building assets finished successfully.

Now I am getting the following error when I try to access the home page:

“OSError: [Errno 2] No such file or directory: ‘/home/user/dev/indico\_2.3/env/local/lib/python2.7/site-packages/indico\_invoices/static/dist/manifest.json’”

I am running both “./bin/maintenance/build-assets.py indico --dev --watch” / ./bin/maintenance/build-assets.py plugin …/plugins/invoices/ --dev --watch  
on separate terminals.

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [March 1, 2021, 10:51am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/6 "2021-03-01T10:51:55Z")

</div>

Restart the assets builder for the plugin. It’s probably still broken from the earlier error, and unless files in there change it won’t rebuild anything.

---

<div class="post-metadata">

**Author:** ![krasytod](https://talk.getindico.io/user_avatar/talk.getindico.io/krasytod/32/666_2.png) [@krasytod](https://talk.getindico.io/u/krasytod)\
**Post date:** [March 1, 2021, 11:07am UTC](https://talk.getindico.io/t/plugin-error-when-transferring-to-newly-installed-indico/2142/7 "2021-03-01T11:07:42Z")

</div>

Works fine now. Thank you.
