Mar-27-2020, 03:12 PM
(This post was last modified: Mar-27-2020, 03:12 PM by deanhystad.)
You are getting a key error saying the key "186024" was not found. MacLookup() must create a dictionary and MacLookup().lookup() was unable to find the provided mac address. I peeked at the project description and it doesn't say how it handles not finding the provided mac address. Maybe it throws an exception.
In an interactive python console what do you get when you type:
import 'mac_vendor_lookup'
help('mac_vendor_lookup')
Anther user reported the same error as you when running on windows:
https://github.com/bauerj/mac_vendor_lookup/issues/3
Sounds like MacLookup() creates some kind of database (in an 806KB file) and building the database can be interrupted by doing the lookup(). What happens if you do this:
db = MacLookup()
time.sleep(1)
print(db.lookup(a))
In an interactive python console what do you get when you type:
import 'mac_vendor_lookup'
help('mac_vendor_lookup')
Anther user reported the same error as you when running on windows:
https://github.com/bauerj/mac_vendor_lookup/issues/3
Sounds like MacLookup() creates some kind of database (in an 806KB file) and building the database can be interrupted by doing the lookup(). What happens if you do this:
db = MacLookup()
time.sleep(1)
print(db.lookup(a))