scalene: Scalene is completely broken on my system.

Describe the bug When trying to profile my project, it waits a bit, then outputs this and exits.

Error in program being profiled:
 maximum recursion depth exceeded while calling a Python object
Scalene: Program did not run for long enough to profile.

The project by itself works fine, and other profilers (like Palanteer) work as they should. To Reproduce 0. Use Python 3.11.1 and Windows 11

  1. Create a script named file.py with only
import numpy as np
  1. Do scalene file.py Program will say that a maximum recursion depth has been exceeded.

Desktop (please complete the following information):

  • OS: Windows 11
  • Scalene version: repository version
  • Python version: 3.11.1

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (4 by maintainers)

Most upvoted comments

Confirming-- because of a bug in CPython’s frame reclamation process in 3.11.0, we will never be able to support it. Please use 3.11.1 or later (or a version of 3.9 or 3.10, if you’d like)

This fix is also not in v1.5.19, you could install from source (pip3 install git+https://github.com/plasma-umass/scalene.git, if I recall the exact incantation) or we could push up a release