Open anubisg1 opened 5 years ago
full logs if needed
(v) anubisg1@linux-m8h8:~/Desktop/yang-explorer/server> python manage.py bulkupload --user guest --dir /home/anubisg1/Desktop/yang/vendor/cisco/nx/9.2-2 Local upload .. Compiling : user: guest, file: /home/anubisg1/Desktop/yang-explorer/server/data/session/tmp9yDhSU/cisco-nx-openconfig-acl-deviations.yang DEBUG:root:Compiling session dependency ... /home/anubisg1/Desktop/yang-explorer/v/bin/pyang DEBUG:root:Rebuilding dependencies for user guest DEBUG:root:invoke_compile: CMD: ['pyang', '-f', 'pyimport', '--plugindir', 'explorer/plugins', '-p', 'data/users/guest/yang:data/session/tmp9yDhSU', 'data/users/guest/yang/iana-if-type@2014-01-15.yang', 'data/users/guest/yang/ietf-inet-types.yang', 'data/users/guest/yang/ietf-interfaces@2013-12-23.yang', 'data/users/guest/yang/ietf-netconf-monitoring@2010-10-04.yang', 'data/users/guest/yang/ietf-yang-types.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-acl-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-bgp-policy-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-if-aggregate-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-if-ethernet-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-if-ip-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-if-ip-ext-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-interfaces-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-network-instance-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-ospf-policy-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-platform-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-platform-linecard-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-platform-port-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-platform-transceiver-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-relay-agent-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-routing-policy-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-spanning-tree-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-system-deviations.yang', 'data/session/tmp9yDhSU/cisco-nx-openconfig-vlan-deviations.yang', 'data/session/tmp9yDhSU/Cisco-NX-OS-device.yang', 'data/session/tmp9yDhSU/iana-if-type.yang', 'data/session/tmp9yDhSU/ietf-inet-types.yang', 'data/session/tmp9yDhSU/ietf-interfaces.yang', 'data/session/tmp9yDhSU/ietf-yang-types.yang', 'data/session/tmp9yDhSU/openconfig-aaa-radius.yang', 'data/session/tmp9yDhSU/openconfig-aaa-tacacs.yang', 'data/session/tmp9yDhSU/openconfig-aaa-types.yang', 'data/session/tmp9yDhSU/openconfig-aaa.yang', 'data/session/tmp9yDhSU/openconfig-acl.yang', 'data/session/tmp9yDhSU/openconfig-aft-common.yang', 'data/session/tmp9yDhSU/openconfig-aft-ethernet.yang', 'data/session/tmp9yDhSU/openconfig-aft-ipv4.yang', 'data/session/tmp9yDhSU/openconfig-aft-ipv6.yang', 'data/session/tmp9yDhSU/openconfig-aft-mpls.yang', 'data/session/tmp9yDhSU/openconfig-aft-pf.yang', 'data/session/tmp9yDhSU/openconfig-aft-types.yang', 'data/session/tmp9yDhSU/openconfig-aft.yang', 'data/session/tmp9yDhSU/openconfig-alarm-types.yang', 'data/session/tmp9yDhSU/openconfig-bgp-common-multiprotocol.yang', 'data/session/tmp9yDhSU/openconfig-bgp-common-structure.yang', 'data/session/tmp9yDhSU/openconfig-bgp-common.yang', 'data/session/tmp9yDhSU/openconfig-bgp-errors.yang', 'data/session/tmp9yDhSU/openconfig-bgp-global.yang', 'data/session/tmp9yDhSU/openconfig-bgp-neighbor.yang', 'data/session/tmp9yDhSU/openconfig-bgp-peer-group.yang', 'data/session/tmp9yDhSU/openconfig-bgp-policy.yang', 'data/session/tmp9yDhSU/openconfig-bgp-types.yang', 'data/session/tmp9yDhSU/openconfig-bgp.yang', 'data/session/tmp9yDhSU/openconfig-extensions.yang', 'data/session/tmp9yDhSU/openconfig-if-aggregate.yang', 'data/session/tmp9yDhSU/openconfig-if-ethernet.yang', 'data/session/tmp9yDhSU/openconfig-if-ip-ext.yang', 'data/session/tmp9yDhSU/openconfig-if-ip.yang', 'data/session/tmp9yDhSU/openconfig-inet-types.yang', 'data/session/tmp9yDhSU/openconfig-interfaces.yang', 'data/session/tmp9yDhSU/openconfig-isis-lsdb-types.yang', 'data/session/tmp9yDhSU/openconfig-isis-lsp.yang', 'data/session/tmp9yDhSU/openconfig-isis-routing.yang', 'data/session/tmp9yDhSU/openconfig-isis-types.yang', 'data/session/tmp9yDhSU/openconfig-isis.yang', 'data/session/tmp9yDhSU/openconfig-local-routing.yang', 'data/session/tmp9yDhSU/openconfig-mpls-igp.yang', 'data/session/tmp9yDhSU/openconfig-mpls-ldp.yang', 'data/session/tmp9yDhSU/openconfig-mpls-rsvp.yang', 'data/session/tmp9yDhSU/openconfig-mpls-sr.yang', 'data/session/tmp9yDhSU/openconfig-mpls-static.yang', 'data/session/tmp9yDhSU/openconfig-mpls-te.yang', 'data/session/tmp9yDhSU/openconfig-mpls-types.yang', 'data/session/tmp9yDhSU/openconfig-mpls.yang', 'data/session/tmp9yDhSU/openconfig-network-instance-l2.yang', 'data/session/tmp9yDhSU/openconfig-network-instance-l3.yang', 'data/session/tmp9yDhSU/openconfig-network-instance-policy.yang', 'data/session/tmp9yDhSU/openconfig-network-instance-types.yang', 'data/session/tmp9yDhSU/openconfig-network-instance.yang', 'data/session/tmp9yDhSU/openconfig-ospf-policy.yang', 'data/session/tmp9yDhSU/openconfig-ospf-types.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2-area-interface.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2-area.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2-common.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2-global.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2-lsdb.yang', 'data/session/tmp9yDhSU/openconfig-ospfv2.yang', 'data/session/tmp9yDhSU/openconfig-packet-match-types.yang', 'data/session/tmp9yDhSU/openconfig-packet-match.yang', 'data/session/tmp9yDhSU/openconfig-pf-forwarding-policies.yang', 'data/session/tmp9yDhSU/openconfig-pf-interfaces.yang', 'data/session/tmp9yDhSU/openconfig-pf-path-groups.yang', 'data/session/tmp9yDhSU/openconfig-platform-linecard.yang', 'data/session/tmp9yDhSU/openconfig-platform-port.yang', 'data/session/tmp9yDhSU/openconfig-platform-transceiver.yang', 'data/session/tmp9yDhSU/openconfig-platform-types.yang', 'data/session/tmp9yDhSU/openconfig-platform.yang', 'data/session/tmp9yDhSU/openconfig-policy-forwarding.yang', 'data/session/tmp9yDhSU/openconfig-policy-types.yang', 'data/session/tmp9yDhSU/openconfig-procmon.yang', 'data/session/tmp9yDhSU/openconfig-relay-agent.yang', 'data/session/tmp9yDhSU/openconfig-routing-policy.yang', 'data/session/tmp9yDhSU/openconfig-segment-routing.yang', 'data/session/tmp9yDhSU/openconfig-spanning-tree-types.yang', 'data/session/tmp9yDhSU/openconfig-spanning-tree.yang', 'data/session/tmp9yDhSU/openconfig-system-logging.yang', 'data/session/tmp9yDhSU/openconfig-system-terminal.yang', 'data/session/tmp9yDhSU/openconfig-system.yang', 'data/session/tmp9yDhSU/openconfig-transport-types.yang', 'data/session/tmp9yDhSU/openconfig-types.yang', 'data/session/tmp9yDhSU/openconfig-vlan-types.yang', 'data/session/tmp9yDhSU/openconfig-vlan.yang', 'data/session/tmp9yDhSU/openconfig-yang-types.yang'] ERROR:root:invoke_compile: Compile Errors: ['Traceback (most recent call last):', ' File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 420, in <module>', ' run()', ' File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 290, in run', ' expect_failure_error=False)', ' File "/home/anubisg1/Desktop/yang-explorer/v/lib/python2.7/site-packages/pyang/__init__.py", line 100, in add_module', ' module.i_adler32 = zlib.adler32(text)', "UnicodeEncodeError: 'ascii' codec can't encode character u'\\xa7' in position 4159: ordinal not in range(128)", ''] Compilation Failed: <messages><message>Traceback (most recent call last):</message><message> File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 420, in <module></message><message> run()</message><message> File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 290, in run</message><message> expect_failure_error=False)</message><message> File "/home/anubisg1/Desktop/yang-explorer/v/lib/python2.7/site-packages/pyang/__init__.py", line 100, in add_module</message><message> module.i_adler32 = zlib.adler32(text)</message><message>UnicodeEncodeError: 'ascii' codec can't encode character u'\xa7' in position 4159: ordinal not in range(128)</message><message></message></messages> Cleaning up /home/anubisg1/Desktop/yang-explorer/server/data/session/tmp9yDhSU
If it helps, when using a more up to date pyang (version 1.7.8) the error change completely, it looks a bit better to be honest
ERROR:root:invoke_compile: Compile Errors: ['data/session/tmpfrj1sQ/Cisco-NX-OS-device.yang:103723: warning: the escape sequence "\\', '" is unsafe in double quoted strings - pass the flag --lax-quote-checks to avoid this warning', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-if-ip-deviations.yang:79: error: trailing garbage after module', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:9: warning: imported module openconfig-interfaces not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:10: warning: imported module openconfig-routing-policy not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:11: warning: imported module openconfig-ospfv2 not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:12: warning: imported module openconfig-bgp not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:13: warning: imported module openconfig-local-routing not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-deviations.yang:9: warning: imported module openconfig-platform-types not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-deviations.yang:10: warning: imported module openconfig-types not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-linecard-deviations.yang:8: warning: imported module openconfig-platform-linecard not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-transceiver-deviations.yang:9: warning: imported module openconfig-types not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-transceiver-deviations.yang:11: warning: imported module openconfig-interfaces not used', 'data/session/tmpfrj1sQ/cisco-nx-openconfig-relay-agent-deviations.yang:9: warning: imported module openconfig-interfaces not used', 'data/session/tmpfrj1sQ/openconfig-platform-transceiver.yang:485: error: openconfig-platform-port:hardware-port in the path for physical-channel at data/session/tmpfrj1sQ/openconfig-platform-transceiver.yang:479 is not found', '']
Compilation Failed: <messages><message>data/session/tmpfrj1sQ/Cisco-NX-OS-device.yang:103723: warning: the escape sequence "\</message><message>" is unsafe in double quoted strings - pass the flag --lax-quote-checks to avoid this warning</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-if-ip-deviations.yang:79: error: trailing garbage after module</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:9: warning: imported module openconfig-interfaces not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:10: warning: imported module openconfig-routing-policy not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:11: warning: imported module openconfig-ospfv2 not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:12: warning: imported module openconfig-bgp not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-network-instance-deviations.yang:13: warning: imported module openconfig-local-routing not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-deviations.yang:9: warning: imported module openconfig-platform-types not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-deviations.yang:10: warning: imported module openconfig-types not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-linecard-deviations.yang:8: warning: imported module openconfig-platform-linecard not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-transceiver-deviations.yang:9: warning: imported module openconfig-types not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-platform-transceiver-deviations.yang:11: warning: imported module openconfig-interfaces not used</message><message>data/session/tmpfrj1sQ/cisco-nx-openconfig-relay-agent-deviations.yang:9: warning: imported module openconfig-interfaces not used</message><message>data/session/tmpfrj1sQ/openconfig-platform-transceiver.yang:485: error: openconfig-platform-port:hardware-port in the path for physical-channel at data/session/tmpfrj1sQ/openconfig-platform-transceiver.yang:479 is not found</message><message></message></messages>
Cleaning up /home/anubisg1/yang-explorer/server/data/session/tmpfrj1sQ
when adding cisco yang models, i obtain the following:
ERROR:root:invoke_compile: Compile Errors: ['Traceback (most recent call last):', ' File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 420, in', ' run()', ' File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 290, in run', ' expect_failure_error=False)', ' File "/home/anubisg1/Desktop/yang-explorer/v/lib/python2.7/site-packages/pyang/init.py", line 100, in add_module', ' module.i_adler32 = zlib.adler32(text)', "UnicodeEncodeError: 'ascii' codec can't encode character u'\xa7' in position 4159: ordinal not in range(128)", '']
Compilation Failed: Traceback (most recent call last): File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 420, in <module> run() File "/home/anubisg1/Desktop/yang-explorer/v/bin/pyang", line 290, in run expect_failure_error=False) File "/home/anubisg1/Desktop/yang-explorer/v/lib/python2.7/site-packages/pyang/init.py", line 100, in add_module module.i_adler32 = zlib.adler32(text) UnicodeEncodeError: 'ascii' codec can't encode character u'\xa7' in position 4159: ordinal not in range(128)
Cleaning up /home/anubisg1/Desktop/yang-explorer/server/data/session/tmp9yDhSU