AttributeError: 'module' object has no attribute '_handlerList'

1,478 views
Skip to first unread message

Darion Yaphet

unread,
Oct 14, 2013, 3:05:25 AM10/14/13
to django...@googlegroups.com
Hi all : 

when I use django-admin.py to init django project  
django-admin.py  startproject hello

Got a exception ..
 AttributeError: 'module' object has no attribute '_handlerList'

what is it ???? 

Leonardo Giordani

unread,
Oct 14, 2013, 7:09:44 AM10/14/13
to django...@googlegroups.com
Hi, are you using a virtualenv? In that case, can you post the list of packages you installed? If not, can you give details about the OS you are working on, Django version, and so on?

Regards,

Leo

Leonardo Giordani
Author of The Digital Cat
My profile on About.me - My GitHub page - My Coderwall profile


2013/10/14 Darion Yaphet <darion...@gmail.com>

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a6024b53-9203-4e25-9202-d2cdf017e5a0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Darion Yaphet

unread,
Oct 14, 2013, 7:28:50 AM10/14/13
to django...@googlegroups.com
Python  2.7.3 and Django is 1.5.3 ..


2013/10/14 Leonardo Giordani <giordani...@gmail.com>

For more options, visit https://groups.google.com/groups/opt_out.



--
long is the way and hard  that out of Hell leads up to light

Leonardo Giordani

unread,
Oct 14, 2013, 7:48:05 AM10/14/13
to django...@googlegroups.com
Please give me the information I asked you, otherwise I cannot figure out what kind of problem you have.

Are you using a virtualenv? In that case, can you post the list of packages you installed? If not, can you give details about the OS you are working on?
2013/10/14 Darion Yaphet <darion...@gmail.com>

Darion Yaphet

unread,
Oct 15, 2013, 3:35:27 AM10/15/13
to django...@googlegroups.com
ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv 


2013/10/14 Leonardo Giordani <giordani...@gmail.com>

For more options, visit https://groups.google.com/groups/opt_out.

Leonardo Giordani

unread,
Oct 15, 2013, 6:21:52 AM10/15/13
to django...@googlegroups.com
Ok, can you please try to traceback the command and post the results?

python django-admin.py startproject hello --traceback



Leonardo Giordani
Author of The Digital Cat
My profile on About.me - My GitHub page - My Coderwall profile


2013/10/15 Darion Yaphet <darion...@gmail.com>

Darion Yaphet

unread,
Oct 15, 2013, 8:29:23 AM10/15/13
to django...@googlegroups.com
the output  exception info as following :

~ ➤ python /usr/bin/django-admin.py startproject hello --traceback                                                                         
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/site-packages/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py", line 31, in handle
    super(Command, self).handle('project', project_name, target, **options)
  File "/usr/lib/python2.7/site-packages/django/core/management/templates.py", line 123, in handle
    settings.configure()
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 98, in configure
    self._configure_logging()
  File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 77, in _configure_logging
    logging_config_func(DEFAULT_LOGGING)
  File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line 555, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python2.7/site-packages/django/utils/dictconfig.py", line 323, in configure
    del logging._handlerList[:]
AttributeError: 'module' object has no attribute '_handlerList'

and is  something missing or any package is missing


2013/10/15 Leonardo Giordani <giordani...@gmail.com>

For more options, visit https://groups.google.com/groups/opt_out.

Leonardo Giordani

unread,
Oct 15, 2013, 9:13:14 AM10/15/13
to django...@googlegroups.com
As I suspected, there is a problem with the logging module, which is probably shadowed, i.e. when Django performs "import logging" it imports a different module.
Try the following: exactly where you execute the manage.py open an interactive Python shell and do

>>> import logging
>>> print logging.__file__

This should hopefully show us what logging is working behind the scenes.
Try and post the results

Leo


Leonardo Giordani
Author of The Digital Cat
My profile on About.me - My GitHub page - My Coderwall profile


2013/10/15 Darion Yaphet <darion...@gmail.com>

Darion Yaphet

unread,
Oct 15, 2013, 10:43:02 AM10/15/13
to django...@googlegroups.com
Great !!!
It's the point  and now successful

helloworld ➤ tree                                                                                                                          
.
|-- helloworld
|   |-- __init__.py
|   |-- __init__.pyc
|   |-- settings.py
|   |-- settings.pyc
|   |-- urls.py
|   `-- wsgi.py
`-- manage.py

1 directory, 7 files

thanks a lot 


2013/10/15 Leonardo Giordani <giordani...@gmail.com>

For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages