Re: PyChart into web site error



>>>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
.



Relevant Pages

  • Re: CGI on NT help!
    ... I'll now be serving the script ... locally from my Mac, so I have a new set of problems. ... getting all of the *nix CGI code around to work on this machine. ... A short-but-complete script that demonstrates the error ...
    (comp.lang.perl.misc)
  • Re: Automator Actions
    ... Here’s what I see as being valuable for my clients: ... Do you feel a script or rule is better serving here? ... Do you foresee building a workflow that then acted on the saved file to do something else with it? ...
    (microsoft.public.mac.office.entourage)
  • Re: PyChart into web site error
    ... > AttributeError: 'module' object has no attribute 'argv' ... > Is there another way to use PyChart into my script? ... How are you serving the pages? ... Prev by Date: ...
    (comp.lang.python)
  • Re: AWK problem need help
    ... The script is as follows: ... printf ("PAT:%s\n", $prev) ... The latter would print the field at whatever position "var" contains, and the whole record if var is zero or unset. ... Also, you don't need the " " as the final argument to splitas that's the default, and awk arrays start at 1, not 0 so "lastline" will always be empty. ...
    (comp.unix.shell)
  • Rules Wizard - delay in running VBA macro
    ... My box is not under any load, ... assumption is the script should fire immediately. ... Jim ... Prev by Date: ...
    (microsoft.public.office.developer.outlook.vba)