Ubuntu Pastebin

Paste from cmars at Tue, 1 Mar 2016 17:27:36 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
rm -f -r /home/c/trusty/myapp
JUJU_REPOSITORY=/home/c charm build -l debug
build: Composing into /home/c
build: {
  "INTERFACE_PATH": null, 
  "JUJU_REPOSITORY": "/home/c", 
  "LAYER_PATH": null, 
  "_charm": ".", 
  "_name": "myapp", 
  "config": "<charmtools.build.config.BuildConfig object at 0x7fd3e57389d0>", 
  "deps": "/home/c/deps", 
  "force": false, 
  "hide_metrics": false, 
  "interface_service": "http://interfaces.juju.solutions", 
  "log_level": "DEBUG", 
  "output_dir": "/home/c", 
  "repo": "/home/c/trusty", 
  "series": "trusty", 
  "target_dir": "/home/c/trusty/myapp"
}
build: Processing layer: layer:my-layers/basic
build: Processing layer: layer:my-layers/service-workload
build: Processing layer: layer:my-layers/service-charm-dist
build: Processing layer: myapp
build: Processing interface: mongodb
build: Processing interface: http
build: Processing interface: agent
charmtools.build.tactics: Copying myapp: /home/c/trusty/myapp/Makefile
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/requirements.txt
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/tox.ini
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/copyright
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/reactive/__init__.py
utils: Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/tmpFG6UsT/bin/python3
Also creating executable in /tmp/tmpFG6UsT/bin/python
Installing setuptools, pkg_resources, _markerlib, pip, wheel...done.

utils: process: virtualenv --python python3 /tmp/tmpFG6UsT (0)
utils: Requirement already up-to-date: pip in /tmp/tmpFG6UsT/lib/python3.5/site-packages
Requirement already up-to-date: wheel in /tmp/tmpFG6UsT/lib/python3.5/site-packages

utils: process: /tmp/tmpFG6UsT/bin/pip3 install -U pip wheel (0)
utils: DEPRECATION: pip install --download has been deprecated and will be removed in the future. Pip now has a download command that should be used instead.
Collecting pip<8.0.0,>=7.0.0 (from -r /home/c/my-layers/basic/wheelhouse.txt (line 1))
  Using cached pip-7.1.2.tar.gz
  Saved /tmp/tmp8vWSYq/pip-7.1.2.tar.gz
Collecting charmhelpers<1.0.0,>=0.4.0 (from -r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached charmhelpers-0.6.2.tar.gz
  Saved /tmp/tmp8vWSYq/charmhelpers-0.6.2.tar.gz
Collecting charms.reactive<2.0.0,>=0.1.0 (from -r /home/c/my-layers/basic/wheelhouse.txt (line 3))
  Using cached charms.reactive-0.3.8.tar.gz
  Saved /tmp/tmp8vWSYq/charms.reactive-0.3.8.tar.gz
Collecting netaddr (from charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached netaddr-0.7.18.tar.gz
  Saved /tmp/tmp8vWSYq/netaddr-0.7.18.tar.gz
Collecting PyYAML (from charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached PyYAML-3.11.tar.gz
  Saved /tmp/tmp8vWSYq/PyYAML-3.11.tar.gz
Collecting Tempita (from charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached Tempita-0.5.2.tar.gz
  Saved /tmp/tmp8vWSYq/Tempita-0.5.2.tar.gz
Collecting Jinja2 (from charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached Jinja2-2.8.tar.gz
  Saved /tmp/tmp8vWSYq/Jinja2-2.8.tar.gz
Collecting six (from charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached six-1.10.0.tar.gz
  Saved /tmp/tmp8vWSYq/six-1.10.0.tar.gz
Collecting pyaml (from charms.reactive<2.0.0,>=0.1.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 3))
  Using cached pyaml-15.8.2.tar.gz
  Saved /tmp/tmp8vWSYq/pyaml-15.8.2.tar.gz
Collecting MarkupSafe (from Jinja2->charmhelpers<1.0.0,>=0.4.0->-r /home/c/my-layers/basic/wheelhouse.txt (line 2))
  Using cached MarkupSafe-0.23.tar.gz
  Saved /tmp/tmp8vWSYq/MarkupSafe-0.23.tar.gz
Successfully downloaded pip charmhelpers charms.reactive netaddr PyYAML Tempita Jinja2 six pyaml MarkupSafe

utils: process: /tmp/tmpFG6UsT/bin/pip3 install --no-binary :all: -d /tmp/tmp8vWSYq -r /home/c/my-layers/basic/wheelhouse.txt (0)
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/upgrade-charm
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/hook.template
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/leader-elected
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/leader-settings-changed
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/stop
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/install
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/start
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/update-status
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/hooks/config-changed
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/lib/charms/layer.py
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/lib/charms/bootstrap.py
charmtools.build.tactics: Copying basic: /home/c/trusty/myapp/README.md
charmtools.build.tactics: Copying myapp: /home/c/trusty/myapp/.gitignore
charmtools.build.tactics: Copying service-workload: /home/c/trusty/myapp/reactive/service-workload.py
charmtools.build.tactics: Copying service-workload: /home/c/trusty/myapp/lib/service_workload/agent.py
charmtools.build.tactics: Copying service-workload: /home/c/trusty/myapp/lib/service_workload/__init__.py
charmtools.build.tactics: Copying service-workload: /home/c/trusty/myapp/templates/upstart
charmtools.build.tactics: Copying service-charm-dist: /home/c/trusty/myapp/lib/service_workload/dist.py
charmtools.build.tactics: Copying myapp: /home/c/trusty/myapp/service-workload.yaml
TypeError while trying to write '\n' <type 'str'>
Traceback (most recent call last):
  File "/usr/bin/charm-build", line 9, in <module>
    load_entry_point('charm-tools==1.11.1', 'console_scripts', 'charm-build')()
  File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 563, in main
    build()
  File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 460, in __call__
    self.generate()
  File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 425, in generate
    self.exec_plan(self.plan, self.layers)
  File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 405, in exec_plan
    tactic()
  File "/usr/lib/python2.7/dist-packages/charmtools/build/tactics.py", line 308, in __call__
    self.dump(self.process())
  File "/usr/lib/python2.7/dist-packages/charmtools/build/tactics.py", line 322, in dump
    default_flow_style=False)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/main.py", line 231, in dump
    version=version, tags=tags)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/main.py", line 200, in dump_all
    dumper.represent(data)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/representer.py", line 47, in represent
    self.serialize(node)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/serializer.py", line 73, in serialize
    self.serialize_node(node, None, None)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/serializer.py", line 165, in serialize_node
    self.serialize_node(value, node, key)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/serializer.py", line 165, in serialize_node
    self.serialize_node(value, node, key)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/serializer.py", line 165, in serialize_node
    self.serialize_node(value, node, key)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/serializer.py", line 124, in serialize_node
    style=node.style, comment=node.comment))
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 129, in emit
    self.state()
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 470, in expect_block_mapping_simple_value
    self.expect_node(mapping=True)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 267, in expect_node
    self.expect_scalar()
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 300, in expect_scalar
    self.process_scalar()
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 599, in process_scalar
    self.write_post_comment(self.event)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 1259, in write_post_comment
    self.write_comment(comment)
  File "/usr/lib/python2.7/dist-packages/ruamel/yaml/emitter.py", line 1231, in write_comment
    self.stream.write(' ' * nr_spaces + value)
TypeError: write() argument 1 must be unicode, not str
Makefile:15: recipe for target '/home/c/trusty/myapp/metadata.yaml' failed
make: *** [/home/c/trusty/myapp/metadata.yaml] Error 1
Download as text