vmprof / vmprof-python

vmprof - a statistical program profiler
https://vmprof.readthedocs.io
Other
432 stars 55 forks source link

"No module named _vmprof" error on Windows 10 x64 + pypy-jit latest nigthly #234

Closed its5Q closed 2 months ago

its5Q commented 3 years ago

I wanted to profile my script because it was 3 times slower running in PyPy than in python, and I ran into this issue. I installed vmprof and tried to run it with my script, but I got an error, here's the output:

# pypy3 -m vmprof --web preprocess_data.py

Traceback (most recent call last):
  File "...\pypy-c-jit-102448-3176908cd9d2-win64\lib-python\3\runpy.py", line 186, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "...\pypy-c-jit-102448-3176908cd9d2-win64\lib-python\3\runpy.py", line 145, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "...\pypy-c-jit-102448-3176908cd9d2-win64\lib-python\3\runpy.py", line 109, in _get_module_details
    __import__(pkg_name)
  File "...\pypy-c-jit-102448-3176908cd9d2-win64\site-packages\vmprof\__init__.py", line 8, in <module>
    import _vmprof
ModuleNotFoundError: No module named '_vmprof'

Is it something with my installation or is the package broken? The only similar issue to that one is #24

m1sterzer0 commented 3 years ago

i just hit this as well.

mattip commented 3 years ago

_vmprof is not enabled in the PyPy windows build. In the line that disables it there is the comment # FIXME: missing details.

mattip commented 3 years ago

Please file an issue on the PyPy issue tracker with a minimal reproducer of the script that is slower on PyPy than on CPython.

mattip commented 2 months ago

Closing, the issue should be filed against PyPy.