Hi guys,

Someone delete something or change the environment setting in my working 
station(Linux BlueVista 2.6.18-53.el5, Red Hat), and when I run STAF 
scripts, it shows: 
...File "/home/staf/bin/PySTAF.py", line 9, in ?
    import PYSTAF
ImportError: Bad magic number in /home/staf/bin/PYSTAF.pyc

Because the one who built this STAF environment is N/A, I have no idea of 
the original environment setting. And I find that PYSTAF.so might be 
missing from the STAF User Guide as follows:




Hence, the first question is that "how to handle this PYSTAF.pyc/so 
missing issue?"


I tried a little, and copied PYSTAF.so from /usr/local/staf/lib/python30 
to the script running directory. And this time, the error is as follows:
...import PYSTAF
ImportError: /home/staf/bin/PYSTAF.so: undefined symbol: PyModule_GetState

Will this way be working? I still can't find any matching python-devel 
package to solve this PyModule_GetState missing problem. 

Besides, the working python version is actually python2.7, but only 
PYSTAF.so from /usr/local/staf/lib/python30 matches the python version.


Does someone encounter this problem before? I will appreciate it if you 
give me a hint. Many thanks.


Best regards,
Ye, Ying Ying(叶莹莹)
Software engineer, 3rd-party SAN test
IBM GCG System & Technology Lab
Tel:+86-21-60928963
Email: ying...@cn.ibm.com
Add: 1F, Building#10, NO.399 Ke Yuan Road, Zhangjiang Innovation Park, 
201203, Shanghai, China

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&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