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
Post a Comment