cancel
Showing results for 
Search instead for 
Did you mean: 

Journaling Error Linux

Experimenter
Experimenter

I want to run a journal under linux using a shell script. I always get the following error message:

 

====================================================

Failed to handle error condition correctly - exiting

Cannot get package name information from the product file DefaultProduct.cmf. Package module cannot be initialized.

====================================================

====================

Fatal error detected

====================

 

Can anyone help me?

8 REPLIES

Re: Journaling Error Linux

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Good morning. I assume that you are using NXOpen Python, because that is the only language that will allow you to run a Journal on Linux without building the code first.

 

To run a Python journal on Linux, from outside of NX, you will need to use the "run_journal" utility.

 

We have some notes about this in the NX10 Release Notes.

 

 

 

Re: Journaling Error Linux

Experimenter
Experimenter

Unfortunately I cannot find any useful information in the release notes. 

 

What I did so far:

I created a journal on my windows machine and I want now to run this journal on the linux machine. I have tested the journaling on my windows machine and it works correctly. I have changed the machine due to insufficient performance of my computer. According to the release notes a change of the OS should be possible since the language is still phyton (That's what I understand).

 

 

On Linux I want to start the simulation with a script containing the following code :

 

 

#!/bin/bash 
cd /share/soft/NX_inst/nx100/ugii/ 
LD_LIBRARY_PATH=/share/soft/NX_inst/nx100/ugii 
export LD_LIBRARY_PATH 
./run_journal /myNXprojects/myjournal.vb

 

I had to add the lines 

cd /share/soft/NX_inst/nx100/ugii/ 
LD_LIBRARY_PATH=/share/soft/NX_inst/nx100/ugii 

to access the shared library. Without these two lines i recieve a error:

./run_journal: error while loading shared libraries: libsyss.so: cannot open shared object file: No such file or directory

By now I don't know why the error occurs. In my opinion there are three possibilities:

- There is an error in the script above.

- The error occurs due to missing permissions on the linux machine 

- The installation of the NX on the linux machine was not executed correctly. The comparison between the linux installation and the windows installation of the NX has shown, that most of the folders i have on my windows machine are compressed tra.gz files on the linux machine. I don't know if this is a problem. 

 

Do you have an advise, what I can do know? Is there somwhere a documenation, in which all error codes are listed?

Re: Journaling Error Linux

Phenom
Phenom

You wrote:

./run_journal /myNXprojects/myjournal.vb

It looks like you are trying to execute a VB journal not a Python journal. VB is not supported on Linux.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: Journaling Error Linux

Experimenter
Experimenter

Is it somehow possible to convert this .vb to python? Or do I have to create an journal?

Re: Journaling Error Linux

Phenom
Phenom
There is no automatic conversion. You could manually convert it, the calls to the NXOpen stuff should be pretty similar. I don't have Linux or Python, so I'm not sure how hard it would be though.
If it is a small Journal, I'd recommend re-recording it in Python.
Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: Journaling Error Linux

Siemens Phenom Siemens Phenom
Siemens Phenom

@degin, to re-record, set your journal preference in NX to Python, start a new journal recording (in Python), then play the .vb journal.

Re: Journaling Error Linux

Experimenter
Experimenter

Thanks for your help.

 

Unfortunately my problem is still not solved. I still recieve the same error message.

 

====================================================
Failed to handle error condition correctly - exiting
Cannot get package name information from the product file DefaultProduct.cmf. Package module cannot be initialized.
====================================================
====================
Fatal error detected
====================

Re: Journaling Error Linux

Siemens Phenom Siemens Phenom
Siemens Phenom

 

Here is a more specific map to the information in the Release Notes about NXOpen Python:

 

NX 10 Release Notes

 

   NX 10 Caveats and Product Notes

 

        Programming Tools

 

            Product Notes

 

You will have to scroll down a bit.

 

Be sure that the shell window where you are trying to execute run_journal has all of the required UGII_... and UGS_... variables defined.

 

If you still can't get it to work, please log an IR with GTAC.

 

Thanks!