Comments (5)
hey - I've almost got this working.
I had to:
- reinstall homebrew and make sure all the dependencies are in the right place.
- clone the git repo and install using
sudo python setup.py install --use-coreaudio --use-double
- fix the occaisional problem with it not finding header files by looking at the error message and making appropriate symbolic links to the various header file directories.
However - it's still not working but that's because of a bad link to an internal module which i'm tempted make a PR for. Not much help but it will get you closer to it working.
from pyo.
Had same issue on M1 Mac. Got this to work with normal pip install:
Edit your shell of choice with the following:
(if using bash, use export CFLAGS= syntax instead...)
setenv CFLAGS '-I/opt/homebrew/include/'
setenv LDFLAGS '-L/opt/homebrew/lib/'
Make sure you install portaduio using brew, as you've done already. I then got pip install pyo to install successfully since it will now compile the needed libraries looking in /opt/homebrew/ instead of /usr/local/
Hope this helps...
from pyo.
Actually - this still doesn't work. I'm at a loss.
from pyo.
Thanks for all the comments everyone. I finally got this to work.
I had to install the following packages using brew:
portmidi
libsndfile
(maybe others that I have forgotten - but error messages should suggest what else you need to install).
I cloned this repo, cd'd to it, and activated a pre-existing virtual environment (you don't have to do this, but that's why I didn't install with sudo).
Then I set up the following variables in order to build:
export LIBRARY_PATH="/opt/homebrew/lib:$LIBRARY_PATH"
export CFLAGS='-I/opt/homebrew/include/'
export LDFLAGS='-L/opt/homebrew/lib/'
Then I just ran python setup.py install
.
One weird thing is when I first tested it with python -c 'import pyo'
I got an error, but all I had to do was change to a different directory. I went one level up (cd ..
) and ran python -c 'import pyo'
again and it worked.
Hopefully this helps someone.
from pyo.
Related Issues (20)
- Invalid sample rate when using ASIO driver HOT 1
- Installing on Win11, Py3.11.0 HOT 14
- In the last built _.ctrl() does not work properly on macOS HOT 3
- Minor bug: In Pyo Server window (wxPython v4.2) if Interpreter input has focus and then clicking on buttons HOT 2
- Wxpython 4.2.0 issue found by usage of Spectrum() HOT 3
- Dependencies and HomeBrew HOT 1
- How to hide `wxPython` warnings ? HOT 7
- `pyo` doesn't produce sound in Qt App HOT 1
- Found bug with stdout during pyo.Server initialization HOT 3
- Issue with Linseg output HOT 4
- portaudio error on pip install HOT 2
- Running pyo in a headless server mode HOT 1
- pyo legacy-install-failure HOT 1
- Pyo enhancements HOT 2
- install failure on OSX Ventura HOT 9
- Inconsistency in NoteinRead and NoteinRec file format HOT 3
- winhost='asio' unusual behaviour when using buffersize. HOT 2
- Fails to build with GCC 14 due to -Wincompatible-pointer-types HOT 4
- win10 getting requirements to build wheel did not run successfully
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyo.