Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get this to work on python 3.4 windows. #22

Closed
pteek opened this issue Mar 31, 2014 · 5 comments
Closed

I can't get this to work on python 3.4 windows. #22

pteek opened this issue Mar 31, 2014 · 5 comments

Comments

@pteek
Copy link
Collaborator

pteek commented Mar 31, 2014

I 2to3ed the whole folder because I saw some incompatible functions.
I had to rename the script spoof-mac to spoof-mac.py to get a prompt. This was in C:\python34\Scripts

spoof-mac list gives this:

Traceback (most recent call last):
File "C:\Python34\Scripts\spoof-mac.py", line 5, in
pkg_resources.run_script('SpoofMAC==1.2.1', 'spoof-mac')
File "C:\Python34\lib\site-packages\setuptools-3.3-py3.4.egg\pkg_resources.py"
, line 528, in run_script
self.by_key[dist.key] = dist
File "C:\Python34\lib\site-packages\setuptools-3.3-py3.4.egg\pkg_resources.py"
, line 1401, in run_script
def _has(self, path):
File "C:\Python34\lib\site-packages\spoofmac-1.2.1-py3.4.egg\EGG-INFO\scripts
spoof-mac", line 123, in
AttributeError: 'module' object has no attribute 'geteuid'

This is of course a *nix call.

What now?

@feross
Copy link
Owner

feross commented Apr 3, 2014

Is there any way you can just use Python 2?

Unfortunately, I'm no longer very familiar with Python so I'll defer to @TkTech if he has the free cycles to help debug.

@pteek
Copy link
Collaborator Author

pteek commented Apr 3, 2014

I want to import this into a script of mine that is in python 3.4. I will see if I can downgrade.

I hope @TkTech can help. I don't prefer using old versions.

@pteek
Copy link
Collaborator Author

pteek commented Apr 13, 2014

I install python 2.7.6. It installed without any errors.

I still get the same error when I run spoof-mac list

raceback (most recent call last):
File "C:\Python34\Scripts\spoof-mac.py", line 5, in
pkg_resources.run_script('SpoofMAC==1.2.1', 'spoof-mac')
File "C:\Python34\lib\site-packages\setuptools-3.3-py3.4.egg\pkg_resources.py"
, line 528, in run_script
self.by_key[dist.key] = dist
File "C:\Python34\lib\site-packages\setuptools-3.3-py3.4.egg\pkg_resources.py"
, line 1401, in run_script
def _has(self, path):
File "C:\Python34\lib\site-packages\spoofmac-1.2.1-py3.4.egg\EGG-INFO\scripts
spoof-mac", line 123, in
AttributeError: 'module' object has no attribute 'geteuid'

The port to windows in not complete.

@pteek
Copy link
Collaborator Author

pteek commented Apr 13, 2014

Made it work. I can use the command line because of a unported call to os.geteuid().

Directly importing and calling relevant functions work. I also got it to work on 3.3.4. I might fork it and update it for python 3 and windows.

Thanks for the awesome tool!

@feross
Copy link
Owner

feross commented Oct 2, 2014

Fixed in #30

@feross feross closed this as completed Oct 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants