PyChart into web site error
Damjan
gdamjan at gmail.com
Wed Apr 13 16:28:14 EDT 2005
>>>AttributeError: 'module' object has no attribute 'argv'
>>>
>>>Why my script doesn't have sys.argv?
...
>> How are you serving the pages?
>
> Apache 2.0.48, mod_python 3.1.3 and Python 2.3.3
> on my mdk 10.0
Obviosly when using mod_python there's no sys.argv (and what would it
contain if it existed??).
Now the real question is why PyChart needs sys.argv?
OTOH, maybe you can make a dummy sys module in your script that provides
sys.argv??
BTW, I tested with Apache 2.0.53, mod_python 3.1.4 and Python 2.4 to confirm
there's no sys.argv in the mod_python environment.
--
damjan
More information about the Python-list
mailing list