Movatterモバイル変換


[0]ホーム

URL:


embedding python without dynamically lodaed code in <prefix>

Samuel D. Gendlersgendler at akamai.com
Fri Apr 13 00:35:59 EDT 2001


I am using libpython.a (2.0, if you must know) in order to gain accessto all of the nifty Python data structures.  Currently, we use ONLY theC api.  The application gets distributed to several thousand serversaround the planet, none of which have any version of python installed,let alone 2.0, and we really have no interest in doing a python installto several thousand servers.  When I call PyInitialize() on a machine that does not have python2.0installed, it complains like so: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 tracebackI don't really care that the import fails (assuming that thePyInitialize still succeeds. I haven't checked the source yet), but itwould be really nice to be able to supress these error messages,especially if they are having a negative impact on PyInitialize.Any suggestions would be much appreciated.  Please respond to my emailas well as any public forum that this might arrive at.--sam


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp