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

01os installation: #278

Open
ngoiyaeric opened this issue May 24, 2024 · 8 comments
Open

01os installation: #278

ngoiyaeric opened this issue May 24, 2024 · 8 comments

Comments

@ngoiyaeric
Copy link

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 ngoiyaeric changed the title 01 installation: 01os installation: May 24, 2024
@alam234
Copy link

alam234 commented May 28, 2024

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

@0xrushi
Copy link

0xrushi commented Jun 1, 2024

Try pip install typer

@sbouden
Copy link

sbouden commented Jul 10, 2024

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.

@stevenjryall1029384756
Copy link

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

@sgjohnson1981
Copy link

sgjohnson1981 commented Jul 21, 2024

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.

@soliblue
Copy link

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

@MikeBirdTech
Copy link
Contributor

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

@sbouden
Copy link

sbouden commented Aug 20, 2024 via email

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

8 participants