Hi David,
You need to include the version :
tosca_definitions_version tosca_simple_profile_for_nfv_1_0_0
HTH
Manas
From: [mailto:]
On Behalf Of David Gabriel
Sent: 31 October 2017 16:05
To:
Subject: [tosca-comment] error when using tosca parser
Dears,
I have started using toscaparser and I got this error message:
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py",
line 101, in __init__
self.topology_template = self._topology_template()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py",
line 120, in _topology_template
None)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py",
line 61, in __init__
self.groups = self._groups()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py",
line 163, in _groups
self.custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/groups.py",
line 29, in __init__
custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/entity_template.py",
line 74, in __init__
if type is not None else None
File "/usr/local/lib/python2.7/dist-packages/toscaparser/elements/grouptype.py",
line 35, in __init__
if self.DESCRIPTION in self.defs:
TypeError: argument of type 'NoneType' is not iterable
Kindly find attached my input file.
I would appreciate any kind of help.
Thanks in advance.
best regards.