[Pythonmac-SIG] setting a link to a script using matplolibs WXAgg fails

Bob Ippolito bob at redivi.com
Sat May 28 20:07:49 CEST 2005


On May 28, 2005, at 4:13 AM, Christian Meesters wrote:

> Hi
>
> Currently I'm writing a bunch of scripts for batch processing and a  
> few
> for graphical display of my data. During the process of writing I
> simply put links in /usr/local/bin to my scripting directory. Invoking
> the 'non-graphical' scripts this way in any directory is no problem.
> Calling the 'graphical' scripts via one of the links results in the
> following error messages:
> import: unable to open X server `'.
> import: unable to open X server `'.
> /usr/local/bin/SPlot: line 14: syntax error near unexpected token
> `'WXAgg''
> /usr/local/bin/SPlot: line 14: `matplotlib.use('WXAgg')

Use #!/usr/bin/env /usr/bin/pythonw

pythonw is a script and can't be invoked directly from an #!

-bob



More information about the Pythonmac-SIG mailing list