[generateDS] too many values to unpack
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Undecided
|
Michał Kostrzewa |
Bug Description
Trying to use generateDS to generate golang API results in the following traceback:
root@dpdk-
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
WARNING:
<type 'exceptions.
Python 2.7.12: /usr/bin/python
Fri Feb 17 12:32:11 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/root/
5693 cgitb.enable(
5694 logging.
5695 main()
5696
5697
main = <function main>
/root/
5682 #LG LangGenr = CppGenerator()
5683
5684 pgenr.parseAndG
5685 #LG parseAndGenerat
5686 #LG xschemaFileName, behaviorFilename,
pgenr = <__main_
pgenr.parseAndG
/root/
1137 #debug_
1138 infile.seek(0)
1139 self._Generator
1140
1141 #LG #
self = <__main_
self._Generator = <ccmap.
self._Generator
root = <XschemaElement name: "" type: "xsd:string">
infile = <StringIO.StringIO instance>
self.outFilename = '/root/output'
/root/
199 self._GenerateD
200 elif self._genCategory == 'golang-api':
201 self._GenerateG
202 elif self._genCategory == 'json-schema':
203 self._GenerateJ
self = <ccmap.
self._GenerateG
root = <XschemaElement name: "" type: "xsd:string">
/root/
172 apigen = GoLangApiGenera
173 self._Identifiers, self._Metadata)
174 apigen.
175
176 def _GenerateJsonSc
apigen = <golang_
apigen.Generate = <bound method GoLangApiGenera
self = <ccmap.
self._Parser = <__main_
self._Parser.
/root/
822 filename = os.path.join(
823 dirname, ident.getCIdent
824 self._GenerateO
825
826 self._PromoteIn
self = <golang_
self._GenerateO
ident = <ifmap_
filename = u'/root/
/root/
70 self._GenerateC
71 self._GenerateO
72 self._GenerateG
73 self._GenerateP
74 self._GenerateC
self = <golang_
self._GenerateG
ident = <ifmap_
file = <open file u'/root/
/root/
284 parents = ident.getParents()
285 if parents:
286 (parent, meta) = parents[0]
287 quoted_list = map(lambda x: '"%s"' % x, parent.
288 parent_fqn = ', '.join(quoted_list)
parent undefined
meta undefined
parents = [(<ifmap_
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Inappropriate argument value (of correct type).'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ('too many values to unpack',)
message = 'too many values to unpack'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "./generateDS.py", line 5695, in <module>
main()
File "./generateDS.py", line 5684, in main
pgenr.
File "./generateDS.py", line 1139, in parseAndGenerate
self.
File "/root/
self.
File "/root/
apigen.
File "/root/
self.
File "/root/
self.
File "/root/
(parent, meta) = parents[0]
ValueError: too many values to unpack
Git commits:
contrail-generateDS 08bfd5e685f04ed
contrail-controller d8917495817dea4
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
assignee: | nobody → Michał Kostrzewa (mkostrzewa) |
tags: | added: contrail-control |
Review in progress for https:/ /review. opencontrail. org/28890
Submitter: Micha? Kostrzewa (<email address hidden>)