[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [GNUe] error in appserver
From: |
Peter Dabrowski |
Subject: |
Re: [GNUe] error in appserver |
Date: |
Sun, 18 Jan 2004 11:43:04 +0800 |
Hi Jan,
Looking at log it give me some clues. I found that rpm which I got was
installing package under
python2.2 so reinstalled py-xmlrpc from source and it work. But new problem
arise. psycopg
rpm is for python2.3 but maybe I try to reinstall it from source two? I let
you know haw it go.
Peter
address@hidden piotr]# python
/usr/local/gnue/lib/python/gnue/common/rpc/drivers/xmlrpc/py_xmlrpc/Driver.py
Traceback (most recent call last):
File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/xmlrpc/py_xmlrpc/Driver.py",
line 30, in ?
from ClientAdapter import *
File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/xmlrpc/py_xmlrpc/ClientAdapter.py",
line 80, in ?
raise GComm.AdapterInitializationError, tmsg
gnue.common.rpc.GComm.AdapterInitializationError:
Unable to load xmlrpc. To use the XML-RPC interface,
please install xmlrpc from:
http://sourceforge.net/projects/py-xmlrpc the appropriate DEBIAN
package is python-xmlrpc.deb
address@hidden piotr]$ gnue-appserver
Exporting our services via xmlrpc.py_xmlrpc (port 8765) ...
DB000: Traceback (most recent call last):
DB000: File "/usr/local/bin/gnue-appserver", line 31, in ?
DB000: server.run ();
DB000: File "/usr/local/gnue/lib/python/gnue/appserver/geasRpcServer.py",
line 158, in run
DB000: {'SessionManager': self.requestSessionManager})
DB000: File "/usr/local/gnue/lib/python/gnue/common/rpc/GComm.py", line
192, in bind
DB000: adapter = driver.ServerAdapter(mapping, bindings, params)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/xmlrpc/py_xmlrpc/ServerAdapter.py",
line 100, in __init__
DB000: bindings, params)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/_helpers/ObjectEnabler.py",
line 40, in __init__
DB000: DirectoryServer.DirectoryServer.__init__(self, rpcdef, bindings,
params)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/_helpers/DirectoryServer.py",
line 54, in __init__
DB000: self.mapObjects(rpcdef,bindings)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/_helpers/DirectoryServer.py",
line 193, in mapObjects
DB000: self.mapObjects(child, bindings, object)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/drivers/_helpers/DirectoryServer.py",
line 111, in mapObjects
DB000: object._realbinding=bindings[object.binding]()
DB000: File "/usr/local/gnue/lib/python/gnue/appserver/geasRpcServer.py",
line 190, in requestSessionManager
DB000: self.sm = geasSessionManager.geasSessionManager
(self.connections)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/geasSessionManager.py", line 50,
in __init__
DB000: classrep.init (self)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/classrep/__init__.py", line 57,
in init
DB000: new_modules = ModuleDict (session)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/classrep/Module.py", line 46, in
__init__
DB000: self._updateCache (self._requestData ())
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/classrep/Module.py", line 64, in
_requestData
DB000: ["gnue_name", "gnue_id"])
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/language/Session.py", line 75,
in find
DB000: properties)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/language/ObjectList.py", line
30, in newList
DB000: return ObjectList (server, sessionId, classname, cond, sort,
properties)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/language/ObjectList.py", line
50, in __init__
DB000: self._buildCache ()
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/language/ObjectList.py", line
87, in _buildCache
DB000: self.properties)
DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/geasSessionManager.py", line
110, in request
DB000: return s.request (classname, conditions, sortorder,
propertylist)
DB000: File "/usr/local/gnue/lib/python/gnue/appserver/geasSession.py",
line 133, in request
DB000: list = self._createList (classname, ["gnue_id"] + propertylist,
sortorder)
DB000: File "/usr/local/gnue/lib/python/gnue/appserver/geasSession.py",
line 102, in _createList
DB000: return geasList.geasList (self, classdef, propertylist,
sortorder)
DB000: File "/usr/local/gnue/lib/python/gnue/appserver/geasList.py", line
70, in __init__
DB000: fields = self._prefColumns)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/datasources/GDataSource.py", line
564, in DataSourceWrapper
DB000: source.buildAndInitObject(**attributes)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line 63,
in buildAndInitObject
DB000: self.phaseInit(self.buildObject(**params))
DB000: File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line 81,
in phaseInit
DB000: self._phaseInit(phase)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/definitions/GObjects.py", line 101,
in _phaseInit
DB000: inits[phase]()
DB000: File
"/usr/local/gnue/lib/python/gnue/common/datasources/GDataSource.py", line
319, in primaryInit
DB000: self.initialize()
DB000: File
"/usr/local/gnue/lib/python/gnue/common/datasources/GDataSource.py", line
204, in initialize
DB000: dataObject = \
DB000: File
"/usr/local/gnue/lib/python/gnue/common/datasources/GConnections.py", line
194, in getDataObject
DB000: connection_type, self)
DB000: File
"/usr/local/gnue/lib/python/gnue/common/datasources/GConnections.py", line
372, in _load_dbdriver
DB000: raise GDataObjects.ProviderNotSupportedError, tmsg
DB000: gnue.common.datasources.GDataObjects.ProviderNotSupportedError: No
database driver found for provider type 'psycopg'
----- Original Message -----
From: Jan Ischebeck <address@hidden>
Date: Sat, 17 Jan 2004 21:58:57 +0100
To: address@hidden
Subject: Re: [GNUe] error in appserver
> Hi Peter,
>
> gcvs is just a convenient function to set the PYTHONPATH class variable.
> Please try the following:
> PYTHONPATH=<insert your gnue path>:$PYTHONPATH; export PYTHONPATH
> python gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/Driver.py
>
> Jan
>
> Am Sa, den 17.01.2004 schrieb Peter Dabrowski um 13:53:
> > Thanks Jan for quick response.
> > I found xmlrpclib.py on my system and imported it.
> > But cannot find gcvs presumably because I run gnue from latest official
releases, not
> > from cvs. After import xmlrpclib.py tried gnue-appserver but not
success and the same
> > errors
> > Peter
> > ----- Original Message -----
> > From: Jan Ischebeck <address@hidden>
> > Date: Sat, 17 Jan 2004 12:27:18 +0100
> > To: address@hidden
> > Subject: Re: [GNUe] error in appserver
> >
> > > Hi Peter,
> > >
> > > it seems like the python xmlrpc module which is included into the
> > > standart python 2.3 and 2.2 distros is not included in mandrake 9.2
> > >
> > > You could check this by searching for the file xmlrpclib.py.
> > > In my case (Debian Unstable) it's at /usr/lib/python2.3/xmlrpclib.py.
> > >
> > > If its there please try to import it by doing a
> > >
> > > bash-2.05b$ python
> > > Python 2.3.3 (#2, Jan 13 2004, 00:47:05)
> > > [GCC 3.3.3 20040110 (prerelease) (Debian)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more
information.
> > > >>> import xmlrpclib
> > > >>>
> > >
> > > If this is working. You can test the gnue xmlrpc code itself with the
> > > gcvs (created by the setup-cvs.py script) utility:
> > >
> > > bash-2.05b$ gcvs
gnue-common/src/rpc/drivers/xmlrpc/py_xmlrpc/Driver.py
> > >
> > > I guess the problem is connected with xmlrpclib.py missing. If not,
> > > please send me the result of the gcvs test, then I can tell you more.
> > >
> > > Jan
> > >
> > >
> > > Am Sa, den 17.01.2004 schrieb Peter Dabrowski um 11:33:
> > > > Hi,
> > > > I got a problem with xmlrpc transport at gnue appserver after
upgrading my system
> > to
> > > > Mandrake9.2 with python2.3. I had reinstall all gnue modules after
upgrading
> > because
> > > > anything worked but it was quick and smooth. Only appserver doesn't
work.
> > > > Bellow error log. Anybody got a clue what went wrong?
> > >
> > > Yes, the driver xmlrpc.py_xmlrpc couldn't be loaded. :)
> > > > Peter
> > > >
> > > >
> > > > Exporting our services via xmlrpc.py_xmlrpc (port 8765) ...
> > > > DB000: Traceback (most recent call last):
> > > > DB000: File "/usr/local/bin/gnue-appserver", line 31, in ?
> > > > DB000: server.run ();
> > > > DB000: File
"/usr/local/gnue/lib/python/gnue/appserver/geasRpcServer.py", line
> > 158, in
> > > > run
> > > > DB000: {'SessionManager': self.requestSessionManager})
> > > > DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/GComm.py", line 184, in
> > bind
> > > > DB000: driver = _get_driver(interface, ALLDRIVERS,
> > 'gnue.common.rpc.drivers',lambda
> > > > x:x.SERVER==1 )
> > > > DB000: File
"/usr/local/gnue/lib/python/gnue/common/rpc/GComm.py", line 71, in
> > > > _get_driver
> > > > DB000: raise Exception, tmsg
> > > > DB000: Exception: No rpc driver found for provider type
'xmlrpc.py_xmlrpc'
> > > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Gnue mailing list
> > > address@hidden
> > > http://mail.gnu.org/mailman/listinfo/gnue
>
>
>
> _______________________________________________
> Gnue mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnue
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm