[ python-Bugs-1517370 ] Getting an error message import site failed -v traceback.

SourceForge.net noreply at sourceforge.net
Wed Jul 5 10:05:54 CEST 2006


Bugs item #1517370, was opened at 2006-07-05 07:22
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1517370&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
>Priority: 5
Submitted By: brijesh kumar (brijesh_04)
Assigned to: Nobody/Anonymous (nobody)
Summary: Getting an error message import site failed -v traceback.

Initial Comment:
we have not installed python on the machine and trying 
to use python24.dll in c++ code(by including header 
python.h).

At the time of py_initialize() we get an error import 
site failed -v traceback. But if python is installed 
on the machine no such error comes.

But we don't want to Install Python on my M/C.
Please tell us how to get rid of this error in our 
scenerio.



----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-07-05 08:05

Message:
Logged In: YES 
user_id=849994

You'll have to set Py_NoSiteFlag prior to calling
Py_Initialize(). See Python/main.c which does this while
parsing command line args.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1517370&group_id=5470


More information about the Python-bugs-list mailing list