Opened 12 years ago

Closed 12 years ago

#19093 closed Bug (duplicate)

threading._Event doesn't exist in python 3.3

Reported by: alex_po Owned by: nobody
Component: Python 3 Version: dev
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'

Change History (1)

comment:1 by Aymeric Augustin, 12 years ago

Resolution: duplicate
Status: newclosed

This is #19038.

Note: See TracTickets for help on using tickets.
Back to Top