networkop / docker-topo

Docker topology builder for network simulations
BSD 3-Clause "New" or "Revised" License
139 stars 41 forks source link

found unexpected end of stream #38

Closed skanagal closed 4 years ago

skanagal commented 4 years ago

I get an error that says "found unexpected end of stream" when it reads through the YAML. It could be a problem with my setup but it worked before with the same YAML file but different cEOS image.

Any ideas? Did anything change? Thanks!

sureshk$ cat 3-node.yml VERSION: 2 driver: bridge PREFIX: ARISTA CONF_DIR: ./config CEOS_IMAGE: ceosimage:4.23.2F PUBLISH_BASE: 4000

links:

sureshk$ docker-topo --create 3-node.yml Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/docker-topo", line 812, in main() File "/Library/Frameworks/Python.framework/Versions/3.7/bin/docker-topo", line 669, in main t_yml = yaml.load(stream) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/init.py", line 72, in load return loader.get_single_data() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/constructor.py", line 35, in get_single_data node = self.get_single_node() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 36, in get_single_node document = self.compose_document() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 55, in compose_document node = self.compose_node(None, None) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 82, in compose_node node = self.compose_sequence_node(anchor) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 111, in compose_sequence_node node.value.append(self.compose_node(node, index)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 84, in compose_node node = self.compose_mapping_node(anchor) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 133, in compose_mapping_node item_value = self.compose_node(node, item_key) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 82, in compose_node node = self.compose_sequence_node(anchor) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/composer.py", line 110, in compose_sequence_node while not self.check_event(SequenceEndEvent): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/parser.py", line 98, in check_event self.current_event = self.state() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/parser.py", line 486, in parse_flow_sequence_entry if self.check_token(KeyToken): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 116, in check_token self.fetch_more_tokens() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 248, in fetch_more_tokens return self.fetch_double() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 652, in fetch_double self.fetch_flow_scalar(style='"') File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 663, in fetch_flow_scalar self.tokens.append(self.scan_flow_scalar(style)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 1148, in scan_flow_scalar chunks.extend(self.scan_flow_scalar_spaces(double, start_mark)) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/yaml/scanner.py", line 1235, in scan_flow_scalar_spaces "found unexpected end of stream", self.get_mark()) yaml.scanner.ScannerError: while scanning a quoted scalar in "/Users/sureshk/Automation/ceos/3-node.yml", line 11, column 33 found unexpected end of stream in "/Users/sureshk/Automation/ceos/3-node.yml", line 12, column 1 sureshk$

skanagal commented 4 years ago

It was a simple typo in my YAML file. Apologies for the spam.