GithubHelp home page GithubHelp logo

Comments (6)

matmult avatar matmult commented on June 12, 2024 2

Thanks for the response. I found out that there were old portaudio files in /usr/local/include from intel->arm migration and removed those.

brew install portaudio seems to install it in /opt/homebrew/Cellar/portaudio/19.7.0, and I built pyaudio with pip install --global-option='build_ext' --global-option='-I/opt/homebrew/Cellar/portaudio/19.7.0/include' --global-option='-L/opt/homebrew/Cellar/portaudio/19.7.0/lib' pyaudio.

Sadly, the issue still persists.

from 01.

keldenl avatar keldenl commented on June 12, 2024 1

i was actually able to fix this issue another way – setting up my own conda env (make sure to do python version 3.11.8, due to another issue):

CONDA_SUBDIR=osx-arm64 conda create -n MY_ENV python python=3.11.8

and then thanks to https://stackoverflow.com/questions/33513522/when-installing-pyaudio-pip-cannot-find-portaudio-h-in-usr-local-include/69833329#69833329

conda activate
poetry install
pip uninstall pyaudio
pip install --global-option='build_ext' --global-option="-I$(brew --prefix)/include" --global-option="-L$(brew --prefix)/lib" pyaudio

and then running it with --local did the trick!

from 01.

shivenmian avatar shivenmian commented on June 12, 2024

This is an issue with one or both of:

  1. your brew (and hence portaudio) installation
  2. your pyaudio installation

First, uninstall pyaudio and portaudio, then try to follow this answer to see if it works.

If it doesn't, you may need to reinstall Brew:

Brew is installed in /usr/local in older Intel / Rosetta Macs, but installs in /opt/homebrew now. You can use which brew to find out where brew is installed. Incase it is still on /usr/local, you'll need to uninstall brew from there and install in /opt/homebrew, since Pyaudio will also pick it up from there. Follow these steps to fix Brew.

Once brew is fixed, uninstall pyaudio, then reinstall it using the Stackoverflow link.

from 01.

keldenl avatar keldenl commented on June 12, 2024

unfortunately running into similar issues on m1 pro, tried the above suggestions to no avail

from 01.

shahdivax avatar shahdivax commented on June 12, 2024
sudo apt-get update
sudo apt-get install portaudio19-dev

@keldenl this worked for ubuntu for me, you can try similar and might just work

from 01.

tyfiero avatar tyfiero commented on June 12, 2024

Seems like this is sorted out now, thanks @shahdivax, @keldenl and @shivenmian for your help!

from 01.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.