Python errors from Apache?

Chris Janton face at CentosPrime.COM
Wed Jun 17 08:00:11 PDT 2009


I noticed that my apache error log ''/opt/local/apache2/logs/ 
error_log'' now shows many errors like the following

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback

It's kind of hard to figure out where these are coming from, and what  
to do about them

$ uname -a
Darwin mac.centosprime.com 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar  
31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

$ python_select -s
python25

sorry for the long list - not sure which ports are relevant to the  
problem

$ port installed
The following ports are currently installed:
   a52dec @0.7.4_0 (active)
   adns @1.4_0 (active)
   adodb @5.04_0 (active)
   analog @6.0_0 (active)
   apache-ant @1.7.1_0 (active)
   apache2 @2.2.11_0+darwin_9 (active)
   apachetop @0.12.5_0 (active)
   apr @1.3.5_0 (active)
   apr-util @1.3.7_0 (active)
   aspell @0.60.6_1+macosx (active)
   aspell-dict-en @6.0_0 (active)
   aspell-dict-it @0.53_0 (active)
   atk @1.26.0_1 (active)
   AtomicParsley @0.9.0_0 (active)
   audiofile @0.2.6_2 (active)
   autoconf @2.63_0 (active)
   autoconf213 @2.13_1 (active)
   automake @1.11_0 (active)
   base64 @1.3_0 (active)
   bash-completion @1.0_1 (active)
   bison @2.4.1_0 (active)
   bzip2 @1.0.5_2 (active)
   cairo @1.8.6_4+macosx
   cairo @1.8.8_0+macosx (active)
   ccache @2.4_2 (active)
   cdparanoia @10.2_0 (active)
   cidr @2.3.2_0 (active)
   clucene @0.9.20_0 (active)
   commons-beanutils @1.8.0_0 (active)
   commons-codec @1.3_1 (active)
   commons-collections @3.2.1_0 (active)
   commons-daemon @1.0.1_0 (active)
   commons-dbcp @1.2.2_0 (active)
   commons-digester @1.8_0 (active)
   commons-el @1.0_1 (active)
   commons-fileupload @1.2.1_0 (active)
   commons-httpclient @3.1_0 (active)
   commons-io @1.4_0 (active)
   commons-launcher @1.1_0 (active)
   commons-logging @1.1.1_0 (active)
   commons-modeler @2.0.1_0 (active)
   commons-pool @1.4_0 (active)
   coreutils @7.4_0 (active)
   cppunit @1.12.1_0 (active)
   csv2xml @0.6_0 (active)
   ctags @5.7_0 (active)
   curl @7.19.5_0+doc+sftp_scp+ssl (active)
   curl-ca-bundle @7.19.5_0 (active)
   cyrus-sasl2 @2.1.22_0+kerberos
   cyrus-sasl2 @2.1.23_0+kerberos (active)
   db44 @4.4.20_1 (active)
   db46 @4.6.21_5 (active)
   dbus @1.2.12_5
   dbus @1.2.14_0 (active)
   dbus-glib @0.80_0 (active)
   desktop-file-utils @0.15_1 (active)
   dirac @1.0.2_0 (active)
   dnstracer @1.9_0 (active)
   docbook-xml @5.0_0 (active)
   docbook-xml-4.1.2 @4.1.2_1 (active)
   docbook-xml-4.2 @4.2_0 (active)
   docbook-xml-4.3 @4.3_0 (active)
   docbook-xml-4.4 @4.4_0 (active)
   docbook-xml-4.5 @4.5_0 (active)
   docbook-xml-5.0 @5.0_0 (active)
   docbook-xsl @1.75.0_0
   docbook-xsl @1.75.1_0 (active)
   dom4j @1.6.1_1 (active)
   dos2unix @3.1_1 (active)
   doxygen @1.5.9_0 (active)
   emacs @22.3_1+atsui+carbon (active)
   esound @0.2.41_1 (active)
   expat @2.0.1_0 (active)
   expect @5.43.0_4 (active)
   faac @1.28_1 (active)
   faad2 @2.6.1_1 (active)
   ffmpeg @0.5_2 (active)
   flac @1.2.1_0+darwin_i386 (active)
   flex @2.5.35_0 (active)
   fontconfig @2.6.0_2+macosx (active)
   fortune @6.2.0-RELEASE_0 (active)
   freetype @2.3.9_0+macosx (active)
   gawk @3.1.6_0 (active)
   gconf @2.26.2_0 (active)
   gd2 @2.0.35_5 (active)
   gdbm @1.8.3_1 (active)
   getopt @1.1.4_1 (active)
   gettext @0.17_4 (active)
   ghostscript @8.64_3 (active)
   giflib @4.1.6_1 (active)
   glib2 @2.20.3_0 (active)
   glut @3.7_3 (active)
   gmake @3.81_0 (active)
   gmp @4.3.1_0 (active)
   gnome-common @2.26.0_0 (active)
   gnome-doc-utils @0.16.1_0 (active)
   gnome-mime-data @2.18.0_3 (active)
   gnome-vfs @2.24.1_0 (active)
   gperf @3.0.4_0 (active)
   graphviz @2.22.2_0+macosx
   graphviz @2.24.0_0+macosx (active)
   gsed @4.2_0 (active)
   gst-plugins-base @0.10.23_0 (active)
   gstreamer @0.10.23_0 (active)
   gtk-doc @1.11_0 (active)
   gtk2 @2.16.1_4+x11
   gtk2 @2.16.2_0+x11 (active)
   gzip @1.3.12_0 (active)
   hamcrest-core @1.1_2
   hamcrest-core @1.2_0 (active)
   help2man @1.36.4_1 (active)
   html2text @1.3.2a_3 (active)
   id3lib @3.8.3_0 (active)
   id3v2 @0.1.11_1 (active)
   ImageMagick @6.5.2-9_0+no_x11+q16 (active)
   imap-uw @2007_1 (active)
   intltool @0.40.6_0 (active)
   iso-codes @3.5_0
   iso-codes @3.10_0 (active)
   jakarta-bcel @5.1_1 (active)
   jakarta-log4j @1.2.15_0 (active)
   jakarta-regexp @1.4_0 (active)
   jakarta-taglibs-standard-11 @1.1.2_1 (active)
   jasper @1.900.1_4 (active)
   jaxen @1.1-beta-9_0 (active)
   jdom @1.0_0 (active)
   jpeg @6b_3 (active)
   junit @4.6_0
   junit @4.6_1 (active)
   lame @3.98.2_0 (active)
   libart_lgpl @2.3.20_0 (active)
   libdvdcss @1.2.10_0 (active)
   libdvdread @4.1.3_2+libdvdcss (active)
   libexif @0.6.17_0 (active)
   libgdiplus @2.4_0 (active)
   libiconv @1.12_2
   libiconv @1.13_0 (active)
   libidl @0.8.13_0 (active)
   libmcrypt @2.5.8_1 (active)
   libmikmod @3.2.0-beta2_1 (active)
   libmp4v2 @1.5.0.1_0 (active)
   libogg @1.1.3_2 (active)
   liboil @0.3.16_0 (active)
   libpcap @1.0.0_0 (active)
   libpixman @0.14.0_0 (active)
   libpng @1.2.35_0
   libpng @1.2.37_0 (active)
   librsync @0.9.7_1 (active)
   libsdl @1.2.13_6 (active)
   libsdl_image @1.2.7_0 (active)
   libsdl_mixer @1.2.8_1 (active)
   libssh2 @1.0_0
   libssh2 @1.1_0 (active)
   libtheora @1.0_0+darwin_9_i386 (active)
   libtool @2.2.6a_0 (active)
   libvorbis @1.2.0_1 (active)
   libxml2 @2.7.3_0 (active)
   libxslt @1.1.24_2 (active)
   lighttpd @1.4.20_0
   lighttpd @1.4.22_0 (active)
   lynx @2.8.6rel.5_1+ssl (active)
   lzmautils @4.32.7_1 (active)
   m4 @1.4.13_0+with_default_names (active)
   macfuse @1.7_1 (active)
   makedepend @1.0.1_0 (active)
   mercurial @1.2.1_1 (active)
   mesa @7.4_1+hw_render
   mesa @7.4.2_0+hw_render (active)
   mg @20090107_0 (active)
   mhash @0.9.9.9_0 (active)
   mod_python25 @3.3.1_3+universal (active)
   mono @2.4_0+darwin_9 (active)
   mx4j @3.0.1_0 (active)
   mysql-connector-java @5.0.7_0 (active)
   mysql5 @5.0.83_0
   mysql5-devel @5.1.34_0+server
   mysql5-devel @5.1.35_0 (active)
   mysql5-devel @5.1.35_0+server
   mysql5-server-devel @5.1.35_1 (active)
   ncurses @5.7_0 (active)
   ncursesw @5.7_0 (active)
   neon @0.28.4_0 (active)
   netpbm @10.26.61_0 (active)
   nmap @4.76_0 (active)
   openmotif @2.3.1-1_2 (active)
   openssl @0.9.8k_0 (active)
   orbit2 @2.14.17_0 (active)
   p5-compress-raw-zlib @2.015_0 (active)
   p5-compress-zlib @2.015_0 (active)
   p5-crypt-ssleay @0.57_0 (active)
   p5-dbi @1.607_0 (active)
   p5-html-parser @3.60_0 (active)
   p5-html-tableextract @2.10_0 (active)
   p5-html-tagset @3.20_0 (active)
   p5-io-compress-base @2.015_0 (active)
   p5-io-compress-zlib @2.015_0 (active)
   p5-libwww-perl @5.826_0 (active)
   p5-locale-gettext @1.05_0 (active)
   p5-mime-base64 @3.07_0 (active)
   p5-uri @1.37_0
   p5-uri @1.38_0 (active)
   p5-xml-parser @2.36_0 (active)
   p7zip @4.65_0
   p7zip @9.04_0 (active)
   palm-db-tools @0.3.6_1 (active)
   pango @1.24.2_0+macosx (active)
   pcre @7.9_0 (active)
   perl5.8 @5.8.9_3 (active)
   php5 @5.2.9_2+apache2+macosx+mysql5+pear
   php5 @5.2.9_3+apache2+macosx+mysql5+pear (active)
   phpicalendar @2.24_0 (active)
   pkgconfig @0.23_1 (active)
   policykit @0.9_0 (active)
   popt @1.15_0 (active)
   port_cutleaves @0.1.1_0 (active)
   pstree @2.32_0 (active)
   py-markdown @1.7_0 (active)
   py25-beautifulsoup @3.0.7a_0 (active)
   py25-bz2 @2.5.4_1 (active)
   py25-cherrypy3 @3.1.1_0 (active)
   py25-django-devel @0.96.1_1 (active)
   py25-feedparser @4.1_0 (active)
   py25-genshi @0.5.1_0 (active)
   py25-gobject @2.16.1_0+darwin_9
   py25-gobject @2.18.0_0+darwin_9 (active)
   py25-hashlib @2.5.4_1 (active)
   py25-libxml2 @2.6.21_1 (active)
   py25-lxml @2.2_0 (active)
   py25-mysql @1.2.2_0+mysql5 (active)
   py25-numeric @24.2_1+macosx (active)
   py25-paste @1.7.1_0 (active)
   py25-setuptools @0.6c9_0 (active)
   py25-sqlite3 @2.5.4_1 (active)
   py25-xml @0.8.4_0 (active)
   py25-zlib @2.5.4_1 (active)
   python24 @2.4.6_4+darwin_9+macosx (active)
   python25 @2.5.4_4+darwin_9+macosx+universal
   python25 @2.5.4_5+darwin_9+macosx+universal
   python25 @2.5.4_6+darwin_9+macosx+universal (active)
   python26 @2.6.2_2
   python26 @2.6.2_3 (active)
   python_select @0.2.1_0+darwin_9 (active)
   rarian @0.8.1_0 (active)
   readline @6.0.000_1 (active)
   render @0.9.2_0 (active)
   saxpath @1.0_0 (active)
   schroedinger @1.0.7_0 (active)
   serf @0.3.0_0 (active)
   servlet23-api @1_0 (active)
   servlet24-api @5.5.25_0 (active)
   shared-mime-info @0.60_0 (active)
   shorten @3.6.1_0 (active)
   sipcalc @1.1.4_0 (active)
   smpeg @0.4.4_8 (active)
   sqlite3 @3.6.14.2_0 (active)
   subversion @1.6.2_0+bash_completion+mod_dav_svn+no_bdb+tools (active)
   tcl @8.5.6_0 (active)
   texi2html @1.80_0
   texi2html @1.82_0 (active)
   texinfo @4.13_0 (active)
   texlive @2007_6 (active)
   texlive_base @2007_6
   texlive_base @2007_7+motif (active)
   texlive_texmf-full @2007_3 (active)
   texlive_texmf-minimal @2007_2 (active)
   tiff @3.8.2_3+macosx (active)
   tk @8.5.6_1 (active)
   tomcat-native @1.1.14_0 (active)
   tomcat5 @5.5.25_0 (active)
   tree @1.5.2.2_0 (active)
   ttcp @1.10_0 (active)
   urw-fonts @1.0.7pre44_0 (active)
   vms-empire @1.7_0 (active)
   vobcopy @1.1.1_0 (active)
   waitfor @0.5_0 (active)
   watch @3.2.7_0 (active)
   wget @1.11.4_3 (active)
   wtf @20080926_0 (active)
   x264 @20090408_0 (active)
   xalanj @2.7.0_1 (active)
   xbitmaps @1.0.1_1 (active)
   xercesj @2.9.1_0 (active)
   Xft2 @2.1.13_1 (active)
   xmlcatmgr @2.2_1 (active)
   xom @1.0_0 (active)
   xorg-applewmproto @1.2.0_0 (active)
   xorg-bigreqsproto @1.0.2_0 (active)
   xorg-compositeproto @0.4_0 (active)
   xorg-damageproto @1.1.0_0 (active)
   xorg-dmxproto @2.2.2_0 (active)
   xorg-dri2proto @1.99.3_0
   xorg-dri2proto @2.0_0
   xorg-dri2proto @2.1_0 (active)
   xorg-evieproto @1.0.2_0 (active)
   xorg-fixesproto @4.0_0 (active)
   xorg-fontcacheproto @0.1.2_0 (active)
   xorg-fontsproto @2.0.2_0 (active)
   xorg-glproto @1.4.10_0 (active)
   xorg-inputproto @1.5.0_0 (active)
   xorg-kbproto @1.0.3_0 (active)
   xorg-libAppleWM @1.2.0_0 (active)
   xorg-libdmx @1.0.2_1 (active)
   xorg-libfontenc @1.0.4_0 (active)
   xorg-libFS @1.0.1_0 (active)
   xorg-libice @1.0.5_0 (active)
   xorg-liblbxutil @1.0.1_0 (active)
   xorg-liboldX @1.0.1_0 (active)
   xorg-libpthread-stubs @0.1_0 (active)
   xorg-libs @20090224_0 (active)
   xorg-libsm @1.1.0_0 (active)
   xorg-libX11 @1.2.1_0 (active)
   xorg-libXau @1.0.4_0 (active)
   xorg-libXaw @1.0.5_0 (active)
   xorg-libxcb @1.3_0+python26 (active)
   xorg-libXcomposite @0.4.0_0 (active)
   xorg-libXcursor @1.1.9_0 (active)
   xorg-libXdamage @1.1.1_0 (active)
   xorg-libXdmcp @1.0.2_0 (active)
   xorg-libXevie @1.0.2_1 (active)
   xorg-libXext @1.0.5_1 (active)
   xorg-libXfixes @4.0.3_0 (active)
   xorg-libXfont @1.4.0_1 (active)
   xorg-libXfontcache @1.0.4_0 (active)
   xorg-libXi @1.2.1_0 (active)
   xorg-libXinerama @1.0.3_0 (active)
   xorg-libxkbfile @1.0.5_0 (active)
   xorg-libxkbui @1.0.2_0 (active)
   xorg-libXmu @1.0.4_0 (active)
   xorg-libXp @1.0.0_2 (active)
   xorg-libXrandr @1.3.0_0 (active)
   xorg-libXres @1.0.3_0 (active)
   xorg-libXScrnSaver @1.1.3_0 (active)
   xorg-libXt @1.0.5_2 (active)
   xorg-libXTrap @1.0.0_1
   xorg-libXTrap @1.0.0_2 (active)
   xorg-libXtst @1.0.3_0 (active)
   xorg-libXv @1.0.4_0 (active)
   xorg-libXvMC @1.0.4_0 (active)
   xorg-libXxf86dga @1.0.2_0 (active)
   xorg-libXxf86misc @1.0.1_1 (active)
   xorg-libXxf86vm @1.0.2_0 (active)
   xorg-printproto @1.0.4_0 (active)
   xorg-randrproto @1.3.0_0 (active)
   xorg-recordproto @1.13.2_0 (active)
   xorg-renderproto @0.9.3_0 (active)
   xorg-resourceproto @1.0.2_0 (active)
   xorg-scrnsaverproto @1.1.0_0 (active)
   xorg-trapproto @3.4.3_0 (active)
   xorg-util-macros @1.2.1_1 (active)
   xorg-videoproto @2.2.2_0 (active)
   xorg-xcb-proto @1.5_0+python26
   xorg-xcb-proto @1.5_1+python26 (active)
   xorg-xcb-util @0.3.5_0 (active)
   xorg-xcmiscproto @1.1.2_0 (active)
   xorg-xextproto @7.0.5_0 (active)
   xorg-xf86bigfontproto @1.1.2_0 (active)
   xorg-xf86dgaproto @2.0.3_0 (active)
   xorg-xf86miscproto @0.9.2_0 (active)
   xorg-xf86vidmodeproto @2.2.2_0 (active)
   xorg-xineramaproto @1.1.2_0 (active)
   xorg-xproto @7.0.15_0 (active)
   xorg-xtrans @1.2.3_0 (active)
   xpm @3.5.7_0 (active)
   xrender @0.9.4_5 (active)
   XviD @1.1.3_1
   XviD @1.2.2_0 (active)
   yasm @0.8.0_0 (active)
   ZendFramework @1.7.4_0 (active)
   zlib @1.2.3_2 (active)

8)
----------------------------------
Chris Janton  - face at CentosPrime dot COM
Netminder for Opus1.COM




More information about the macports-users mailing list