Django-1.4c2 logging issue on Snow Leopard

124 views
Skip to first unread message

Jeff Heard

unread,
Mar 22, 2012, 4:09:53 PM3/22/12
to django...@googlegroups.com
Hi all.  I just created a new Django-1.4 project and got this error:  

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_manager(settings)
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/core/management/__init__.py", line 252, in fetch_command
    app_name = get_commands()[subcommand]
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/core/management/__init__.py", line 101, in get_commands
    apps = settings.INSTALLED_APPS
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/utils/functional.py", line 276, in __getattr__
    self._setup()
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/Users/jeffersonheard/Source/geoanalytics/lib/python2.7/site-packages/django/conf/__init__.py", line 139, in __init__
    logging_config_func(self.LOGGING)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 776, in dictConfig
    dictConfigClass(config).configure()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py", line 562, in configure
    'filter %r: %s' % (name, e))
ValueError: Unable to configure filter 'require_debug_false': Cannot resolve 'django.utils.log.RequireDebugFalse': No module named RequireDebugFalse

I'm using virtualenv and the system python.  

Regards,

-- Jeff

Reinout van Rees

unread,
Mar 23, 2012, 10:49:49 AM3/23/12
to django...@googlegroups.com
On 22-03-12 21:09, Jeff Heard wrote:
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/config.py",
> line 562, in configure
> 'filter %r: %s' % (name, e))
> ValueError: Unable to configure filter 'require_debug_false': Cannot
> resolve 'django.utils.log.RequireDebugFalse': No module named
> RequireDebugFalse
>
> I'm using virtualenv and the system python.

Guess: You have django installed both in your virtualenv and in your
system python and they're probably interfering. Look in your manage.py
script if you spot something wrong with sys.path or so. Or the `#!`
python line at the top.

Reinout

--
Reinout van Rees http://reinout.vanrees.org/
rei...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

Reply all
Reply to author
Forward
0 new messages