Tuesday, October 15, 2013

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

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.yaphet@gmail.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.leonardo@gmail.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.yaphet@gmail.com>
ok I built Django 1.5.3  on  fedora 18  and  don't use virtualenv 


2013/10/14 Leonardo Giordani <giordani.leonardo@gmail.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?

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


2013/10/14 Darion Yaphet <darion.yaphet@gmail.com>
Python  2.7.3 and Django is 1.5.3 ..


2013/10/14 Leonardo Giordani <giordani.leonardo@gmail.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.yaphet@gmail.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 ???? 

--
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 post to this group, send email to django-users@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.

--
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 post to this group, send email to django-users@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/CAEhE%2BO%3Dr_nPHCA4T3N1hX8--be1R9SMtB%3Deaa_5cFsPCravawg%40mail.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

--
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 post to this group, send email to django-users@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/CAOHWcC%2BjyqOZBjqSYVHYNZm7vbixRiWtBQ2dvteYLdv%3DNhyi6w%40mail.gmail.com.

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

--
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 post to this group, send email to django-users@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/CAEhE%2BO%3D-D_WzBa4_Lis4Bppak-czSKG9D60b91b7GFSWvnWM%2Bw%40mail.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

--
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 post to this group, send email to django-users@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/CAOHWcCLGk_MTSTd%2BLXPdu90kYva%3D5v2Gmgp85QxGtU%2BE4EH%2B8A%40mail.gmail.com.

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

--
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 post to this group, send email to django-users@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/CAEhE%2BO%3DRQd%2BP%3DBZ%2B1jWduS_SQ4riXcWX9gr8YWhSSyZa8xR3mg%40mail.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

--
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 post to this group, send email to django-users@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/CAOHWcCJusuOn5ccorgLdTAAk9_Z5aEdBrmvD-Kj-6n3r3Y2oWw%40mail.gmail.com.

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

--
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 post to this group, send email to django-users@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/CAEhE%2BO%3DvL2bDBQtBEYbojr%2BzFV9SYYoB5dJZteaVhSytF5kpMg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment