maximum recursion depth exceeded while calling a Python object #592
-
I recently installed scalene on Windows 11, Python 3.11, default install I believe. I tested the following very simple program. Any suggestions how to get this to work? |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 5 replies
-
I ran your test program successfully on Mac and Windows. Might need some version info to see what's going on. Here's the exact code I used.
I used the command line (Minor note, Scalene will ignore the |
Beta Was this translation helpful? Give feedback.
-
Just ran successfully on Windows 11 with Python 3.10.10. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick update. I upgraded to Python 3.11.2, rebooted for good measure. No luck. Now I get an 'Unknown Error'.
|
Beta Was this translation helpful? Give feedback.
-
I cannot reproduce this error no matter what I do. I'm on ARM64, running Python installed via the installer on python.org. I do not have a GPU on this machine (a Mac). Maybe that is playing a role. Try running with |
Beta Was this translation helpful? Give feedback.
-
It is puzzling. This morning I updated Windows, drivers etc. The error is now again maximum depth. I just tried --src, no difference.
|
Beta Was this translation helpful? Give feedback.
-
Scalene seems to run the intended program. If I give an non-existing file, Scalene complains about it.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It must have something to do with the range. If I run it with range(300) I get the following.
|
Beta Was this translation helpful? Give feedback.
-
I just tried this on a fresh Windows 11 instance on Azure (x64), Python 3.11.2, works fine. Are you on a dedicated or shared machine? Can you run as admin? |
Beta Was this translation helpful? Give feedback.
-
Another observation. This runs fine. |
Beta Was this translation helpful? Give feedback.
-
35_000 works seemingly; 70_000 gives complaints about stack depth. Something to do with a stack depth setting somewhere? |
Beta Was this translation helpful? Give feedback.
-
To all. Mr. Berger was very helpful. What happened I initially installed scalene under Python 3.11.0 - problems. Then I upgraded to Python 3.11.2 - still problems. Mr. Berger did a number or experiments on my computer, he suggested to uninstall scalene and reinstall it under 3.11.2, and everything worked fine. |
Beta Was this translation helpful? Give feedback.
To all. Mr. Berger was very helpful. What happened I initially installed scalene under Python 3.11.0 - problems. Then I upgraded to Python 3.11.2 - still problems. Mr. Berger did a number or experiments on my computer, he suggested to uninstall scalene and reinstall it under 3.11.2, and everything worked fine.