I have no issues running a Python script that submits STAF requests.

What operating systems are you using?
What version of STAF are you using?
What version of Python are you using?

My guess is that you don't have all the STAF environment variables set 
correctly in the environment in which you are running the Python program 
(or in the environment in which you are running STAFProc).  I recommend 
that you run STAFEnv.sh to set the STAF environment variables in the 
environment from which you are running your Python script.  For example, 
on Unix:

# . ./STAFEnv.sh
# python yourscript.py

Also, make sure that you have set the PYTHONPATH environment variable to 
point to the correct STAF Python library (before running your Python 
script).  This is talked about in the STAF Python User's Guide at 
staf.sourceforge.net/current/STAFPython.htm#Header_Install.  For example, 
on Unix:

# export PYTHONPATH=/usr/local/staf/lib:$PYTHONPATH

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   bab mis <bab...@outlook.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   09/23/2013 10:18 AM
Subject:        Re: [staf-users] STAFConnectionProviderConnect:Error 
performing test read on connected endpoint



Guys after changing the firewall setup it worked properly with the pytrhon 
prompt but still fails through programme. Still i am not able diagnose the 
problem, it's not setup issue as from command line it works seemlesly, not 
library issue as works from python prompt. 

From: bab...@outlook.com
To: staf-users@lists.sourceforge.net
Subject: RE: STAFConnectionProviderConnect:Error performing test read on 
connected endpoint
Date: Mon, 23 Sep 2013 19:50:32 +0530

Please ignore the error , it was firewall issue.

From: bab...@outlook.com
To: staf-users@lists.sourceforge.net
Subject: STAFConnectionProviderConnect:Error performing test read on 
connected endpoint
Date: Mon, 23 Sep 2013 19:03:16 +0530

Hi ,
for following python code i am getting ssl error :

result = self.handle.submit( host,service,command ) 

result': 'STAFConnectionProviderConnect: Error performing test read on 
connected endpoint: recv() RC=113: 22, Endpoint: ssl://110.15.32.115


same thing works fine in python prompt 

>>> from PySTAF import *
>>> handle = STAFHandle("MyTest")
>>> result = handle.submit("110.15.32.115","ping", "ping")
>>> print result.__dict__
{'resultContext': PONG, 'resultObj': 'PONG', 'result': 'PONG', 'rc': 0}


Any clue ?? 
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, 
SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack 
includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to