feross / SpoofMAC

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

os.geteuid() does not exist on Windows #28

Closed kevinji closed 9 years ago

kevinji commented 10 years ago

spoof-mac relies on a call to os.geteuid(), which prevents the command-line script from working on Windows, returning a 'module' object has no attribute 'geteuid' error. Is there an alternative for Windows?

kevinji commented 10 years ago

Possibly relevant: celery/celery#1676

feross commented 10 years ago

@mc10 Looking through the commit history, it looks like this commit is the fix: https://github.com/celery/celery/commit/4ce322d13879949186744c5f8e804df5741379ae

I don't have a Windows machine to test, but if you send a PR, I'll merge it.

feross commented 9 years ago

Likely fixed in #30, so closing for now.

pteek commented 9 years ago

Confirming that this is fixed in https://github.com/feross/SpoofMAC/pull/30.