Personal tools
You are here: Home Forum Install & build Problems when upgrading from Ubuntu 11.04 to 11.10

Problems when upgrading from Ubuntu 11.04 to 11.10

Up to Install & build

Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by Stefano Bove at October 15. 2011

Hi,

I had Salome successfully installed and working on Ubuntu 11.04. After upgrading to Ubuntu 11.10 I get the following error when launching Salome:

 

Traceback (most recent call last):
  File "/home/stefano/Salome-V6_3_1_public_64bit/SALOME6/V6_3_1/KERNEL_V6_3_1p1/bin/salome/runSalome.py", line 680, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/home/stefano/Salome-V6_3_1_public_64bit/SALOME6/V6_3_1/KERNEL_V6_3_1p1/bin/salome/runSalome.py", line 505, in startSalome
    myServer=NotifyServer(args,modules_root_dir)
  File "/home/stefano/Salome-V6_3_1_public_64bit/SALOME6/V6_3_1/KERNEL_V6_3_1p1/bin/salome/runSalome.py", line 389, in __init__
    myLogName = os.environ["LOGNAME"]
  File "/home/stefano/Salome-V6_3_1_public_64bit/SALOME6/V6_3_1/../prerequis/Python-266/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'LOGNAME'


--- Error during Salome launch ---

 

Any suggestions on how to fix this problem?

 

Thanks

Regards

Stefano

Re: Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by Sego at October 16. 2011

Hello,

I also confirm this. After upgrading to Ubuntu 11.10 Salome and SALOME-MECA doesn't start anymore. Probably it has something to do with the changed file system in a new multiarch architecture.

Can somebody provide a solution to this? Never less I keep also running the Ubuntu 10.04 LTS so it is not a major problem for me.

Best regards,

Sergej

Re: Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by DAVID Gilles at October 16. 2011

Hello,

It seems to be a bug in oneiric. The env variable LOGNAME is no more set.

Please add the following line in the file ~/.bashrc :

export LOGNAME=`logname`

Then try to launch Salome again from a new console.

Regards,

Gilles

Re: Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by DAVID Gilles at October 16. 2011
Hello, It seems to be a bug in oneiric. The env variable LOGNAME is no more set. Please add the following line in the file ~/.bashrc : export LOGNAME=`logname` Then try to launch Salome again from a new console. Regards, Gilles

Re: Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by DAVID Gilles at October 17. 2011

I confirm that the work-around works fine.

To avoid to modification of your ~/.bashrc file, you can also add the following lines into the file [SALOMEDIR]/SALOME6/V6_3_1/prerequis_v6_3_1.sh:

if [ "x${LOGNAME}" = "x" ]; then

  echo "LOGNAME is empty: set value to `logname`"

  export LOGNAME=`logname`

fi

In the next version of Salome, those lines will be added by default.

Re: Problems when upgrading from Ubuntu 11.04 to 11.10

Posted by Sego at October 17. 2011

Hi Gilles,

thank you very much, it works. 

Sergej

 

Previously DAVID Gilles wrote:

I confirm that the work-around works fine.

To avoid to modification of your ~/.bashrc file, you can also add the following lines into the file [SALOMEDIR]/SALOME6/V6_3_1/prerequis_v6_3_1.sh:

if [ "x${LOGNAME}" = "x" ]; then

  echo "LOGNAME is empty: set value to `logname`"

  export LOGNAME=`logname`

fi

In the next version of Salome, those lines will be added by default.

 

Powered by Ploneboard
Document Actions