Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not callable #27

Open
AndrejNovak opened this issue Aug 17, 2022 · 4 comments
Open

TypeError: 'NoneType' object is not callable #27

AndrejNovak opened this issue Aug 17, 2022 · 4 comments

Comments

@AndrejNovak
Copy link

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
Copy link
Member

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

@AndrejNovak
Copy link
Author

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
Copy link
Member

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants