Encrypting Python Script in 3DEC

Hi Everyone,

I have tried to use “program encrypt” command to encrypt a Python file.
The command works and creates the encrypted file, but I cannot call the encrypted file again using “program call” command. Please let me know if there is a specific command to run the encrypted Python files.
I am getting the following error:
image

Thanks,
Mahdi

can you share the command you are using? looking at the error message, i assume you have an “import” word in your command

it should be:

program call ‘filename.edat’ (filename is your actual file name)

@ Matías
Thanks for your reply.
I am using the following code for encryption. The name of encrypted file is ‘01 py_csv_read_encrypted’. It generates this file with .edat extension.

program encrypt '01 csv_read.py' '01 py_csv_read_encrypted'

I use the following code to call the encrypted Python code:

model new
program call '01 py_csv_read_encrypted.edat'

Please let me know if you can send me a simple example like this that works well.

i never used that command to encrypt a python function, and i do not know if the command works for .py extension