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 such file or directory: 'snakeviz' #5

Closed
ubmarco opened this issue Feb 17, 2022 · 2 comments
Closed

No such file or directory: 'snakeviz' #5

ubmarco opened this issue Feb 17, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ubmarco
Copy link
Member

ubmarco commented Feb 17, 2022

Running this

sphinx-performance --parallel 4 --pages 20 --dummies 200 --snakeviz --profile foo

leads to

Starting snakeviz servers

Traceback (most recent call last):
  File "/home/marco/ub/sphinx-performance/.venv/bin/sphinx-performance", line 2, in <module>
    from sphinx_performance.main import cli
  File "/home/marco/ub/sphinx-performance/sphinx_performance/main.py", line 143, in <module>
    cli()
  File "/home/marco/ub/sphinx-performance/.venv/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/home/marco/ub/sphinx-performance/.venv/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/home/marco/ub/sphinx-performance/.venv/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/marco/ub/sphinx-performance/.venv/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/home/marco/ub/sphinx-performance/.venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/marco/ub/sphinx-performance/sphinx_performance/main.py", line 133, in cli
    proc = subprocess.Popen(["snakeviz", f"profile/{p}.prof"])
  File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
@ubmarco ubmarco added the bug Something isn't working label Feb 17, 2022
@danwos
Copy link
Member

danwos commented Feb 17, 2022

See #7. Need some time to provide this feature.

@danwos
Copy link
Member

danwos commented Nov 10, 2022

Done via sphinx-analysis now, and snakeviz is a dependency now.

@danwos danwos closed this as completed Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants