Difficult setup on Suse Linux

41 views
Skip to first unread message

Martin Sommer

unread,
Apr 4, 2012, 2:47:34 PM4/4/12
to Django users, mar...@sommer.net
I have Python and Django properly installed, but am not getting the
first project to work. When I do this:

python manage.py runserver

... I get this:

Traceback (most recent call last):
File "manage.py", line 14, in ?
execute_manager(settings)
File "/usr/lib/python2.4/site-packages/django/core/management/
__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/lib/python2.4/site-packages/django/core/management/
__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.4/site-packages/django/core/management/
base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.4/site-packages/django/core/management/
base.py", line 209, in execute
translation.activate('en-us')
File "/usr/lib/python2.4/site-packages/django/utils/translation/
__init__.py", line 100, in activate
return _trans.activate(language)
File "/usr/lib/python2.4/site-packages/django/utils/translation/
__init__.py", line 43, in __getattr__
if settings.USE_I18N:
File "/usr/lib/python2.4/site-packages/django/utils/functional.py",
line 276, in __getattr__
self._setup()
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py",
line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.4/site-packages/django/conf/__init__.py",
line 139, in __init__
logging_config_func(self.LOGGING)
File "/usr/lib/python2.4/site-packages/django/utils/dictconfig.py",
line 553, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python2.4/site-packages/django/utils/dictconfig.py",
line 321, in configure
del logging._handlerList[:]
AttributeError: 'module' object has no attribute '_handlerList'

Any ideas?

Thanks,
Martin

Diego Schulz

unread,
Apr 4, 2012, 4:22:12 PM4/4/12
to django...@googlegroups.com

Is this a Django 1.4 installation? I ask that because it looks like
you have Python 2.4,
and Django 1.4 will NOT work with Python 2.4, requires at least Python 2.5.

Diego

Martin Sommer

unread,
Apr 4, 2012, 11:40:25 PM4/4/12
to Django users
Its Django 1.3.1, with Python 2.4.1. The Django docs say that this
would work.

https://docs.djangoproject.com/en/1.3/intro/install/

Martin

Andre Terra

unread,
Apr 5, 2012, 7:40:14 AM4/5/12
to django...@googlegroups.com

There's a chance you have a logging module in your PATH that is shadowing the default package.

Did you create an app or project named logging by any chance?

Ideas:
- From an interactive python shell, import logging and check logging.__file__

In my Ubuntu install, I get:
/usr/lib/python2.7/logging/__init__.pyc

- Install virtualenv and create an environment using the --no-site-packages and install nothing but Django. Try running it from there and see what happens. Ideally, you'll want to use virtual environments always.

I'm hoping one of these solutions will help, but I'm really just guessing.

Cheers,
AT

-- Sent from my phone, please excuse any typos. --

> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

Martin Sommer

unread,
Apr 5, 2012, 2:45:50 PM4/5/12
to Django users
Thanks Andre, logging.__file__ worked as with your setup, but the
issue still remained.

I changed to another VM where I have with Ubunto installed, and
everything works. Must be the Redhat/Suse vs the Debian/Ubuntu
approach. Not something I can spend time on right now.

Thanks for your help!!

Martin

Reply all
Reply to author
Forward
0 new messages