Package Details: python-snakeviz 2.2.0-1

Git Clone URL: https://aur.archlinux.org/python-snakeviz.git (read-only, click to copy)
Package Base: python-snakeviz
Description: A viewer for Python profiling data
Upstream URL: http://jiffyclub.github.io/snakeviz
Keywords: runsnakerun snakeviz
Licenses: BSD
Submitter: kjslag
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 10
Popularity: 0.67
First Submitted: 2015-07-13 21:22 (UTC)
Last Updated: 2023-06-20 19:30 (UTC)

Latest Comments

romainhk commented on 2023-09-07 07:14 (UTC)

Hi ! I got the same issue than mbromilow, but with requests too :


__________________________________________________________________________________________________ ERROR collecting tests/test_ipymagic.py ___________________________________________________________________________________________________
ImportError while importing test module '/home/xxx/.cache/trizen/sources/python-snakeviz/src/snakeviz-2.2.0/tests/test_ipymagic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/xxx/.pyenv/versions/3.9.16/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_ipymagic.py:2: in <module>
    import IPython.testing.globalipapp as testing
E   ModuleNotFoundError: No module named 'IPython'
__________________________________________________________________________________________________ ERROR collecting tests/test_snakeviz.py ___________________________________________________________________________________________________
ImportError while importing test module '/home/xxx/.cache/trizen/sources/python-snakeviz/src/snakeviz-2.2.0/tests/test_snakeviz.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/xxx/.pyenv/versions/3.9.16/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_snakeviz.py:16: in <module>
    import requests
E   ModuleNotFoundError: No module named 'requests'

mbromilow commented on 2023-06-18 23:25 (UTC)

Hi, as @yodaembedding mentioned, the makedepend python-setuptools is missing and needs to be added. Additionally, there is a missing dependency of ipython:

============================= test session starts ==============================
platform linux -- Python 3.11.3, pytest-7.3.2, pluggy-1.0.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /build/python-snakeviz/src/snakeviz-2.2.0
collecting ... collected 5 items / 1 error

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_ipymagic.py ____________________
ImportError while importing test module '/build/python-snakeviz/src/snakeviz-2.2.0/tests/test_ipymagic.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_ipymagic.py:2: in <module>
    import IPython.testing.globalipapp as testing
E   ModuleNotFoundError: No module named 'IPython'
=========================== short test summary info ============================
ERROR tests/test_ipymagic.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.10s ===============================

The package is broken as it will not build inside a clean chroot (e.g. using extra-x86_64-build) without both of these dependencies, please could you add them?

thrasibule commented on 2023-05-12 13:36 (UTC)

It's been updated already. You need to refresh the PKGBUILD.

Fuzzy commented on 2023-05-12 09:49 (UTC)

I faced the same error about "--desdir". Could you please fix it?

drawm commented on 2023-05-05 21:00 (UTC)

python -m installer: error: unrecognized arguments: --desdir=/tmp/makepkg/python-snakeviz/pkg/python-snakeviz/

There is a typo in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-snakeviz#n37, it should be --destdir= instead of --desdir.

yodaembedding commented on 2023-01-15 05:21 (UTC) (edited on 2023-01-15 06:16 (UTC) by yodaembedding)

Missing dependency python-setuptools and python-requests.

Recommendation:

makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-requests')

==> Starting build()...
Traceback (most recent call last):
  File "/build/python-snakeviz/src/snakeviz-2.1.1/setup.py", line 3, in <module>
    from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /mnt/data/ProgData/var/lib/aurbuild/x86_64/mulhaq/build
error: failed to build 'python-snakeviz-2.1.1-1': failed to run: makechrootpkg -r /var/lib/aurbuild/x86_64 -D /home/custompkgs -d /mnt/data/ProgData/var/cache/pacman/pkg/ -- -feA --noconfirm --noprepare --holdver:

Popkornium18 commented on 2022-08-07 20:15 (UTC) (edited on 2022-08-07 20:16 (UTC) by Popkornium18)

Some tests are failing during installation:

/usr/lib/python3.10/subprocess.py:1845: FileNotFoundError
======================================================== short test summary info =========================================================
FAILED tests/test_snakeviz.py::test_snakeviz_profile[None] - FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
FAILED tests/test_snakeviz.py::test_snakeviz_dir[None] - FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
FAILED tests/test_snakeviz.py::test_snakeviz_profile[9999] - FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
FAILED tests/test_snakeviz.py::test_snakeviz_dir[9999] - FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
FAILED tests/test_snakeviz.py::test_version - FileNotFoundError: [Errno 2] No such file or directory: 'snakeviz'
=========================================================== 5 failed in 0.50s ============================================================
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'python-snakeviz-2.1.1-1':
error: packages failed to build: python-snakeviz-2.1.1-1

sebschrader commented on 2017-11-01 14:59 (UTC) (edited on 2017-11-01 15:00 (UTC) by sebschrader)

The image files under /usr/lib/python3.6/site-packages/snakeviz/static/images are missing read permission for users other than root: ``` Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/tornado/web.py", line 1511, in _execute result = yield result File "/usr/lib/python3.6/site-packages/tornado/gen.py", line 1055, in run value = future.result() File "/usr/lib/python3.6/site-packages/tornado/concurrent.py", line 238, in result raise_exc_info(self._exc_info) File "<string>", line 4, in raise_exc_info File "/usr/lib/python3.6/site-packages/tornado/gen.py", line 307, in wrapper yielded = next(result) File "/usr/lib/python3.6/site-packages/tornado/web.py", line 2418, in get for chunk in content: File "/usr/lib/python3.6/site-packages/tornado/web.py", line 2570, in get_content with open(abspath, "rb") as file: PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.6/site-packages/snakeviz/static/images/sort_both.png' ```