On 3/22/11 1:54 PM, Geoffrey Hutchison wrote:
>
> On Mar 16, 2011, at 1:39 AM, 討僖哓醜 wrote:
>
>> We develop the website with django under Windows. When I use
>  django's runserver to run the site, pybel is working properly;
>  while use  apache+mod_wsgi to run the site, the following errors occurred:
>> Traceback:
>> File "D:\Python\lib\site-packages\pybel.py" in<module>
>>    16. import openbabel as ob
>
> I don't know django worth anything, much less django under Windows. Can you
>  import other Python modules under Django?

I don't know django or Windows, but as a general rule web servers like Apache 
always reset things like the library search path.  It's for security reasons - 
they don't want unsafe libraries to be linked.  You probably need to find out 
how to set up django's library search path to include OpenBabel's lib directory.

Craig

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to