mitosch / textual-terminal

A terminal emulator widget for Textual.
GNU Lesser General Public License v3.0
87 stars 5 forks source link

Not working on Mac systems #5

Open lhammond opened 1 year ago

lhammond commented 1 year ago

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
mitosch commented 1 year ago

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

lhammond commented 1 year ago

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: @.***>

mitosch commented 1 year ago

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.

lhammond commented 1 year ago

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

image
mitosch commented 1 year ago

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.

lhammond commented 1 year ago

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: @.***>

nealeyoung commented 3 months ago

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).