Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TypeError: dist must be a Distribution instance

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.

Any solution is very appreciated.

Roland

TypeError: dist must be a Distribution instance

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