canonical / charm-lldpd

LLDPd charm
Other
1 stars 8 forks source link

hook failed: "install" with error ModuleNotFoundError: No module named 'charmhelpers' #7

Closed phausman closed 3 years ago

phausman commented 3 years ago

lldpd charm revision 8 fails to install with the following logs in juju debug-log.

unit-lldpd-0: 10:12:58 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-lldpd-0: 10:13:14 WARNING unit.lldpd/0.install Traceback (most recent call last):
unit-lldpd-0: 10:13:14 WARNING unit.lldpd/0.install   File "/var/lib/juju/agents/unit-lldpd-0/charm/hooks/install", line 26, in <module>
unit-lldpd-0: 10:13:14 WARNING unit.lldpd/0.install     from charmhelpers import fetch  # noqa: E402
unit-lldpd-0: 10:13:14 WARNING unit.lldpd/0.install ModuleNotFoundError: No module named 'charmhelpers'
unit-lldpd-0: 10:13:14 ERROR juju.worker.uniter.operation hook "install" (via explicit, bespoke hook script) failed: exit status 1
unit-lldpd-0: 10:13:14 INFO juju.worker.uniter awaiting error resolution for "install" hook
ivoks commented 3 years ago

Thanks

I think I know what the problem is.

ivoks commented 3 years ago

Please try with revision 9.

Regards

phausman commented 3 years ago

Thank you @ivoks! Revision 9 of the charm fixes the issue.

ivoks commented 3 years ago

Thanks!