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

cannot install with pipx and python 3.12 on MacOS #2391

Open
tineko opened this issue Nov 18, 2024 · 10 comments
Open

cannot install with pipx and python 3.12 on MacOS #2391

tineko opened this issue Nov 18, 2024 · 10 comments
Labels
question Further information is requested

Comments

@tineko
Copy link

tineko commented Nov 18, 2024

Issue

Installation with pipx seems to require numpy 1.24, which requires distutils, which does not exist anymore in python 3.12.

pip seemed to fail to build package:
numpy==1.24.3

Some possibly relevant errors from pip install:
ModuleNotFoundError: No module named 'distutils'

Error installing aider-chat

Version and model info

MacOS 14.7.1
Python 3.12.7
pipx 1.7.1

@sebseager
Copy link

sebseager commented Nov 22, 2024

Same behavior is seen with python==3.13.0. Should probably be linked to #1984.

If you use something like pyenv or mise that shims python, either add --python=$(which python) to your pipx install command, or add this to your .zshrc

export PIPX_DEFAULT_PYTHON="$HOME/.local/share/mise/shims/python"

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Python 3.12 should work fine. How are you trying to install aider?

@RongWroom
Copy link

RongWroom commented Nov 23, 2024

I'm having the same issue.

Followed the instructions on the aider website
Python3.13 is installed
Tried pipx install

Keep getting this:

`pip seemed to fail to build package:
numpy==1.24.3

Some possibly relevant errors from pip install:
ModuleNotFoundError: No module named 'distutils'

Error installing aider-chat.
`
I've attached the log in case it helps.

cmd_2024-11-23_12.43.07_pip_errors.txt

UPDATE:

I reinstalled Python and updated pip

Here is the new error:

Aider-new-issue.txt

UPDATE 2:

I installed Python 3.12.7 and tried again.

Seems to have installed ✅

@paul-gauthier
Copy link
Collaborator

Aider works with python 3.9-3.12, not with 3.13.

@paul-gauthier paul-gauthier added the question Further information is requested label Nov 24, 2024
@DamianB-BitFlipper
Copy link

Tip:

Just use the command pipx install aider-chat --python python3.12 for now until 3.13 support comes.

@RongWroom
Copy link

RongWroom commented Dec 8, 2024 via email

@DamianB-BitFlipper
Copy link

Give aider another shot ;) I promise you it is good (coming from a user, unaffiliated with the dev team).

@RongWroom
Copy link

RongWroom commented Dec 8, 2024 via email

Copy link

I'm labeling this issue as stale because it has been open for 2 weeks with no activity. If there are no additional comments, I will close it in 7 days.

Note: A bot script made these updates to the issue.

@github-actions github-actions bot added the stale label Dec 22, 2024
@gwpl
Copy link

gwpl commented Dec 24, 2024

ip:

Just use the command pipx install aider-chat --python python3.12 for now until 3.13 support comes.

pacman -S python-pip python-pipx
pacaur -S python312
pipx install aider-chat --python python3.12

if someone wants to try this in docker I attach my "generic Arch Yay/Pacaur Dockerfile" with those few lines at the end:
Dockerfile.extension.for.github.txt (adding extension as otherwise github won't accept issue attachment),

as full file attached, here is TL;DR-

FROM archlinux:latest
(...) install developer packages, fakeroot, etc...
(...) add auruser and set it in sudoers to ``auruser ALL=(ALL) NOPASSWD: ALL"`
(...) as auruser build and install yay
(...) build and install auracle with all dependencies
(...) and vim, etc...

# and finally we have base to feel comfortable inside container, or to easily add more...
# so let's install aider-chat:

USER root
RUN pacman -S --noconfirm python-pip python-pipx
USER auruser
RUN yay -S --noconfirm python312
RUN pipx install aider-chat --python python3.12

# Set the default command
CMD ["/bin/bash"]

(yes, there is a lot of redundancy there, and it's working as expected as it's development Dockerfile to have more tools, comfortable for experimenting, coding, etc)

@github-actions github-actions bot removed the stale label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants