Hello jlgimeno71,
On Sunday, February 23, 2020 at 4:49:05 PM UTC+5:30, Siddharth Agarwal wrote:
-- This issue does not happen with Python 3.7. And I am able to move forward.
Thanks and Regards,
Siddharth Agarwal
On Sunday, February 23, 2020 at 4:49:05 PM UTC+5:30, Siddharth Agarwal wrote:
Thx jlgimeno71I am able to reproduce this issue using Python 3.8.2rc2 released on 17th Feb. As next steps moving to Python 3.7.Regards,Siddharth Agarwal
On Sunday, February 23, 2020 at 11:05:42 AM UTC+5:30, jlgimeno71 wrote:On Sat, Feb 22, 2020 at 9:02 PM Siddharth Agarwal <sk.ag...@gmail.com> wrote:HelloWhen I run my Django Web application with Apache2.4.41 + Python 3.8.1 + Django 3.0.2 + MySQL 8.0.19 on Windows 10 Professional 64 bit version it throws Value Error at /. set_wakeup_fd only works in main thread.This issue was a result of regression in Python 3.8 and was fixed in November in later builds of Python. For more details - https://bugs.python.org/issue38563 .Stacktrace of the error is as follows -Environment:
Request Method: GET
Request URL: http://127.0.0.1/
Django Version: 3.0.2
Python Version: 3.8.1
Installed Applications:
['Analysis.apps.AnalysisConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware. AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking. XFrameOptionsMiddleware']
Traceback (most recent call last):
File "c:\python38\lib\site-packages\django\core\handlers\ , line 34, in innerexception.py"
response = get_response(request)
File "c:\python38\lib\site-packages\django\core\handlers\ , line 115, in _get_responsebase.py"
response = self.process_exception_by_middleware (e, request)
File "c:\python38\lib\site-packages\django\core\handlers\ , line 113, in _get_responsebase.py"
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "F:\IndianMarketAnalysis\ISMA\Analysis\views.py" , line 8, in home
date_list = dict(d.date_list())
File "F:\IndianMarketAnalysis\ISMA\Analysis\models.py" , line 7, in date_list
with connection.cursor() as cursor:
File "c:\python38\lib\site-packages\django\utils\asyncio. , line 19, in innerpy"
event_loop = asyncio.get_event_loop()
File "c:\python38\lib\asyncio\events.py" , line 636, in get_event_loop
self.set_event_loop(self.new_event_loop ())
File "c:\python38\lib\asyncio\events.py" , line 656, in new_event_loop
return self._loop_factory()
File "c:\python38\lib\asyncio\windows_events.py" , line 310, in __init__
super().__init__(proactor)
File "c:\python38\lib\asyncio\proactor_events.py" , line 632, in __init__
signal.set_wakeup_fd(self._csock .fileno())
Exception Type: ValueError at /
Exception Value: set_wakeup_fd only works in main thread--Further, this application works very well on local Development Environment using - python manage.py runserver.
Please suggest the next steps to move forward.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5dceb145- .7d89-4bd0-a3cf-24dd5155891a% 40googlegroups.com This is fixed and will be released with 3.8.2, per what I've read. If running 3.8.2 release candidate 2 isn't an option, is downgrading to Python 3.7 an option?-Jorge
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a4c6ecd-a6c5-4689-a93f-dc2ae96fae44%40googlegroups.com.
No comments:
Post a Comment