Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#9359 closed Uncategorized (invalid)

Problem running manage.py syncdb

Reported by: osyed Owned by: nobody
Component: Uncategorized Version: 1.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have Python 2.4.3.
Just installed Django 1.0 stable release.

Started going through the intro tutorial.
http://docs.djangoproject.com/en/dev/intro/tutorial01/

It was going smooth until I got to the "Database Setup" section.
In settings.py I set the DATABASE_ENGINE to sqlite3 and DATABASE_NAME
to full path and filename (/home/myaccount/mysite/mysite.db).

Then when I tried to run: python manage.py syncdb
I got the following error message. I don't know what I need to do to fix it.
Please help.

init.py init.pyc manage.py* settings.py settings.pyc urls.py
4youit@…:/home/4youit/mysite [110]% python manage.py syncdb
Traceback (most recent call last):

File "manage.py", line 11, in ?

execute_manager(settings)

File "/usr/lib/python2.4/site-packages/django/core/management/init.py", line 340, in execute_manager

utility.execute()

File "/usr/lib/python2.4/site-packages/django/core/management/init.py", line 295, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 77, in run_from_argv

self.execute(*args, options.dict)

File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 95, in execute

self.validate()

File "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 122, in validate

num_errors = get_validation_errors(s, app)

File "/usr/lib/python2.4/site-packages/django/core/management/validation.py", line 22, in get_validation_errors

from django.db import models, connection

File "/usr/lib/python2.4/site-packages/django/db/init.py", line 16, in ?

backend = import('%s%s.base' % (_import_path, settings.DATABASE_ENGINE), {}, {}, [])

File "/usr/lib/python2.4/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 pysqlite2 module: No module named pysqlite2

Change History (2)

comment:1 by Russell Keith-Magee, 16 years ago

Resolution: invalid
Status: newclosed

Please don't use the ticket tracker for user support questions. If you need help getting your Django install working, please ask on the django-users mailing list.

In this case, the error tells you exactly what is wrong:

 Error loading pysqlite2 module: No module named pysqlite2

You don't have pysqlite (the python wrapper around SQLite) installed.

comment:2 by anonymous, 13 years ago

Easy pickings: unset
Severity: Normal
Type: Uncategorized
UI/UX: unset

I have a similar problem on Centos, however those modules are installed, and the wrapper and the devel package;
# yum install python-sqlite.x86_64 python-sqlite2.x86_64 python-sqlite2.x86_64 python-sqlite.x86_64
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile

  • base: mirror.5ninesolutions.com
  • epel: linux.mirrors.es.net
  • extras: linux.mirrors.es.net
  • updates: mirror.5ninesolutions.com

Setting up Install Process
Package python-sqlite-1.1.7-1.2.1.x86_64 already installed and latest version
Package 1:python-sqlite2-2.3.3-1.el5.x86_64 already installed and latest version
Package 1:python-sqlite2-2.3.3-1.el5.x86_64 already installed and latest version
Package python-sqlite-1.1.7-1.2.1.x86_64 already installed and latest version

File "/opt/horizon/openstack-dashboard/.dashboard-venv/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line 34, in ?

raise ImproperlyConfigured("Error loading %s: %s" % (module, exc))

django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2 module: No module named pysqlite2

Version 0, edited 13 years ago by anonymous (next)
Note: See TracTickets for help on using tickets.
Back to Top