vmprof-python icon indicating copy to clipboard operation
vmprof-python copied to clipboard

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

Open its5Q opened this issue 3 years ago • 3 comments

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

its5Q avatar May 28 '21 09:05 its5Q

i just hit this as well.

m1sterzer0 avatar Jul 10 '21 16:07 m1sterzer0

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

mattip avatar Jul 10 '21 21:07 mattip

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 avatar Jul 10 '21 21:07 mattip