feross / SpoofMAC

:briefcase: Change your MAC address for debugging
https://feross.org/spoofmac/
3.03k stars 269 forks source link

AttributeError on randomize attempt #16

Closed yariza closed 11 years ago

yariza commented 11 years ago

I'm getting this error when I try to randomize my Wi-fi MAC address:

ya$ sudo spoof-mac randomize Wi-fi
Traceback (most recent call last):
  File "/usr/local/bin/spoof-mac", line 5, in <module>
    pkg_resources.run_script('SpoofMAC==1.2.1', 'spoof-mac')
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1214, in run_script
    exec script_code in namespace, namespace
  File "/Library/Python/2.6/site-packages/SpoofMAC-1.2.1-py2.6.egg/EGG-INFO/scripts/spoof-mac", line 123, in <module>

  File "/Library/Python/2.6/site-packages/SpoofMAC-1.2.1-py2.6.egg/EGG-INFO/scripts/spoof-mac", line 78, in main

  File "build/bdist.macosx-10.7-intel/egg/spoofmac/interface.py", line 425, in find_interface
  File "build/bdist.macosx-10.7-intel/egg/spoofmac/interface.py", line 324, in find_interface
  File "build/bdist.macosx-10.7-intel/egg/spoofmac/interface.py", line 291, in find_interfaces
AttributeError: 'module' object has no attribute 'check_output'
TkTech commented 11 years ago

Not really a bug. check_output was added in python 2.7, which was released 3 years ago. Update!

raichiss commented 10 years ago

I know this was closed, but I'm still confused. I'm still getting an 'AttributeError' when I try to do anything besides [--help]. I installed Python 3.3, but it seems like SpoofMAC's scripts are either referring to Python 2.6, or I've installed SpoofMAC to the Python 2.6 folder. When I run terminal and type 'python', it always comes back as '2.6.1', and I'm not sure how to change that. Thank you!

feross commented 10 years ago

This answer on Stackoverflow has some suggestions to change your Python version: http://stackoverflow.com/questions/5705627/how-to-choose-python-version-run-when-typing-only-python-at-prompt