pyinstrument icon indicating copy to clipboard operation
pyinstrument copied to clipboard

ModuleNotFoundError: No module named 'pyinstrument.low_level.stat_profile'

Open wjunneng opened this issue 3 years ago • 3 comments

version:pyinstrument 4.2.0 pypi_0 pypi Python 3.7.13

from pyinstrument import Profiler profiler = Profiler() profiler.start() ... profiler.stop() profiler.print()

raise ModuleNotFoundError: No module named 'pyinstrument.low_level.stat_profile'

wjunneng avatar Jul 28 '22 03:07 wjunneng

try: conda install -c conda-forge conda-forge::pyinstrument

success!!!

wjunneng avatar Jul 28 '22 04:07 wjunneng

How were you installing pyinstrument to get the above error?

That module is compiled, so it seems like the compilation step was missing in however you installed it.

joerick avatar Aug 09 '22 11:08 joerick

try: conda install -c conda-forge conda-forge::pyinstrument

success!!!

@wjunneng Does this mean you solved this issue?

WMRamadan avatar Sep 17 '22 12:09 WMRamadan

Closed, feel free to reopen if there's still an issue.

joerick avatar Nov 05 '22 11:11 joerick