Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'termios' #331

Open
PatrickDahlin opened this issue Sep 17, 2024 · 4 comments
Open

No module named 'termios' #331

PatrickDahlin opened this issue Sep 17, 2024 · 4 comments

Comments

@PatrickDahlin
Copy link

Describe the bug

llama-toolchain python package

Minimal reproducible example

Installing with pip install llama-toolchain
Running llama or any other parameter results in a crash with No module named 'termios'

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\Scripts\llama.exe\__main__.py", line 4, in <module>
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\site-packages\llama_toolchain\cli\llama.py", line 11, in <module>
    from .stack import StackParser
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\site-packages\llama_toolchain\cli\stack\__init__.py", line 7, in <module>
    from .stack import StackParser  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\site-packages\llama_toolchain\cli\stack\stack.py", line 12, in <module>
    from .configure import StackConfigure
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\site-packages\llama_toolchain\cli\stack\configure.py", line 19, in <module>
    from llama_toolchain.common.exec import run_with_pty
  File "C:\Users\Demon\AppData\Roaming\Python\Python312\site-packages\llama_toolchain\common\exec.py", line 9, in <module>
    import pty
  File "C:\Program Files\Python312\Lib\pty.py", line 12, in <module>
    import tty
  File "C:\Program Files\Python312\Lib\tty.py", line 5, in <module>
    from termios import *
ModuleNotFoundError: No module named 'termios'

Runtime Environment

  • Model: N/A
  • Using via huggingface?: no
  • OS: Windows
  • GPU VRAM: 8
  • Number of GPUs: 1
  • GPU Make: Nvidia
@anhduckkzz
Copy link

I have the same issue too, please help

@YAO-EE
Copy link

YAO-EE commented Sep 25, 2024

I have the same issue too

@anhduckkzz
Copy link

commented

Guys I found out way to fix this problem
You will need to install 1 more thing:
pip install llama-stack

@nabilmohamed99
Copy link

pip install llama-stack
Thanks for sharing! I tested it, and it works perfectly. Appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants