[BangPypers] file save from python script

Deepak Thukral iapain at yahoo.com
Thu Nov 6 15:05:37 CET 2008


> I want to save the file on filebased system. i am using
> urllib
OK


> when i compile this file with simple python demo.py it

Remember there in Python compile time is actually a Runtime.

> ImportError: /usr/lib/python2.4/lib-dynload/math.so:
> undefined symbol:
> PyFPE_jbuf

Probably its problem with your Python distribution. Try importing the modules which you are using in your script from httplib/urlib.


> but it does not give me output to when i check my directory

use logging module and log your all events its easy to debug web apps using logging module. Especially when you cannot print. Also check your webserver have permission to write into that folder, where you are expecting file.

Cheers,
Deepak Thukral


      


More information about the BangPypers mailing list