Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
its5Q opened this issue May 28, 2021 · 3 comments
Open

Comments

@its5Q
Copy link

its5Q commented May 28, 2021

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
Copy link

i just hit this as well.

@mattip
Copy link
Contributor

mattip commented Jul 10, 2021

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

@mattip
Copy link
Contributor

mattip commented Jul 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants