Bug#1033593: spyder: does not allow running profiler and says "Please install the Python profiler modules"

Julian Gilbey julian at d-and-j.net
Sun Apr 9 11:07:10 BST 2023


On Mon, Mar 27, 2023 at 06:34:27PM -0300, Patrick Zanon wrote:
> Package: spyder
> Version: 5.4.2+ds-5
> Severity: important
> X-Debbugs-Cc: neant at libero.it
> 
> 
> Dear Maintainer,
> 
> I'm trying to use spyder's profiling tools, but when I try to run code with the
> profiler, the menu item is greyed out. Also if I enable profiler pane display, 
> Spyder says "Please install python profiler modules".
> 
> In my installation I have:
>    * python3 which provides the python-profiler virtual package
>    * python3-line-profiler
>    * python3-p profile
> 
> If I try to run the "import cProfile" line it's fine with no errors; same goes 
> if I run "import profile".
> 
> I would expect to be able to run the code from both the "Run - Run profiler" 
> menu item, and to be able to add files in the profiler pane, but neither of 
> those things happen.
> 
> Thanks
> P.Z.

Dear Patrick,

Unfortunately, python3-line-profiler was not in testing at the time of
the freeze, so I was unable to update python3-spyder-profiler for
bookworm and test that it all works.  I intend to do it for trixie
once bookworm has released.

In the meantime, if you cannot get it to work with the current version
of spyder in testing, you may have more success if you run spyder
within a virtual environment pulling in packages directly from PyPI.

I'm sorry to be unable to help further at this point in time.

Best wishes,

   Julian



More information about the debian-science-maintainers mailing list