pombreda / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
MIT License
0 stars 0 forks source link

complete_project/manage.py syncdb fails (translation-related?) #213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

here it is:

(pinax-env)complete_project$ ./manage.py syncdb
/mnt/hdd2/pinooblet/pinax-env/src/django-openid/django_openid/models.py:6: 
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import time, base64, md5
/mnt/hdd2/pinooblet/pinax-env/src/django-email-
confirmation/emailconfirmation/models.py:3: DeprecationWarning: the sha 
module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "./manage.py", line 22, in <module>
    execute_from_command_line()
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/core/management/__init__.py", line 331, in 
execute_from_command_line
    utility.execute()
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/core/management/__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/core/management/base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/core/management/base.py", line 210, in execute
    translation.activate('en-us')
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/utils/translation/__init__.py", line 73, in activate
    return real_activate(language)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/utils/translation/__init__.py", line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/utils/translation/trans_real.py", line 209, in activate
    _active[currentThread()] = translation(language)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/utils/translation/trans_real.py", line 199, in translation
    current_translation = _fetch(language, fallback=default_translation)
  File "/mnt/hdd2/pinooblet/pinax-env/lib/python2.6/site-
packages/django/utils/translation/trans_real.py", line 159, in _fetch
    res._info = res._info.copy()
AttributeError: 'NoneType' object has no attribute '_info'

(pinax-env)complete_project$ uname -a
Linux ubu9 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:58 UTC 2009 
i686 GNU/Linux

(Ubuntu9 32bit Intel is updated)

Original issue reported on code.google.com by khame...@gmail.com on 30 Mar 2009 at 11:22

GoogleCodeExporter commented 9 years ago
LOL... I've just re-ran the manage.py from python+ipython to find out more on 
the 
exception and ...all went OK ;)

Original comment by khame...@gmail.com on 30 Mar 2009 at 11:55

GoogleCodeExporter commented 9 years ago
BTW, 
  ./manage.py runserver 
fails similarly...

Original comment by khame...@gmail.com on 30 Mar 2009 at 11:57

GoogleCodeExporter commented 9 years ago
Exception is caused because django/conf/ has no subdirectory "locale". Why it 
becomes 
absent after pip installation is not yet clear. But django tar-ball contains 
this 
subdirectory. 

Original comment by khame...@gmail.com on 31 Mar 2009 at 9:27

GoogleCodeExporter commented 9 years ago
khamenya is correct

I had this issue when I unzipped Django to get around the current zip problems.
I went a little crazy trying to figure this one out and it seems like this is 
the 
short of it:

According to http://code.google.com/p/app-engine-patch/wiki/ManualInstallation 
it 
seems like they rely on "common/django_aep_export/django-locale/locale" 
automatically 
getting integrated when you use a zip file.  If you unzip Djengo then its 
"django/conf/"locale will be empty.  If you copy 
"common/django_aep_export/django-
locale/locale" to "django/conf/" you should be good

Original comment by tvucurev...@gmail.com on 26 May 2009 at 12:02

GoogleCodeExporter commented 9 years ago
Hi all-

I am experiencing this same issue, even though my django/conf/locale directory 
is not
empty. 

I am using Django 1.1 (the latest stable release, installed from the tarball), 
and
upon issuing a "python manage.py syncdb" or "python manage.py runserver" from my
project, I get the same error.  I've pasted in the error output below this 
message.

I have already spent a lot of time looking into this, and so far the only thing 
that
seemed relevant is a bug where the django/conf/locale directory is empty. 
Unfortunately, I hit a dead end there when I saw that my django/conf/locale is 
not empty.

I'm hoping someone else has experienced this and found a fix!

Thanks in advance,

Mike

Traceback (most recent call last):
  File "manage.py", line 28, in <module>
    execute_from_command_line()
  File "/Users/wisz/Django-1.1/build/lib/django/core/management/__init__.py", line
353, in execute_from_command_line
    utility.execute()
  File "/Users/wisz/Django-1.1/build/lib/django/core/management/__init__.py", line
303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/wisz/Django-1.1/build/lib/django/core/management/base.py", line 195,
in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/wisz/Django-1.1/build/lib/django/core/management/base.py", line 213,
in execute
    translation.activate('en-us')
  File "/Users/wisz/Django-1.1/build/lib/django/utils/translation/__init__.py", line
73, in activate
    return real_activate(language)
  File "/Users/wisz/Django-1.1/build/lib/django/utils/translation/__init__.py", line
43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "/Users/wisz/Django-1.1/build/lib/django/utils/translation/trans_real.py",
line 205, in activate
    _active[currentThread()] = translation(language)
  File "/Users/wisz/Django-1.1/build/lib/django/utils/translation/trans_real.py",
line 195, in translation
    current_translation = _fetch(language, fallback=default_translation)
  File "/Users/wisz/Django-1.1/build/lib/django/utils/translation/trans_real.py",
line 160, in _fetch
    res._info = res._info.copy()
AttributeError: 'NoneType' object has no attribute '_info'

Original comment by michael....@gmail.com on 7 Aug 2009 at 5:03