Python Forum
Encoding and mac-vendor-lookup library
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encoding and mac-vendor-lookup library
#2
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))
Reply


Messages In This Thread
RE: Encoding and mac-vendor-lookup library - by deanhystad - Mar-27-2020, 03:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  2-dataframe, datetime lookup problem Mark17 0 1,289 Jan-27-2022, 01:02 AM
Last Post: Mark17
  Python VLookup? Lookup Table? Nu2Python 3 2,539 Oct-25-2021, 08:47 PM
Last Post: Nu2Python
  Can I replace IF statements with a key lookup ? jehoshua 3 2,630 Mar-05-2021, 10:24 PM
Last Post: jehoshua
  python 3 dns lookup private domain didact 1 2,669 Sep-19-2020, 06:01 PM
Last Post: bowlofred
  Partial key lookup in dictionary GaryNR 1 3,569 Jul-16-2020, 06:55 PM
Last Post: Gribouillis
  Excel Lookup riteshprakash 0 1,845 Sep-11-2019, 12:43 PM
Last Post: riteshprakash
  fast lookup for array markB 3 4,154 May-13-2019, 12:11 AM
Last Post: scidam
  lookup tables Skaperen 4 3,328 Aug-13-2018, 06:43 AM
Last Post: Gribouillis
  Lookup tables parrytoss 0 2,551 Feb-07-2018, 08:45 AM
Last Post: parrytoss
  Reading specific rows (lookup) rumbles 3 3,463 Jan-03-2018, 04:07 PM
Last Post: hshivaraj

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020