"create -t python " does not install lib/charmhelpers

Bug #1395560 reported by Mike McCracken
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Juju Charm Tools
Triaged
High
Unassigned

Bug Description

% charm create -t python -v testcharfasdf
INFO generator.py: Generating charm for testcharfasdf in ./testcharfasdf
INFO utils.py: No testcharfasdf in apt cache; creating an empty charm instead.

% echo $?
0

% ls testcharfasdf
config.yaml icon.svg README.example tests/
hooks/ metadata.yaml templates/ unit_tests/

# what I expected:
$ tree mycharm/
mycharm/
├── charm-helpers.yaml
├── config.yaml
├── hooks
│ ├── config-changed -> hooks.py
│ ├── hooks.py
│ ├── install -> hooks.py
│ ├── start -> hooks.py
│ ├── stop -> hooks.py
│ └── upgrade-charm -> hooks.py
├── icon.svg
├── lib
│ └── charmhelpers
│ ├── core
│ │ ├── fstab.py
│ │ ├── hookenv.py
│ │ ├── host.py
│ │ └── __init__.py
│ └── __init__.py
├── metadata.yaml
├── README.ex
├── revision
├── scripts
│ └── charm_helpers_sync.py
└── tests
    ├── 00-setup
    └── 10-deploy

as per this page: https://pythonhosted.org/charmhelpers/getting-started.html

Mike McCracken (mikemc)
description: updated
Revision history for this message
Adalberto Medeiros (adalbas) wrote :

I had the same problem.

I tried
charm create -t python-basic mycharm
and it seems to be working, it created the lib/ , scripts/ directory and the charm-helpers.yaml. But it didnt create the hooks.py file.

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

This is because the python template changed recently to be the services framework. This is an issue though and we'll be working to rectify this in the upcoming release

Changed in charm-tools:
milestone: none → 1.6.0
importance: Undecided → High
status: New → Triaged
Revision history for this message
Andres (andresalvarez353) wrote :

Hello.

I am experiencing the same problem. Any insight on how to solve this or the direction this issue has gone to?

Cheers.

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.