01 icon indicating copy to clipboard operation
01 copied to clipboard

01os installation:

Open ngoiyaeric opened this issue 1 year ago • 8 comments

Describe the bug Cannot install: running poetry install says it cannot install torch 2.3.0 torch 2.2.2 is already installed

To Reproduce Steps to reproduce the behavior:

  1. python 3.9 - 3.12
  • Installing torch (2.3.0): Failed

RuntimeError

Unable to find installation candidates for torch (2.3.0)

at ~/.pyenv/versions/3.9.18/lib/python3.9/site-packages/poetry/installation/chooser.py:74 in choose_for 70│ 71│ links.append(link) 72│ 73│ if not links: → 74│ raise RuntimeError(f"Unable to find installation candidates for {package}") 75│ 76│ # Get the best link 77│ chosen = max(links, key=lambda link: self._sort_key(package, link)) 78│

Cannot install torch.

Expected behavior Running poetry run 01

Traceback (most recent call last): File "", line 1, in File "/Users/karibu/.pyenv/versions/3.9.18/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/Users/karibu/Desktop/01-main/software/start.py", line 1, in import typer ModuleNotFoundError: No module named 'typer' Screenshots Screen Shot 2024-05-24 at 1 16 36 PM

Desktop (please complete the following information):

  • OS: [mac OS: Monterey]
  • Python Version [e.g. 22]

Additional context Add any other context about the problem here.

ngoiyaeric avatar May 24 '24 10:05 ngoiyaeric

I have the same issue as this, just now. Can anybody assist on this? OS : Mac Sonoma 14.5 Python : 3.10

alam234 avatar May 28 '24 08:05 alam234

Try pip install typer

0xrushi avatar Jun 01 '24 20:06 0xrushi

I have the same issue with : OS: Mac Sonoma 14.4 Python: 3.12.2 When I run poetry add torch or torchvision, it fails:

 - Installing torch (2.3.1): Failed

  RuntimeError

  Unable to find installation candidates for torch (2.3.1)

  at ~/Library/Application Support/pypoetry/venv/lib/python3.11/site-packages/poetry/installation/chooser.py:74 in choose_for
       70│ 
       71│             links.append(link)
       72│ 
       73│         if not links:
    →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       75│ 
       76│         # Get the best link
       77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       78│ 

Cannot install torch.

sbouden avatar Jul 10 '24 09:07 sbouden

I'm also having this problem with Mac OS Sonoma 14.5, Mac Mini 2018. Perhaps an issue with Intel CPUs?

stevenjryall1029384756 avatar Jul 16 '24 01:07 stevenjryall1029384756

Apologies if I'm putting this here in error. Looks like this user is getting two errors that may or may not be related. If I need to open my own issue, someone feel free to let me know.

I'm getting the typer error in Windows 10 (though not the torch error). If I run poetry show --tree I see that typer is a dependency of fastapi-cli which is a dependency of fastapi which is a dependency of open-interpreter, as well as being listed in a couple other places. When I run just poetry show it says typer is already installed. So not sure how to go forward here.

sgjohnson1981 avatar Jul 21 '24 02:07 sgjohnson1981

are there any updates on this? i am having the same issue on macbook pro (2021) with m1 pro chip

soliblue avatar Aug 20 '24 15:08 soliblue

Just a reminder that Open Interpreter requires Python 3.10 or 3.11. There are multiple posts in this thread with invalid versions of Python.

If you're using the correct version of Python, please include more information about your setup to help with debugging

MikeBirdTech avatar Aug 20 '24 15:08 MikeBirdTech

Hello, The solution for me was to change to torch==2.2.2 otherwise it wouldn't work.

Good luck ! Sonia

Le mar. 20 août 2024 à 17:56, Mike Bird @.***> a écrit :

Just a reminder that Open Interpreter requires Python 3.10 or 3.11. There are multiple posts in this thread with invalid versions of Python.

If you're using the correct version of Python, please include more information about your setup to help with debugging

— Reply to this email directly, view it on GitHub https://github.com/OpenInterpreter/01/issues/278#issuecomment-2299196139, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANFZ6OAIH3WPNGHC2SC7OX3ZSNRJ7AVCNFSM6AAAAABIHJMPC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJZGE4TMMJTHE . You are receiving this because you commented.Message ID: @.***>

sbouden avatar Aug 20 '24 16:08 sbouden