Re: PyChart into web site error
- From: Damjan <gdamjan@xxxxxxxxx>
- Date: Wed, 13 Apr 2005 22:28:14 +0200
>>>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
.
- References:
- PyChart into web site error
- From: Michele Petrazzo
- Re: PyChart into web site error
- From: Lee Harr
- Re: PyChart into web site error
- From: Michele Petrazzo
- PyChart into web site error
- Prev by Date: Re: templating system
- Next by Date: Re: preallocate list
- Previous by thread: Re: PyChart into web site error
- Next by thread: Embedding threaded Python
- Index(es):
Relevant Pages
|