Code

#19093 closed Bug (duplicate)

threading._Event doesn't exist in python 3.3

Reported by: alex_po Owned by: nobody
Component: Python 3 Version: master
Severity: Normal Keywords: threading
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I got this error when tried to launch django using python 3.3:

Traceback (most recent call last):
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/core/management/base.py", line 247, in execute
    translation.activate('en-us')
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/utils/translation/__init__.py", line 90, in activate
    return _trans.activate(language)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/utils/translation/trans_real.py", line 181, in activate
    _active.value = translation(language)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/utils/translation/trans_real.py", line 170, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/utils/translation/trans_real.py", line 152, in _fetch
    app = import_module(appname)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/admin/__init__.py", line 6, in <module>
    from django.contrib.admin.sites import AdminSite, site
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/admin/sites.py", line 4, in <module>
    from django.contrib.admin.forms import AdminAuthenticationForm
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/admin/forms.py", line 6, in <module>
    from django.contrib.auth.forms import AuthenticationForm
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/auth/forms.py", line 14, in <module>
    from django.contrib.auth.models import User
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/auth/models.py", line 18, in <module>
    from django.contrib.auth.hashers import (
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/contrib/auth/hashers.py", line 8, in <module>
    from django.test.signals import setting_changed
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/test/__init__.py", line 6, in <module>
    from django.test.testcases import (TestCase, TransactionTestCase,
  File "/Users/developer/Development/Projects/python/django/django-trunk/django/test/testcases.py", line 871, in <module>
    _ImprovedEvent = threading._Event
AttributeError: 'module' object has no attribute '_Event'
AttributeError: 'module' object has no attribute '_Event'

Attachments (0)

Change History (1)

comment:1 Changed 21 months ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This is #19038.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.