TypeError: super object is not an iterator
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python-jujuclient |
Critical
|
Kapil Thangavelu | ||
Bug Description
python-jujuclient r53 built from lp:python-jujuclient.
juju-core 1.21.3-trusty-amd64
deployer 0.4.3+bzr136+
Here is a reproducer:
andreas@nsn7:~/xxx$ cat simple-
mypostgresql:
services:
postgresql:
charm: cs:trusty/
charm: cs:trusty/
relations:
- ["postgresql:
andreas@nsn7:~/xxx$ juju-deployer -Wdv -c simple-
2015-02-26 13:50:29 [DEBUG] deployer.cli: Using runtime GoEnvironment on local
mypostgresql
andreas@nsn7:~/xxx$ juju-deployer -Wdv -c simple-
2015-02-26 13:50:35 [DEBUG] deployer.cli: Using runtime GoEnvironment on local
2015-02-26 13:50:35 [INFO] deployer.cli: Starting deployment of mypostgresql
2015-02-26 13:50:35 [DEBUG] deployer.import: Getting charms...
2015-02-26 13:50:35 [DEBUG] deployer.charm: Cache dir /home/andreas/
2015-02-26 13:50:35 [DEBUG] deployer.charm: Cache dir /home/andreas/
2015-02-26 13:50:36 [DEBUG] deployer.charm: Retrieving store charm cs:trusty/
2015-02-26 13:50:38 [DEBUG] deployer.deploy: Resolving configuration
2015-02-26 13:50:38 [DEBUG] deployer.env: Connecting to environment...
2015-02-26 13:50:38 [DEBUG] deployer.env: Connected to environment
2015-02-26 13:50:38 [INFO] deployer.import: Deploying services...
2015-02-26 13:50:38 [DEBUG] deployer.import: <deployer.
2015-02-26 13:50:39 [INFO] deployer.import: Deploying service postgresql using cs:trusty/
2015-02-26 13:50:46 [INFO] deployer.import: Deploying service postgresql-psql using cs:trusty/
2015-02-26 13:50:57 [DEBUG] deployer.import: Adding units...
2015-02-26 13:50:58 [DEBUG] deployer.import: Service 'postgresql' does not need any more units added.
2015-02-26 13:50:58 [DEBUG] deployer.import: Service 'postgresql-psql' does not need any more units added.
2015-02-26 13:50:58 [DEBUG] deployer.import: Waiting for units before adding relations
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run()
File "/usr/lib/
importer.
File "/usr/lib/
self.
File "/usr/lib/
services=
File "/usr/lib/
services=
File "/usr/lib/
for change_set in self.watch:
File "/usr/lib/
return next(super(
TypeError: super object is not an iterator
| Adam Collard (adam-collard) wrote : | #1 |
| David Britton (davidpbritton) wrote : | #2 |
| Changed in python-jujuclient: | |
| importance: | Undecided → Critical |
| status: | New → Fix Released |
| assignee: | nobody → Kapil Thangavelu (hazmat) |

Tested patch, confirmed fixed on on py2.7 deployer, also tested with python 3 like this:
>>> import jujuclient Environment. connect( "my-juju- env-name" ).watch( timeout= 10).next( )
>>> jujuclient.
[BIG DATA STRUCTURE HERE]