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

Valid MAC cannot be determined #124

Open
Horathmael opened this issue Nov 21, 2017 · 8 comments
Open

Valid MAC cannot be determined #124

Horathmael opened this issue Nov 21, 2017 · 8 comments

Comments

@Horathmael
Copy link

This occurs when I try to sign in with my google account
"Error handling request
Traceback (most recent call last):
File "site-packages\aiohttp\server.py", line 265, in start
File "site-packages\aiohttp\web.py", line 96, in handle_request
File "pyportify\middlewares.py", line 18, in index_handler
File "pyportify\app.py", line 51, in google_login
File "asyncio\coroutines.py", line 206, in coro
File "pyportify\google.py", line 27, in login
File "pyportify\google.py", line 207, in _get_android_id
OSError: a valid MAC could not be determined. Provide an android_id (and be sure to provide the same one on future runs)."

@rckclmbr
Copy link
Owner

This is really weird -- pythons uuid.getnode can't find a valid mac address from a network interface card. Are you running this in a VM or something? Can you give me a little more detail on what OS/install you are running this on? Also, did you download the executable?

@Horathmael
Copy link
Author

I have downloaded the executable, and I am running it on Windows 10 Home, version 1703, OS Build 15063.726,

@damonreece
Copy link

Also getting this in 0.4.0:

Traceback (most recent call last):
File "site-packages\aiohttp\web_protocol.py", line 416, in start
File "site-packages\aiohttp\web.py", line 323, in _handle
File "pyportify\middlewares.py", line 14, in index_handler
File "pyportify\app.py", line 49, in google_login
File "pyportify\google.py", line 25, in login
File "pyportify\google.py", line 175, in _get_android_id
OSError: a valid MAC could not be determined. Provide an android_id (and be sure to provide the same one on future runs).

Windows 10 Home 1709 OS build 16299.125.

@sizarkamar
Copy link

I have the same problem, I'm running 0.4.1 on Windows 10
Is there any solution for it?

@H3av3N-UK
Copy link

H3av3N-UK commented Jul 29, 2018

Really weird, this was working for me yesterday no problems at all ( had to use the standard .exe though, and complete via the web browser as copy-all would fail )

Trying it again today, and receiving the same error as the others reporting above.

Running Windows 10 Pro 64-bit
Version 1803
Build 17134.191

@minimino
Copy link

minimino commented Sep 9, 2018

Okay so an update on this. It seems that google.py is causing the issue here. Removing these lines (173-176) made it work perfectly:

if (mac_int >> 40) % 2: raise OSError("a valid MAC could not be determined." " Provide an android_id (and be" " sure to provide the same one on future runs).")

Maybe we should find another way to verify it is a valid MAC address.

@ColdSphinX
Copy link

same here version 0.4.1

@silicondosa
Copy link

Okay so an update on this. It seems that google.py is causing the issue here. Removing these lines (173-176) made it work perfectly:

if (mac_int >> 40) % 2: raise OSError("a valid MAC could not be determined." " Provide an android_id (and be" " sure to provide the same one on future runs).")

Maybe we should find another way to verify it is a valid MAC address.

I had the same issue on Linux, with pyportify installed from pip. This fix did solve the problem, but we should probably find a more permanent solution to this issue...

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

8 participants