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

Python 3.12 not supported #733

Closed
ayazwx opened this issue Apr 4, 2024 · 12 comments
Closed

Python 3.12 not supported #733

ayazwx opened this issue Apr 4, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@ayazwx
Copy link

ayazwx commented Apr 4, 2024

Commands I ran to install and run OpenDevin:

make build

ERROR:
Successfully installed distlib-0.3.8 pipenv-2023.12.1 platformdirs-4.2.0 virtualenv-20.25.1
Using python: 3.11
Path to python: None
Warning: Python 3.11 was not found on your system...
Neither 'pyenv' nor 'asdf' could be found to install Python.
You can specify specific versions of Python with:
$ pipenv --python path/to/python
make: *** [Makefile:19: build] Error 1

$ python --version

Python 3.12.2

@ayazwx ayazwx added the bug Something isn't working label Apr 4, 2024
@rbren
Copy link
Collaborator

rbren commented Apr 4, 2024

I did notice we're strictly checking 3.11, and not allowing 3.12 ☹️

Worth fixing

@rbren rbren changed the title occurs error for python 3.12 Python 3.12 not supported Apr 4, 2024
@rbren
Copy link
Collaborator

rbren commented Apr 4, 2024

Relevant loc: https://github.com/OpenDevin/OpenDevin/blob/e70767c22697ed4fe81ef14e677dfccba8376ff8/Pipfile#L32

@ayazwx ayazwx closed this as completed Apr 4, 2024
@rbren rbren reopened this Apr 4, 2024
@rbren
Copy link
Collaborator

rbren commented Apr 4, 2024

Gonna leave this one open--we should be able to support 3.12 just fine. I think it's just not encoded properly

@foragerr
Copy link
Collaborator

foragerr commented Apr 4, 2024

pipenv does not have a good way to say >=3.11
I want to say this one waits for poetry.

@dorbanianas
Copy link
Collaborator

@ayazwx I guess it's fixed in the new main try to pull and let us know if there are any issues.

ps: Thanks @foragerr for the info 👌

@dorbanianas
Copy link
Collaborator

I'll close this issue if you don't have any problem

@dorbanianas
Copy link
Collaborator

problem fixed by the switch to poetry

@ayazwx
Copy link
Author

ayazwx commented Apr 5, 2024

There is another error which is project try to use python 3.12:

make build
What's Next?
  1. Sign in to your Docker account → docker login
  2. View a summary of image vulnerabilities and recommendations → docker scout quickview ghcr.io/opendevin/sandbox
Installing Python dependencies...
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

/home/fedora/.local/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.8.2): An error occurred. Removing partial environment.
Poetry installation failed.
See /home/fedora/Downloads/OpenDevin/poetry-installer-error-7sar_n9s.log for error logs.
make: *** [Makefile:19: build] Error 1
$ cat poetry-installer-error-7sar_n9s.log
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib64/python3.12/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
             ^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/ensurepip/__init__.py", line 284, in _main
    return _bootstrap(
           ^^^^^^^^^^^
  File "/usr/lib64/python3.12/ensurepip/__init__.py", line 176, in _bootstrap
    whl = wheel_path.read_bytes()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/pathlib.py", line 1019, in read_bytes
    with self.open(mode='rb') as f:
         ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/pathlib.py", line 1013, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib64/python3.12/ensurepip/_bundled/pip-24.0-py3-none-any.whl'

Traceback:

  File "<stdin>", line 923, in main
  File "<stdin>", line 562, in run

@dorbanianas dorbanianas reopened this Apr 5, 2024
@dorbanianas
Copy link
Collaborator

@ayazwx I'll take a look at that today

@dorbanianas
Copy link
Collaborator

@ayazwx can you try this command in the terminal pip --version

@dorbanianas
Copy link
Collaborator

if pip exist try to upgrade you pip using pip install --upgrade pip

@rbren
Copy link
Collaborator

rbren commented Apr 7, 2024

Given that we fixed the original bug, I'm going to close this one.

@ayazwx can you open up a new issue and fill out the template if you're still having trouble?

@rbren rbren closed this as completed Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants