textual icon indicating copy to clipboard operation
textual copied to clipboard

Use with Windows + pyInstaller breaks after 0.81.0 (esp. in CI)

Open finger563 opened this issue 2 years ago • 5 comments

I have a project for which I use textualize to make a very nice TUI (thanks for all the amazing work you all have done!).

I recently upgraded my dependencies from ==0.81.0 to >=0.82.0 to try to update my code to take advantage of the new is_on_screen attribute.

However, after updating to 0.82.0 (and even testing 0.83.0), I found that the packaged TUI on Windows does not render at all (and instead spits out ANSI escape sequences to the terminal corresponding to any mouse movement I make within the terminal).

Downgrading the same code back to 0.81.0 and it works just fine in the same system / terminal, so it appears that something about the changes in 0.82.0 and beyond have messed up rendering in this situation (again, only broken on Windows - on MacOS packaged 0.82.0 and 0.83.0 work just fine).

For some additional information, I'm using python 3.10 (though I've also tested 3.12) with both textual and textual_plotext and have set up the following hidden imports in my pyinstaller spec:

    'rich',
    'rich.logging',
    'textual',
    'textual.widgets',
    'textual.widgets._tab_pane',
    'textual_plotext',
    'pkg_resources.extern',
    'pkg_resources.py2_warn',

I've not seen anything else pointing to new hidden imports we might need to add, and I'm not getting runtime errors or exceptions that would point to such an issue.

finger563 avatar Oct 23 '24 16:10 finger563

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

github-actions[bot] avatar Oct 23 '24 16:10 github-actions[bot]

But it runs on Windows without being packaged?

We did upgrade some dependancies recently. Can't think what might cause this though.

willmcgugan avatar Oct 25 '24 14:10 willmcgugan

@willmcgugan that's correct, if I run it in windows (within a venv) then it works just fine as well.

finger563 avatar Oct 25 '24 15:10 finger563

@finger563 did you ever figure out a solution to this? I am having the same issues on v1.0.0

Fishing4Bytes avatar Feb 07 '25 00:02 Fishing4Bytes

@finger563 did you ever figure out a solution to this? I am having the same issues on v1.0.0

@AlikanakelaKarwowski I did not find a resolution, we are still just using the older version but I've not tried any new releases

finger563 avatar Feb 07 '25 01:02 finger563