Menu

#1501 Unable to start STAF / import PySTAF module on Fedora 18

Unix::Linux
closed
7
2013-08-13
2013-07-30
Fearvel
No

I have installed STAF (linux-amd64, tried version 3.4.8 and 3.4.14) on my machine. I am unable to start STAF recieving this error: Could not open file :/usr/local/staf/codepage/alias.txt followed by segmentation fault.
I tried to install zlinux version, but it was missing PySTAF library, which I need for testing.

Steps to reproduce:
1. Have Fedora 18
2. Install STAF (doesn't matter if using InstallAnywhere or STAFInstall)
3. run python and try to import PySTAF / try to start STAF

Actual result:
Could not open file :/usr/local/staf/codepage/alias.txt

Expected result:
Should start STAF / import the module

Discussion

  • Sharon Lucas

    Sharon Lucas - 2013-08-01

    How did you install STAF? Which STAF installer file did you use to install STAF and did you follow the correct steps to install STAF as documented in the STAF Installation Guide at http://staf.sourceforge.net/current/STAFInstall.pdf. Note that if you used the STAF3414-linux-amd64.tar.gz file to install STAF, after extracting it to a temporary directory, you must run STAFInst to install STAF to /usr/local/staf (or to whatever target directory you specify).

    Also, before starting STAFProc, did you verify that the proper environment variables for STAF were set? If you use ". ./startSTAFProc.sh" in the /usr/local/staf directory to start STAFProc, it will run STAFEnv.sh first to set the environment variables for STAF.

    Other users have not had an issue starting STAFProc when STAF is properly installed and the environment variables for STAF are set.

    Also, note when installing STAF, did you choose a full install so that STAF Python install gets installed (a full install is the default)? Also, during the install (using either the InstallAnywhere file, e.g. STAF3414-setup-linux-amd64.bin or the tar.gz file, e.g. STAF3414-linux-amd64.tar.gz), you can specify which version of Python that you want to install STAF support for. On Linux AMD64, the default is to install STAF Python support for Python 2.2. If you are planning on using a later version of Python, then you can specify that when installing STAF. See the STAF Installation Guide at http://staf.sourceforge.net/current/STAFInstall.pdf for more information on how to specify the Python version during the STAF install. The library file for the version of Python that was selected as the default Python version during the STAF installation will have a link in /usr/local/staf/lib.

    Did you read section "3.0 Installation" in the STAF Python User's Guide at http://staf.sourceforge.net/current/STAFPython.htm#Header_Install? To configure STAF Python support, you need to set or update your PYTHONPATH environment variable. Note too that if you didn't specify the correct Python version to use during the STAF install, you can use the PYTHONPATH environment variable to set it. For example, if you wanted to use Python 2.6, you could set PYTHONPATH as follows:

    export PYTHONPATH=/usr/local/staf/lib/python26:/usr/local/staf/lib

    If you set up STAF Python support correctly, then it should work fine on your Fedora system. Post again with the answers to the questions I asked if you're still having an issue starting STAFProc or using STAF Python support after following the installation and configuration steps that I mentioned.

     
  • Sharon Lucas

    Sharon Lucas - 2013-08-13
    • status: open --> closed
    • assigned_to: Sharon Lucas
     
  • Sharon Lucas

    Sharon Lucas - 2013-08-13

    Closing this bug as the information requested almost 2 weeks ago has not been provided.

    If this bug was not fixed by my suggestions, reopen and provide the information requested.

     
  • bfurey

    bfurey - 2013-08-13

    I am out of the office until 26/08/2013.

    For any Expertise Locator queries, Please contact Conor Mcgrath/Ireland/IBM

    Regards
    Brendan

    Note: This is an automated response to your message "[staf:bugs] #1501
    Unable to start STAF / import PySTAF module on Fedora 18" sent on
    13/08/2013 20:04:23.

    This is the only notification you will receive while this person is away.

     

Log in to post a comment.