Hi Jennifer,

2007/5/2, Jennifer Cranfill <[EMAIL PROTECTED]>:
>
> I'm new to openwfe, but very excited about the possibilities it
> presents. I'm trying to setup a small python script that can connect
> to openwfe, but I'm having trouble connecting.
>
> Here is my script:
> from openwfe.workitem import codec
> from openwfe.workitem import StringAttribute
> from openwfe.workitem import FlowExpressionId
> from openwfe.rest.wlclient import WorkSession
>
> workSession = WorkSession('localhost', 5080, 'bob', 'bob')
>
>
> Here is the error I get:
> Traceback (most recent call last):
>   File "openwfe-example.py", line 10, in ?
>     workSession = WorkSession('localhost', 5080, 'bob', 'bob')
>   File "/shots/spi/tas/src/bright/workflow/openwfe-python-1.7.2-src/
> openwfe/rest/wlclient/__init__.py", line 65, in __init__
>     self.sessionId = getSession(self.url, username, password)
>   File "/shots/spi/tas/src/bright/workflow/openwfe-python-1.7.2-src/
> openwfe/rest/__init__.py", line 151, in getSession
>     f = urlopen(request)
>   File "/usr/local/lib/python2.4/urllib2.py", line 130, in urlopen
>     return _opener.open(url, data)
>   File "/usr/local/lib/python2.4/urllib2.py", line 364, in open
>     response = meth(req, response)
>   File "/usr/local/lib/python2.4/urllib2.py", line 471, in
> http_response
>     response = self.parent.error(
>   File "/usr/local/lib/python2.4/urllib2.py", line 402, in error
>     return self._call_chain(*args)
>   File "/usr/local/lib/python2.4/urllib2.py", line 337, in _call_chain
>     result = func(*args)
>   File "/usr/local/lib/python2.4/urllib2.py", line 480, in
> http_error_default
>     raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 500: Server Error
>
> I have a fairly standard install, was there something I needed to
> start before trying to connect with python? the webclient is working.
> Any help would be greatly appreciated. Thanks!

The root error should be listed in logs/worklist.log. There should be
an exception stack trace there stating what's going wrong.

I don't know if you work in a Python-only shop, but have you checked
OpenWFEru (http://openwferu.rubyforge.org) ? OpenWFE main effort has
switched from Java to there.


Best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFE users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to