corpnewt / USBMap

Python script for mapping USB ports in macOS and creating a custom injector kext.
MIT License
1.06k stars 89 forks source link

UnboundLocalError in USBMap.py #48

Open KenDxD opened 1 year ago

KenDxD commented 1 year ago

I got this error if Im going to run Discover Port on USBMap.Command. I don't have any USBMappingTool kext on my config.


Populated: XHCI: 0 Traceback (most recent call last): File "/Users/ken/Downloads/USBMap-master/USBMap.py", line 1566, in u.main() File "/Users/ken/Downloads/USBMap-master/USBMap.py", line 1553, in main self.discover_ports() File "/Users/ken/Downloads/USBMap-master/USBMap.py", line 919, in discover_ports temp_h = index+1+extras+pad+(1 if last_list else 0) ^^^^^ UnboundLocalError: cannot access local variable 'index' where it is not associated with a value