Error: *setvalue

Halil
Halil Altair Community Member
edited August 2023 in Community Q&A

Hi, 

I am running tcl with batch mode from Python and everything works fine. However, when I convert python script into .exe file and run the file I got an error. I checked library given below and the file exist in the path given below.

"TclInterpInit: couldn't load library "C:Program Files/Altair/2021.2/hwdesktop/hw/rData/bin/win64/rDataTcl.dll": this library or a dependent library could not be found in library path"

Error: *setvalue: Could not modfiy value for dataname/attribute: init 0

     while executing

"*setvalue results id=$resultid init=1" 

Can anyone help?

Thank you.

Answers

  • Rishabh
    Rishabh
    Altair Employee
    edited August 2023

    Hello Halil

    This path "C:Program Files/Altair/2021.2/hwdesktop/hw/rData/bin/win64/rDataTcl.dll" seems to be incorrect. It's missing a backslash after C: . The correct path should be                                                                                    C:/Program Files/Altair/2021.2/hwdesktop/hw/rData/bin/win64/rDataTcl.dll. 

    Can you check code if this path is hard coded ?

     

  • Halil
    Halil Altair Community Member
    edited August 2023

    Hello Rishabh,

    Thanks for the response. I only give the location of "hmbatch.exe" file and the location starts with "C:/Program Files" as you said. 

    Furthermore, I solved the issue. I was using PyInstaller to convert the script into .exe file. It is most probably because of PyInstaller since when I use cx_Freeze for the conversion, everything works fine.

    Thanks anyway.

     

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.