I am trying to run a python3 version script from CIW through system command. It ends up with the below error.
Error: /bin/python3: symbol lookup error: /bin/python3: undefined symbol: _Py_LegacyLocaleDetected
I can run the command "/bin/python3 myScript.py" through terminal without any issue.
It runs fine from CIW, If I use python version1.
Anyone has any idea ?
I don't see this with the python3 build I am using, with IC6.1.8 ISR25. Which IC sub-version are you using?
I found some reports of similar issues with $system() being used from XCELIUM, and in that case it was related to the LD_LIBRARY_PATH additions made by the XCELIUM wrappers; similar things might be happening with Virtuoso.
You probably could just do:
system("LD_LIBRARY_PATH=/lib /bin/python3 myScript.py")
I found the solution, Instead of /bin/python3, I have to just use python3. This fixed the issue.