Package Details: browsr 1.21.0-1

Git Clone URL: https://aur.archlinux.org/browsr.git (read-only, click to copy)
Package Base: browsr
Description: TUI File Browser App
Upstream URL: https://github.com/juftin/browsr
Licenses: MIT
Submitter: carlosal1015
Maintainer: carlosal1015
Last Packager: carlosal1015
Votes: 0
Popularity: 0.000000
First Submitted: 2023-06-03 17:00 (UTC)
Last Updated: 2024-03-21 02:51 (UTC)

Latest Comments

loserMcloser commented on 2023-11-10 15:12 (UTC)

Upgrading to python-pymupdf-1.23.6-2 today fixed it.

loserMcloser commented on 2023-11-09 15:23 (UTC)

cannot create context: incompatible header (1.23.4) and library (1.23.5) versions
Traceback (most recent call last):
  File "/usr/bin/browsr", line 5, in <module>
    from browsr.__main__ import browsr
  File "/usr/lib/python3.11/site-packages/browsr/__init__.py", line 5, in <module>
    from .browsr import Browsr
  File "/usr/lib/python3.11/site-packages/browsr/browsr.py", line 32, in <module>
    from browsr._base import (
  File "/usr/lib/python3.11/site-packages/browsr/_base.py", line 33, in <module>
    from browsr._utils import FileInfo, handle_github_url
  File "/usr/lib/python3.11/site-packages/browsr/_utils.py", line 11, in <module>
    import fitz  # type: ignore[import]
    ^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/fitz/__init__.py", line 22, in <module>
    from fitz.fitz import *
  File "/usr/lib/python3.11/site-packages/fitz/fitz.py", line 14, in <module>
    from . import _fitz
RuntimeError: Fatal error: cannot create global context.

My system is up-to-date:

% pacman -Qs mupdf                                                                                                                                                                                                             
local/libmupdf 1.23.5-1
    Library for Lightweight PDF and XPS viewer
local/python-pymupdf 1.23.6-1
    Python bindings for MuPDF's rendering library

loserMcloser commented on 2023-09-04 16:43 (UTC)

Never mind, I just added -k 'not screenshots' to the check() portion of the PKGBUILD

loserMcloser commented on 2023-09-04 16:33 (UTC)

Any ideas?

* Building wheel...
Successfully built browsr-1.13.0-py3-none-any.whl
==> Starting check()...
================================================ test session starts =================================================
platform linux -- Python 3.11.5, pytest-7.4.1, pluggy-1.2.0
rootdir: /home/xxx/local/abs/git/browsr/src/browsr-1.13.0
plugins: time-machine-2.11.0, asyncio-0.21.1, aiohttp-1.0.4, xonsh-0.14.1, anyio-3.7.1
asyncio: mode=Mode.STRICT
collected 7 items

tests/test_cli.py .                                                                                            [ 14%]
tests/test_config.py ....                                                                                      [ 71%]
tests/test_screenshots.py F.                                                                                   [100%]

====================================================== FAILURES ======================================================
_______________________________________________ test_github_screenshot _______________________________________________

github_release_path = GitHubPath('github://juftin:browsr@v1.6.0/')

    @cassette
    def test_github_screenshot(github_release_path: GitHubPath) -> None:
        """
        Snapshot a release of this repo
        """
        file_path = str(github_release_path)
        screenshotter = Screenshotter(file_path=file_path)
        screenshot, screenshot_path = screenshotter.take_screenshot()
>       assert screenshot_path.read_text() == screenshot
E       assert '<svg class=".../g>\n</svg>\n' == '<svg class=".../g>\n</svg>\n'
E         Skipping 956 identical leading characters in diff, use -v to show
E         - terminal-4201891492-matrix {
E         ?           ^^^   --
E         + terminal-488957912-matrix {
E         ?           ^  +++
E                   font-family: Fira Code, monospace;
E                   font-size: 20px;...
E
E         ...Full output truncated (591 lines hidden), use '-vv' to show

tests/test_screenshots.py:19: AssertionError
============================================== short test summary info ===============================================
FAILED tests/test_screenshots.py::test_github_screenshot - assert '<svg class=".../g>\n</svg>\n' == '<svg class=".../g>\n</svg>\n'
============================================ 1 failed, 6 passed in 8.56s =============================================
==> ERROR: A failure occurred in check().
Aborting...

carlosal1015 commented on 2023-06-08 17:25 (UTC)

Hi @agarbathi, could you look if you have other python modules over ~/.local/lib (hint ls -R ~/.local/)

agarbathi commented on 2023-06-04 17:46 (UTC)

ImportError while loading conftest '/home/xxx/.cache/paru/clone/browsr/src/browsr-1.10.7/tests/conftest.py'.
tests/conftest.py:11: in <module>
    from browsr.universal_directory_tree import GitHubPath
browsr/__init__.py:5: in <module>
    from .browsr import Browsr
browsr/browsr.py:22: in <module>
    from textual import on
E   ImportError: cannot import name 'on' from 'textual' (unknown location)
==> FEHLER: Ein Fehler geschah in check().
    Breche ab...
error: failed to build 'browsr-1.10.7-1': 
error: packages failed to build: browsr-1.10.7-1