I am executing a notebook on my laptop and I get the following error.
XXX lineno: 17, opcode: 120
---------------------------------------------------------------------------
SystemError Traceback (most recent call last)
Input In [3], in <cell line: 3>()
1 gym = Gym(0, 0, 0, 0).from_dill(BACKUP)
2 ticker = gym.api.returnTicker()
----> 3 gym.wallet = gym.get_wallet()
4 plot_donut_gym_wallet(gym)
5 plot_donut_gym_wallet_makers(gym)
File <ipython-input-3-1c4842a503bf>:17, in get_wallet(self)
SystemError: unknown opcode
As you can see, the error happens during a function call. The function itself is not the problem, if I define and run ithe function inside a cell it simply works. But importing the function from its own module leads to this error. I have looked around for hints, all the forum I have read are pointing to some problem with having multiple Python installations. However, I tried using new environments, both using venv and conda and I get the same error. The same code on other machines works, so it appear to be something related to my particular installation, but I can't figure out how to fix it. I tried reinstalling conda, making new envs, upgrading python. Iteted this with Python 3.8, 3.9 and 3.10, I always get the same error. Any help is very welcome.
Since the function is from a class previously serialized using dill
, this dill-related issue may be relevant https://github.com/uqfoundation/dill/issues/438