Re: on to communications

Craig White <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
On Thu, 2004-06-10 at 00:30, Bajusz Tamás wrote:
> On Wed, 09 Jun 2004 16:12:36 -0700
> Craig White <[email protected]> wrote:
> 
> > # gnue-schema --help-connections
> > 
> > GNUe Schema Scripter
> > Version 0.5.4
> > 
> > <snippage>
> > 
> > The following database drivers are installed on your system:
> >    TODO
> > 
> > I guess I expected to see things like psycopg here...
> 
> TODO = not implemented (yet)
> 
> 
> > 
> > # locate psycopg
> > <among other things, it finds...>
> > /usr/local/gnue/lib/python/gnue/common/datasources/drivers/postgresql/psycopg
> > 
> > so I know that it's here, but it doesn't seem to work.
> > 
> > and thus when I have in /usr/local/gnue/etc/connections.conf (per James
> > Thompsons walkthru)
> > 
> > [gnue]
> > comment = GNUe Test Database
> > aliases = dcl test
> > provider = psycopg
> > host = localhost
> > dbname = gnue
> > # encoding = iso8859-1
> > 
> > and then I type...
> > # su - postgres
> > -bash-2.05b$ gnue-schema -l
> > 
> > GNUe Schema Scripter
> > Version 0.5.4
> > 
> > GNUe Common Version 0.5.4
> > 
> > Error: No input file specified.
> > 
> > For help, type:
> >    gnue-schema --help
> > 
> > I'm dead
> 
> You have to pass a .gsd file as parameter to gnue-schema script.
> It will produce .sql files then.
> Try "gnue-schema --help" please :)
---
OK, got that - I was reading thru James Thompson's doc's and further
down, he got to the xml input file and I understand that. So I loaded
the gnue-forms sample inventory sql db and trying to run a form...

-bash-2.05b$ gnue-forms inv_maintenance.gfd
DB000: Traceback (most recent call last):
DB000:   File "/usr/local/bin/gnue-forms", line 34, in ?
DB000:     client.run ()
DB000:   File "/usr/local/gnue/lib/python/gnue/forms/GFClient.py", line
171, in run
DB000:     instance.activate()
DB000:   File "/usr/local/gnue/lib/python/gnue/forms/GFInstance.py",
line 286, in activate
DB000:     object.phaseInit()
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line
117, in phaseInit
DB000:     self._phaseInit(phase)
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line
144, in _phaseInit
DB000:     initter(phase)
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line
137, in _phaseInit
DB000:     inits[phase]()
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/datasources/GDataSource.py",
line 316, in primaryInit
DB000:     self.initialize()
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/datasources/GDataSource.py",
line 201, in initialize
DB000:     dataObject = \
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/datasources/GConnections.py",
line 268, in getDataObject
DB000:     connection = self.getConnection(connection_name)
DB000:   File
"/usr/local/gnue/lib/python/gnue/common/datasources/GConnections.py",
line 237, in getConnection
DB000:     'Connection')
DB000:   File "/usr/local/gnue/lib/python/gnue/common/apps/plugin.py",
line 162, in find
DB000:     raise LoadError, (name, result)
DB000: gnue.common.apps.plugin.LoadError: Cannot load plugin psycopg
DB000: The following plugins failed:
DB000: * gnue.common.datasources.drivers.postgresql.psycopg:
DependencyError: Module 'psycopg' is not installed.
DB000:

Thus, my problem. 
If this matters... Fedora FC-2 / python 2.3.3

How do I get it to locate psycopg?

Craig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.