textual-terminal icon indicating copy to clipboard operation
textual-terminal copied to clipboard

Not working on Mac systems

Open lhammond opened this issue 2 years ago • 7 comments

See example error below .. I get the same error with my custom app.

If I specify bash as my command, I can see that bash is executed, but the command line does not get presented.

image

lhammond avatar Jun 05 '23 22:06 lhammond

Hi @lhammond

Thank you for submitting your issue. I could not reproduce the issue with the latest Textual version (0.27.0), see running example above.

Do you have more information about the operating system and versions of Textual, Python you are using?

image

mitosch avatar Jun 12 '23 13:06 mitosch

Hi and thank you. I was using git latest .. what is the recommended way to install?

On Mon, Jun 12, 2023 at 9:28 AM Mischa Schindowski @.***> wrote:

Hi @lhammond https://github.com/lhammond

Thank you for submitting your issue. I could not reproduce the issue with the latest Textual version (0.24.0), see running example above.

Do you have more information about the operating system and versions of Textual, Python you are using?

[image: image] https://user-images.githubusercontent.com/922559/245157992-9f6fc52c-8063-47f5-bbce-77915dcfb068.png

— Reply to this email directly, view it on GitHub https://github.com/mitosch/textual-terminal/issues/5#issuecomment-1587346711, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYBYUEBPBBRIPAF3RUVALXK4KPTANCNFSM6AAAAAAY3SG3BI . You are receiving this because you were mentioned.Message ID: @.***>

lhammond avatar Jun 14 '23 20:06 lhammond

Hi @lhammond

When you want to run the example, check out the git repo and run it with poetry:

git clone https://github.com/mitosch/textual-terminal.git

cd textual-terminal
poetry update
poetry install

# run example with poetry:
poetry run python examples/bash_htop_example.py

Maybe the problem you face, could be caused by local dependencies, using different versions of packages, than the one expected. See file pyproject.toml as a reference.

mitosch avatar Jun 20 '23 15:06 mitosch

tried with poetry and seeing the following. Should I be using a release or is latest git ok?

image

lhammond avatar Jun 21 '23 14:06 lhammond

The problem here is, that this plugin is possibly not working with Mac Unix systems. If there is somebody out there who can help with a Mac, I'd be happy to merge a pull-request.

Sorry for not having a better answer.

mitosch avatar Oct 04 '23 23:10 mitosch

i can

On Wed, Oct 4, 2023 at 7:58 PM Mischa Schindowski @.***> wrote:

The problem here is, that this plugin is possibly not working with Mac Unix systems. If there is somebody out there who can help with a Mac, I'd be happy to merge a pull-request.

Sorry for not having a better answer.

— Reply to this email directly, view it on GitHub https://github.com/mitosch/textual-terminal/issues/5#issuecomment-1747810755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABYBYQBHHQOAMPY5BANFYLX5XZZDAVCNFSM6AAAAAAY3SG3BKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBXHAYTANZVGU . You are receiving this because you were mentioned.Message ID: @.***>

lhammond avatar Oct 05 '23 00:10 lhammond

I was able to run the example on my mac (M1). I had a couple of minor obstacles: htop is not present on my machine (I used top instead), and I didn't realize I had to focus the sub window for it to receive input. after I started the shell sub window I expected keys I typed to go to it, which didn't happen, so at first I thought there was a bug. Focusing the window by clicking on it fixed this (made it accept input).

nealeyoung avatar Jun 13 '24 15:06 nealeyoung