[pygridware-discuss] start-container.sh problem solved, ZSI.twisted build

From: Ziad Rahhal <ziad.rahhal_at_gmail.com>
Date: Thu Jul 27 2006 - 14:09:44 PDT

The problem I got (see below) when starting "start-container.sh" was solved
this way:

while installing ZSI do: python setup.py build --twisted
before issuing: python setup.py install

This is apparently what they mean by "Please see README, if building from
source make sure to build the ZSI.twisted package." in
http://dsd.lbl.gov/gtg/projects/pyGridWare/doc/tutorial/html/c622.html (this
tutorial is also in the doc folder coming with pyGridWare package)
unfortunatly this isn't mentioned in the README as they suggest, I had to
look it up in google

And by the way, to insure a successful installation of all the pre-requisits
and even pyGridWare itself, always install them in you directory tree using
--prefix as was suggested to me regards the twisted package.

Hope this can help future users of pyGridWare.

Regards,
Ziad

---------- Forwarded message ----------
From: Keith Jackson <KRJackson@lbl.gov>
Date: Jul 26, 2006 11:35 PM
Subject: Re: [pygridware-discuss] start-container.sh problem
To: Ziad Rahhal <ziad.rahhal@gmail.com>
Cc: pygridware-discuss@george.lbl.gov

Comments inline.
On Jul 26, 2006, at 8:00 AM, Ziad Rahhal wrote:

Hi,

I have installed everything required to work with pyGridWare. And
wsdl2web.py was successful as well. But when I run
./start-container.sh I get the following error:

2006/07/26 16:46 CEST [-] Log opened.
2006/07/26 16:46 CEST [-] twistd 2.4.0 (/home/rahhal/python/bin/python 2.4.3)
starting up
2006/07/26 16:46 CEST [-] reactor class: <class '
twisted.internet.selectreactor.SelectReactor'>
2006/07/26 16:46 CEST [-] Loading server-config.tac...
2006/07/26 16:46 CEST [-] Traceback (most recent call last):
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/application/app.py",
line 159, in getApplication
2006/07/26 16:46 CEST [-] application = service.loadApplication(filename,
style, passphrase)
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/application/service.py",
line 301, in loadApplication
2006/07/26 16:46 CEST [-] application = sob.loadValueFromFile(filename,
'application', passphrase)
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/persisted/sob.py",
line 206, in loadValueFromFile
2006/07/26 16:46 CEST [-] exec fileObj in d, d
2006/07/26 16:46 CEST [-] File "server-config.tac", line 54, in ?
2006/07/26 16:46 CEST [-] from
pyGridWare.services.SubscriptionManagerimport SubscriptionManager as
SMServiceBinding
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/services/SubscriptionManager.py",
line 6, in ?
2006/07/26 16:46 CEST [-] from
pyGridWare.generated.services.submanagerservice.SubscriptionManagerService\
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/generated/services/submanagerservice/SubscriptionManagerService.py",
line 10, in ?
2006/07/26 16:46 CEST [-] from
pyGridWare.generated.services.stubs.submanagerservice.SubscriptionManagerServiceimport
*
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/generated/services/stubs/submanagerservice/SubscriptionManagerService.py",
line 8, in ?
2006/07/26 16:46 CEST [-] from pyGridWare.utility.web.resource import
WSResource
2006/07/26 16:46 CEST [-] File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/utility/web/resource.py",
line 37, in ?
2006/07/26 16:46 CEST [-] from ZSI.twisted.WSresource import WSResource
as _WSResource,\
2006/07/26 16:46 CEST [-] ImportError: No module named twisted.WSresource
2006/07/26 16:46 CEST [-] Failed to load application: No module named
twisted.WSresource
2006/07/26 16:46 CEST [-] Traceback (most recent call last):
          File "/home/rahhal/python/bin/twistd", line 25, in ?
            run()
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/scripts/twistd.py",
line 205, in run
            app.run(runApp, ServerOptions)
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/application/app.py",
line 278, in run
            runApp(config)
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/scripts/twistd.py",
line 195, in runApp
            application = app.getApplication(config, passphrase)
        --- <exception caught here> ---
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/application/app.py",
line 159, in getApplication
            application = service.loadApplication(filename, style,
passphrase)
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/application/service.py",
line 301, in loadApplication
            application = sob.loadValueFromFile(filename, 'application',
passphrase)
          File
"/home/rahhal/python//lib/python2.4/site-packages/twisted/persisted/sob.py",
line 206, in loadValueFromFile
            exec fileObj in d, d
          File "server-config.tac", line 54, in ?
            from pyGridWare.services.SubscriptionManager import
SubscriptionManager as SMServiceBinding
          File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/services/SubscriptionManager.py",
line 6, in ?
            from
pyGridWare.generated.services.submanagerservice.SubscriptionManagerService\
          File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/generated/services/submanagerservice/SubscriptionManagerService.py",
line 10, in ?
            from
pyGridWare.generated.services.stubs.submanagerservice.SubscriptionManagerServiceimport
*
          File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/generated/services/stubs/submanagerservice/SubscriptionManagerService.py",
line 8, in ?
            from pyGridWare.utility.web.resource import WSResource
          File
"/home/rahhal/python//lib/python2.4/site-packages/pyGridWare/utility/web/resource.py",
line 37, in ?
            from ZSI.twisted.WSresource import WSResource as _WSResource,\
        exceptions.ImportError: No module named twisted.WSresource

Failed to load application: No module named twisted.WSresource
2006/07/26 16:46 CEST [-]

Looks like you have not installed twisted.web. (
http://twistedmatrix.com/projects/web/)

Also in the tutorial they say to put the SimpleMathService.py (the service
implementation) somewhere in the PYTHONPATH. I didn't get that clear.

Here's a link to the python tutorial that explains what PYTHONPATH is.
http://www.python.org/doc/current/tut/node8.html#SECTION008110000000000000000

Hope that helps,
--keith

I hope someone can help me with this. Once I can run a simple example, i
will be sure my installation is right.

Thank you.
Received on Thu Jul 27 14:09:54 2006

This archive was generated by hypermail 2.1.8 : Sat Oct 28 2006 - 10:51:25 PDT