Xcelium: Fatal Python error: Py_Initialize: Unable to get the locale encoding #2730
|
I'm currently contracted at a client that uses Xcelium to simulate their designs. After the design got fairly sizable, we started running into an issue where The full error message was: Curiously, the newest Python containing the |
Replies: 2 comments 9 replies
|
So in order to mark this thread as solved: Upgrading our Python installation from 3.6 to 3.8 mitigated this error message. I'm still not entirely sure what the actual underlying issue is, unfortunately. |
|
I sincerely doubt this has anything to do with limitations of Python version, but is in fact an environment problem. Upgrading your Python worked-around the problem by installing cocotb into a version of Python equivalent to the version that ships with Xcelium, so that setting There are a bunch more questions to ask about why it started to fail (did you upgrade Xcelium along the way?), and why it's failing at all. We added a bunch of additional logic to prevent the incorrect loading of libpython in these simulators. It might be that your environment isn't set up correctly and it's using the default behavior of loading whatever libpython it can find (it's usually the one bundled with the simulator) instead of the one specified using We have had a bunch of problems with Xcelium and environment configuration (they just can't get it right). And I'm going to recommend users start installing cocotb into the Python included in their Xcelium installs, as it seems to be including relatively modern versions of Python. |
So in order to mark this thread as solved:
Upgrading our Python installation from 3.6 to 3.8 mitigated this error message. I'm still not entirely sure what the actual underlying issue is, unfortunately.