django-radius icon indicating copy to clipboard operation
django-radius copied to clipboard

Work on Windows

Open jamannmtgov opened this issue 4 years ago • 2 comments

Is there a work around for this package to work on Windows servers? Keep getting the poll error

jamannmtgov avatar Apr 19 '20 23:04 jamannmtgov

I am also getting same error and please can help?

Error Message

Traceback (most recent call last): File "C:\Python38-32\lib\site-packages\django\core\handlers\exception.py", line 34, in inner response = get_response(request) File "C:\Python38-32\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "C:\Python38-32\lib\site-packages\django\core\handlers\base.py", line 113, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "D:\webframWork\junosspacepolicy\views.py", line 49, in homepage user = authenticate(request, username=username, password=password) File "C:\Python38-32\lib\site-packages\django\contrib\auth_init.py", line72, in authenticate user = backend.authenticate(request, **credentials) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 209, in authenticate result = self._radius_auth(server, username, password) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 170, in _radius_auth client = self._get_client(server) File "C:\Python38-32\lib\site-packages\radiusauth\backends\radius.py", line 94, in _get_client return Client( File "C:\Python38-32\lib\site-packages\pyrad\client.py", line 56, in init self._poll = select.poll() AttributeError: module 'select' has no attribute 'poll' [2020-06-10 23:38:51] ERROR "POST /apiportal/homepage/ HTTP/1.1" 500 91793

Configuration on settings.py

AUTHENTICATION_BACKENDS = ( 'radiusauth.backends.RADIUSBackend', 'django.contrib.auth.backends.ModelBackend',
)

RADIUS_SERVER = '10.1.1.1' RADIUS_PORT = 1812 RADIUS_SECRET = 'abcd123'

Thanks in advance..!

srikanth056 avatar Jun 10 '20 21:06 srikanth056

I have the same error. I read the code and if I understood correct - win32 platform isn't implemented.

vlad1qm avatar Apr 22 '21 12:04 vlad1qm