You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\User\Downloads\iker> python .\iker.py
Traceback (most recent call last):
File "C:\Users\User\Downloads\iker\iker.py", line 35, in
from os import geteuid
ImportError: cannot import name 'geteuid' from 'os' (C:\Program Files\Python\lib\os.py)
Problem code:
from os import geteuid
...
def checkPrivileges():
'''This method checks if the script was launched with root privileges.
@return True if it was launched with root privs and False in other case.'''
return geteuid() == 0
Occurred because geteuid only works on UNIX systems.
The text was updated successfully, but these errors were encountered:
PS C:\Users\User\Downloads\iker> python .\iker.py
Traceback (most recent call last):
File "C:\Users\User\Downloads\iker\iker.py", line 35, in
from os import geteuid
ImportError: cannot import name 'geteuid' from 'os' (C:\Program Files\Python\lib\os.py)
Problem code:
Occurred because geteuid only works on UNIX systems.
The text was updated successfully, but these errors were encountered: