unihd-cag / skillbridge

A seamless python to Cadence Virtuoso Skill interface
https://unihd-cag.github.io/skillbridge/
GNU Lesser General Public License v3.0
181 stars 38 forks source link

PYTHON: python: symbol lookup error: python: undefined symbol: _Py_LegacyLocaleDetected #201

Closed MastellaM closed 1 year ago

MastellaM commented 1 year ago

While running the script with Cadence I encountered this error after i enter pyStartServer.

Cadence is running in the terminal with the source venv and the load has been correctly prompted. What are we doing wrong? Could you please help us figuring out the problem?

Thank you very much and congratulations for the nice job! Michele

nielsbuwen commented 1 year ago

This is a problem we observed in the past. We don't know the exact cause. It seems that python cannot start in certain environments.

We can't fix the actual cause, because it is a python problem.

There is a workaround however: Start the skillbridge server with pyStartServer ?python "LD_LIBRARY_PATH= python".

Copy the command exactly like that. It clears the LD_LIBRARY_PATH environment variable before running python.