WebFaction
Community site: login faq

I am trying to install PyAudio inside my webfaction server.

It gives me the following error. I got the same error while installing it locally but I read the solution and the sudo command solves it. The problem is webfaction does not allow the sudo command.

What I have tried is that I copied my pyaudio local installation from site-packages folder to my online production server.

If I do pip freeze it shows me that it is installed. I tried running my function which uses PyAudio but it gives me the error

" Could not find PyAudio.Check installation" alt text

asked 22 May '17, 20:13

ammarkhan
112
accept rate: 0%


I was able to build portaudio and pyaudio from source using these steps,

export CPPFLAGS="-I$HOME/include $CPPFLAGS"
export LDFLAGS="-L$HOME/lib $LDFLAGS"
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
mkdir src
cd src
wget http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
git clone https://people.csail.mit.edu/hubert/git/pyaudio.git
tar -xf pa_stable_v190600_20161030.tgz 
cd portaudio
./configure --prefix=$HOME
make
make install
cd ../pyaudio/
python3 setup.py install --prefix=$HOME
permanent link

answered 23 May '17, 03:37

johns
5.4k312
accept rate: 23%

edited 23 May '17, 03:48

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×52
×8
×1

question asked: 22 May '17, 20:13

question was seen: 1,226 times

last updated: 23 May '17, 03:48

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM