🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Error: *setvalue

User: "Halil"
Altair Community Member
Updated by Halil

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.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Rishabh"
    Altair Employee
    Updated by Rishabh

    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 ?

     

    User: "Halil"
    Altair Community Member
    OP
    Updated by Halil

    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.