The python charm generator ships with a module error

Bug #1343416 reported by Charles Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charm Tools
Expired
Undecided
Unassigned

Bug Description

When not using a symlinked tree of files against a common hooks.py, the source contains an error.

Traceback (most recent call last):
  File "hooks/config-changed", line 18, in <module>
    from start import start
ImportError: No module named start

since the file is not named start.py python has no concept of how to load this without using some sorcery such as imp.

Suggest to move this logic into a common.py file, and include that in the hooks.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Is this a problem in a template? Could you elaborate?

Changed in charm-tools:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Juju Charm Tools because there has been no activity for 60 days.]

Changed in charm-tools:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.