lopes / netbox-scanner

A scanner util for NetBox
MIT License
159 stars 40 forks source link

Getting Traceback #1

Closed jmiahman closed 5 years ago

jmiahman commented 5 years ago
Traceback (most recent call last):
  File "netbox-scanner/nbscanner", line 13, in <module>
    from nbscanner import NetBoxScanner
  File "/home/jsummers/netbox-scanner/netbox-scanner/nbscanner.py", line 195
    parsing = self.parser([f'{h[0]}/32' for h in hosts])
lopes commented 5 years ago

Probably you're using a Python version under 3.6. Upgrade Python to 3.6+ or change that line to:

parsing = self.parser(['{}/32'.format(h[0]) for h in hosts])

Regards, Lopes

On Wed, Nov 7, 2018, 18:45 Jeremiah Summers <notifications@github.com wrote:

Traceback (most recent call last): File "netbox-scanner/nbscanner", line 13, in from nbscanner import NetBoxScanner File "/home/jsummers/netbox-scanner/netbox-scanner/nbscanner.py", line 195 parsing = self.parser([f'{h[0]}/32' for h in hosts])

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/forkd/netbox-scanner/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ACw0-KNZOXR5F5E2O8B_Fi7m4MGaCFXEks5us0ZLgaJpZM4YTM-a .

jmiahman commented 5 years ago

Thank you!