Re: Issues for run "runserver" command.

2008-08-29 Thread Daniel Roseman

On Aug 29, 4:19 am, Issac <[EMAIL PROTECTED]> wrote:
> I have installed python2.5 on RH3L-AS4 successfully.
> And already installed Django1.0-beta2 successfully.
>
> After i create a project test, when i use python manage.py runserver
> to start the dev server, the log shows error during the starting
> process:



>   File "/usr/workspace/python25/lib/python2.5/site-packages/django/db/
> backends/sqlite3/base.py", line 26, in 
>     raise ImproperlyConfigured, "Error loading %s module: %s" %
> (module, e)
> django.core.exceptions.ImproperlyConfigured: Error loading sqlite3
> module: No module named pysqlite2
> 
>
> But in /usr/workspace/python25/lib/python2.5/site-packages/django/db/
> backends/sqlite3/base.py, there says  "Python 2.5 and later use the
> sqlite3 module in the standard library."  So, i have no idea about
> this issue. Does anyone have expirence on this? I'll be very
> appreciate your help.
>
> BTW, the server has a python2.3.4 already installed, i use python2.5
> command file directly to run the server.

Presumably you installed Python from the RHEL package. I don't know
about Red Hat specfiically, but many Linux distributions have various
different packages including a 'minimal' version which doesn't include
all the default libraries. It may be that you have installed that
version, rather than the full distribution.

Try just running python2.5 to get the shell and typing 'import
sqlite3' - if it doesn't work there, then you'll need to use your
package manager to install the full Python version.
--
DR.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Issues for run "runserver" command.

2008-08-28 Thread Issac


I have installed python2.5 on RH3L-AS4 successfully.
And already installed Django1.0-beta2 successfully.

After i create a project test, when i use python manage.py runserver
to start the dev server, the log shows error during the starting
process:


File "manage.py", line 11, in 
execute_manager(settings)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
core/management/__init__.py", line 334, in execute_manager
utility.execute()
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
core/management/__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
core/management/base.py", line 77, in run_from_argv
self.execute(*args, **options.__dict__)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
core/management/base.py", line 87, in execute
translation.activate('en-us')
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
utils/translation/__init__.py", line 73, in activate
return real_activate(language)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
utils/translation/__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
utils/translation/trans_real.py", line 209, in activate
_active[currentThread()] = translation(language)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
utils/translation/trans_real.py", line 198, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
utils/translation/trans_real.py", line 181, in _fetch
app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]),
appname[p+1:])
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
contrib/admin/__init__.py", line 1, in 
from django.contrib.admin.options import ModelAdmin, HORIZONTAL,
VERTICAL
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
contrib/admin/options.py", line 5, in 
from django.contrib.contenttypes.models import ContentType
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/
contrib/contenttypes/models.py", line 1, in 
from django.db import models
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/db/
__init__.py", line 16, in 
backend = __import__('%s%s.base' % (_import_path,
settings.DATABASE_ENGINE), {}, {}, [''])
  File "/usr/workspace/python25/lib/python2.5/site-packages/django/db/
backends/sqlite3/base.py", line 26, in 
raise ImproperlyConfigured, "Error loading %s module: %s" %
(module, e)
django.core.exceptions.ImproperlyConfigured: Error loading sqlite3
module: No module named pysqlite2


But in /usr/workspace/python25/lib/python2.5/site-packages/django/db/
backends/sqlite3/base.py, there says  "Python 2.5 and later use the
sqlite3 module in the standard library."  So, i have no idea about
this issue. Does anyone have expirence on this? I'll be very
appreciate your help.

BTW, the server has a python2.3.4 already installed, i use python2.5
command file directly to run the server.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Issues for run "runserver" command.

2008-08-28 Thread Issac

I have installed python2.5 on RH3L-AS4

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