corpnewt / USBMap

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

UnboundLocalError in USBMap.py #48

Open KenDxD opened 10 months ago

KenDxD commented 10 months 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