Package Details: python-textual 0.15.1-2

Git Clone URL: https://aur.archlinux.org/python-textual.git (read-only, click to copy)
Package Base: python-textual
Description: Modern Text User Interface framework
Upstream URL: https://github.com/Textualize/textual
Licenses: MIT
Submitter: jose1711
Maintainer: jose1711 (carlosal1015)
Last Packager: carlosal1015
Votes: 5
Popularity: 0.123862
First Submitted: 2021-10-12 21:47 (UTC)
Last Updated: 2023-03-15 16:03 (UTC)

Latest Comments

1 2 3 Next › Last »

carlosal1015 commented on 2023-03-15 16:01 (UTC)

No errors from my side, who knows what happened.

alan1world commented on 2023-03-15 10:56 (UTC)

Yes, all the test fails seem to come from the same error:

ImportError: Package 'textual.widgets' has no class '__wrapped__'

carlosal1015 commented on 2023-01-21 02:32 (UTC)

Interesting, --ignore should does the trick. Disabling check() by now.

m040601 commented on 2023-01-21 00:34 (UTC) (edited on 2023-01-21 00:37 (UTC) by m040601)

Fails to build since last update, https://aur.archlinux.org/cgit/aur.git/commit/?h=python-textual&id=0967b03e02e63d2d5f4bc210a839001da07b54b7,

very very big log,

2 snapshots failed. 210 snapshots passed.
snap_compare = <function snap_compare.<locals>.compare at 0x7fb0a317dea0>

    def test_demo(snap_compare):
        """Test the demo app (python -m textual)"""
>       assert snap_compare(
            Path("../../src/textual/demo.py"),
            press=["down", "down", "down", "_", "_"],
            terminal_size=(100, 30),
        )
E       AssertionError: assert False
E        +  where False = <function snap_compare.<locals>.compare at 0x7fb0a317dea0>(PosixPath('.
./../src/textual/demo.py'), press=['down', 'down', 'down', '_', '_'], terminal_size=(100, 30))
E        +    where PosixPath('../../src/textual/demo.py') = Path('../../src/textual/demo.py')

tests/snapshot_tests/test_snapshots.py:191: AssertionError
------------------------------------- Captured stdout call --------------------------------------
p
------------------------------------ snapshot report summary ------------------------------------
1 snapshot failed. 89 snapshots passed.
==================================== short test summary info ====================================
FAILED tests/snapshot_tests/test_snapshots.py::test_demo - AssertionError: assert False
============== 1 failed, 833 passed, 1 skipped, 2 deselected, 2 xfailed in 45.73s ===============
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-textual

View the failure report. (html)

carlosal1015 commented on 2022-12-18 18:14 (UTC) (edited on 2022-12-18 18:14 (UTC) by carlosal1015)

Looks like upstream issue. By the moment can be installed skipping the check() function.

m040601 commented on 2022-12-18 11:52 (UTC) (edited on 2022-12-18 11:58 (UTC) by m040601)

Since the latest changes, https://aur.archlinux.org/cgit/aur.git/commit/?h=python-textual&id=c401b9ccbc3d98942ed1e13e695d5134aced0cb5, it fails to build,

:: 1 Packages to upgrade.
1  aur/python-textual  0.6.0-1 -> 0.7.0-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==>

The update seems to be going well, passing all tests, color is green, but then it fails evrything starting from that "python_widget.py" test. Notice the "F" and the red color,

......                                                                                    [ 29%]
tests/test_path.py .....                                                                  [ 29%]
tests/cli/test_cli.py .                                                                   [ 30%]
tests/test_box_model.py .....                                                             [ 30%]
tests/test_auto_pilot.py .                                                                [ 30%]
tests/test_auto_refresh.py .                                                              [ 31%]
tests/test_test_runner.py .                                                               [ 31%]
tests/test_widget.py ....F...........                                                     [ 33%]
tests/devtools/test_devtools_client.py ......                                             [ 34%]
tests/layouts/test_horizontal.py .                                                        [ 34%]
tests/test_animator.py ........                                                           [ 35%]
tests/test_table.py ..                                                                    [ 35%]
tests/test_call_later.py ..                                                               [ 36%]
tests/test_widget_mounting.py .                                                           [ 36%]
tests/test_widget_child_moving.py .                                                       [ 36%]
tests/snapshot_tests/test_snapshots.py .................................................. [ 43%]
...                                                                                       [ 43%]

Some excerpts from the error messages,

=========================================== FAILURES ============================================
_________________ test_widget_mount_ids_must_be_unique_mounting_multiple_calls __________________

self =

And

==================================== short test summary info ====================================
FAILED tests/test_widget.py::test_widget_mount_ids_must_be_unique_mounting_multiple_calls - textu
al._context.NoActiveAppError
================ 1 failed, 696 passed, 1 skipped, 5 xfailed, 1 warning in 34.41s ================
==> ERROR: A failure occurred in check().
    Aborting...
checking dependencies...

So in the end it's not possible to build this PKGBUILD

:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
 -> error making: python-textual


alan1world commented on 2022-11-03 16:27 (UTC)

I've added a comment on Syrupy as to how I've been able to get both it and textual to build.

jose1711 commented on 2022-11-02 23:09 (UTC)

Hi there, couple options that come in mind:

  • you may skip the check part during build with --nocheck, so for instance run makepkg --nocheck -fi
  • until the problem with python-syrupy is resolved we may remove/comment the check() function
  • you may consider using python's virtual environment and just get everything you need using pip

Not sure how the promotion exactly works. Votes sometimes help, you may try forums or IRC and find a TU user that would adopt it and move to community.

m040601 commented on 2022-11-02 22:29 (UTC)

The issue is with python-syrupy ...

I understand. And appreciate your efforts. Tried again with version 0.3.0, but no luck.

I was also wandering. What can we do more to try to get this tool "python-textual" as an official Arch package" ?

I hate to use the something from the AUR when it pulls many other, also only in AUR dependencies. This is one of them. It pulls "python-colored", "python-syrupy and "python-time-machine" which are only available in the AUR, not as official packages.

I noticed recently that "rich" "gum" "charm" and "glow" were also added as official Arch packages. These are similar tools and toolkits for building "text app" . Except that they are using Go, and "python-textual" is using python.

So if there is willingness to have these other "go" tools officially maintained, what could we do, to also get "python-textual" as an official arch package ? More votes ? Contact someone ?

jose1711 commented on 2022-10-27 20:53 (UTC)

@m040601 The issue is with python-syrupy - it has to be fixed there.