SiLab-Bonn / pylandau

Simple Landau distribution definitions to be used in Python.
GNU Lesser General Public License v2.1
20 stars 5 forks source link

TypeError: 'NoneType' object is not callable #27

Open AndrejNovak opened 2 years ago

AndrejNovak commented 2 years ago

Hi, after succesfull installation of pylandau I get this error when trying to run fit.py example. Does anyone know how to solve this?

File "pyLandau\cpp\pylandau.pyx", line 9, in init pylandau File "pyLandau\cpp\pylandau.pyx", line 9, in __Pyx_PyMODINIT_FUNC PyInit_pylandau(void)
TypeError: 'NoneType' object is not callable

leloup314 commented 2 years ago

Hi @AndrejNovak! Thanks for using the issue tracker. Could you provide some more information e.g. Python version, OS, how you installed pylandau?

AndrejNovak commented 2 years ago

I am using Win10, Python version 3.10.2 with required packages already satisfied (scipy=1.8.0, numpy=1.22.2 and cython=0.29.32). I installed pylandau using pip (version 22.2.2).

leloup314 commented 2 years ago

I tried to reproduce the issue on Windows 10, unfortunately with no luck (also only with Py3.9.7). We test also for Python 3.10 on Windows, but we are not testing the examples if I remember correctly. Are you installing pylandau into a dedicated environment? If not I would recommend to install miniconda and create an isolated python environment in which you can install and check if the error still occurs. In the meantime I will add the examples to the tests

KoljaFrahm commented 1 year ago

I have the same problem when trying to run it with python debugger (python -m pdb plot.py) or in debug modus in VSCode. If I run it normally, it works, but I can't debug my code anymore.