Re: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-05 Thread Karen Tracey
On 12/5/07, AY <[EMAIL PROTECTED]> wrote:
>
>
> Good Morning, Thanks for reply my request! Can you show me where/how
> to detect the error in psycopg module and how to fix the problem. I
> have completed the following steps without any problem. (1) install
> Python 2.5.1 windows installer (Python 2.5.1.exe) (2) install
> TortoiseSVN-1.4.5.10425-win-svn-1.4.5.msi (3) Install Django 0.96 (4)
> Update path variables to include python path (C:\python25; C:
> \python25\tools\scripts;c:\python25\scripts) (5) install apache2.2.4-
> win32-x86-no_ssl_msi web server (6)Install mod_python-3.3.1win-py2.5-
> apache2.2.exe to allow apache and python to talk to each other (7)
> install python memchache (python-memcache-1.39.tar.gz (8) download
> FacBackOpac.
> However I got stuck at (9) configure apache to use facbackopac
> directory as a django project. This is my FIRST try to apply Django on
> opac and have no idea to solve this mod_python error. Any help will be
> very appreciated.  Thanks!


The list of instructions you are following don't appear to have included the
piece that lets Django use Python to access the database, that's what
psycopg does.  See:

http://www.djangoproject.com/documentation/install/#get-your-database-running

for pointers on where to get psycopg.

(Nor do I see in the list so far the database itself, which you will also
need.  But I'm unfamiliar with facbackopac.  From a quick look at its Google
groups page it sounds like it provides an alternative interface to an
existing catalog, so I guess maybe you already have a database with this
catalog running?)

Karen

--~--~-~--~~~---~--~~
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: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-05 Thread AY

Good Morning, Thanks for reply my request! Can you show me where/how
to detect the error in psycopg module and how to fix the problem. I
have completed the following steps without any problem. (1) install
Python 2.5.1 windows installer (Python 2.5.1.exe) (2) install
TortoiseSVN-1.4.5.10425-win-svn-1.4.5.msi (3) Install Django 0.96 (4)
Update path variables to include python path (C:\python25; C:
\python25\tools\scripts;c:\python25\scripts) (5) install apache2.2.4-
win32-x86-no_ssl_msi web server (6)Install mod_python-3.3.1win-py2.5-
apache2.2.exe to allow apache and python to talk to each other (7)
install python memchache (python-memcache-1.39.tar.gz (8) download
FacBackOpac.
However I got stuck at (9) configure apache to use facbackopac
directory as a django project. This is my FIRST try to apply Django on
opac and have no idea to solve this mod_python error. Any help will be
very appreciated.  Thanks!



On Dec 4, 10:39 am, "Mauro Sánchez" <[EMAIL PROTECTED]> wrote:
> 2007/12/4, AY <[EMAIL PROTECTED]>:
>
> > Hi! I am trying to configure Apache to use facbackopan directory as a
> > django project, and have the following mod_python error message. Help
> > would be very appreciated. Thanks in advance!
>
> Hi.
>
> > 
> > MOD_PYTHON ERROR
>
> > ImproperlyConfigured: Error loading psycopg module: No module named
> > psycopg
>
> I think that you have an error in the psycopg module. Are you sure it
> is installed correctly? Can you use it outside django?
--~--~-~--~~~---~--~~
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: Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread Mauro Sánchez

2007/12/4, AY <[EMAIL PROTECTED]>:
>
> Hi! I am trying to configure Apache to use facbackopan directory as a
> django project, and have the following mod_python error message. Help
> would be very appreciated. Thanks in advance!
>
Hi.

> 
> MOD_PYTHON ERROR
>
> ImproperlyConfigured: Error loading psycopg module: No module named
> psycopg

I think that you have an error in the psycopg module. Are you sure it
is installed correctly? Can you use it outside django?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Mod_Python Error - ImproperlyConfigured: Error loading psycopg module: No module named psycopg

2007-12-04 Thread AY

Hi! I am trying to configure Apache to use facbackopan directory as a
django project, and have the following mod_python error message. Help
would be very appreciated. Thanks in advance!


MOD_PYTHON ERROR

ProcessId:  2208
Interpreter:'LocalHost'

ServerName: 'LocalHost'
DocumentRoot:   'C:/Program Files/Apache Software Foundation/Apache2.2/
htdocs'

URI:'/catalog'
Location:   '/catalog'
Directory:  None
Filename:   'C:/Program Files/Apache Software Foundation/Apache2.2/
htdocs/catalog'
PathInfo:   ''

Phase:  'PythonHandler'
Handler:'django.core.handlers.modpython'

Traceback (most recent call last):

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line
1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line
1229, in _process_target
result = _execute_target(config, req, object, arg)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line
1128, in _execute_target
result = object(arg)

  File "C:\Python25\Lib\site-packages\django\core\handlers
\modpython.py", line 178, in handler
return ModPythonHandler()(req)

  File "C:\Python25\Lib\site-packages\django\core\handlers
\modpython.py", line 146, in __call__
self.load_middleware()

  File "C:\Python25\Lib\site-packages\django\core\handlers\base.py",
line 29, in load_middleware
mod = __import__(mw_module, {}, {}, [''])

  File "C:\Python25\Lib\site-packages\django\contrib\sessions
\middleware.py", line 2, in 
from django.contrib.sessions.models import Session

  File "C:\Python25\Lib\site-packages\django\contrib\sessions
\models.py", line 3, in 
from django.db import models

  File "C:\Python25\Lib\site-packages\django\db\__init__.py", line 11,
in 
backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, {}, {}, [''])

  File "C:\Python25\Lib\site-packages\django\db\backends\postgresql
\base.py", line 13, in 
raise ImproperlyConfigured, "Error loading psycopg module: %s" % e

ImproperlyConfigured: Error loading psycopg module: No module named
psycopg
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---