Skip to content

_vmprof.enable Invalid argument on Ubuntu 18.04 on WSL #214

Open

Description

@scottbecker

I get the following error using a fresh install of pypy 7.2 and vmprof 0.4.15 on ubuntu 18.04 running under windows subsystem on linux

(venv3.6_pypy3_7_2) scott@DESKTOP-PRTO29B:~$ python -m vmprof --web test.py
Traceback (most recent call last):
  File "/home/scott/pypy3.6-v7.2.0-linux64/lib-python/3/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/scott/pypy3.6-v7.2.0-linux64/lib-python/3/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/scott/venv3.6_pypy3_7_2/site-packages/vmprof/__main__.py", line 75, in <module>
    main()
  File "/home/scott/venv3.6_pypy3_7_2/site-packages/vmprof/__main__.py", line 53, in main
    args.lines, native=native)
  File "/home/scott/venv3.6_pypy3_7_2/site-packages/vmprof/__init__.py", line 73, in enable
    _vmprof.enable(fileno, period, memory, lines, native, real_time)
_vmprof.VMProfError: Invalid argument

The values for this parameters are
fileno=3
period=0.001
memory=False
lines=False
native=True
real_time=False

Activity

  1. changed the title [-]_vmprof.enable Invalid argument[/-] [+]_vmprof.enable Invalid argument on Ubuntu 18.04 on WSL[/+] on Oct 17, 2019
  2. LoHiaufung commented on Apr 21, 2020

    @LoHiaufung

    I met the same problem, have you solved it ?

  3. scottbecker commented on Apr 24, 2020

    @scottbecker
    Author

    No but you could try wsl 2 - https://docs.microsoft.com/en-us/windows/wsl/wsl2-install . I think this is generally available in mid may with the win 10, 2004 release

  4. LoHiaufung commented on Apr 27, 2020

    @LoHiaufung

    Thanks a lot, I will try it .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions