use matplotlib in a cgi script

RuntimeError: '/Library/WebServer'

    > is not a writable dir; you must set environment variable
    > HOME to be a writable dir

    > what am i doing wrong? any insight is appreciated thanks,

Python tracebacks are a little funny: you have to read them from the
end to make sense of them. In this case I'll quote the end of the
message you posted back to you

    RuntimeError: '/Library/WebServer' is not a writable dir; you must
    set environment variable HOME to be a writable dir

Is this not clear? If not, you need to learn a little bit about UNIX,
environment variables, and permissions. But feel free to ask
questions here along the way :slight_smile:

JDH