apache - Why do some Python packages work in CGI apps but not others? -


i trying write python script record sound when called browser. using xampp on macbook pro test server. pyaudio package using collect sound samples. ran installer , can import , utilize fine when script executed apache, import fails. can import standard packages fine however.

when apache runs script:

#!/usr/bin/env python # -*- coding: utf-8 -*-  # enable debugging import sys import cgitb cgitb.enable()  print "content-type: text/plain;charset=utf-8" print import pyaudio 

i error in browser: please build , install portaudio python bindings first.

running in shell not problem.

i have tried changing hashbang heading exact location of shell interpreter made no difference.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -