TypeError: dist must be a Distribution instance

asked 2021-07-22 10:33:18 +0200

roland gravatar image

updated 2021-07-22 15:21:30 +0200

Hi,

Suddenly, using Cython magic, I got the message "TypeError: dist must be a Distribution instance".

I use Sage 9.3 Ubuntu with Jupyter and compile via %%cython -a.

I tried an other ipynb file, and there was no problem using Cython...
Only one ipynb file seems to have this problem.

Further research shows that the probable cause is the use of cython_lambda.

Any solution is very appreciated.

Roland

edit retag flag offensive close merge delete

Comments

You should provide more details on how to reproduce the issue. What is different with that ipynb file ?

tmonteil gravatar imagetmonteil ( 2021-07-22 14:29:25 +0200 )edit