problems when trying to run Gnuplot.py (Gnuplot-1.5) under Python 2.2.1

Markus Faust marfadeu at gmx.de
Tue May 7 13:57:51 EDT 2002


I changed functils.py to

#! /usr/bin/env python

# $Id: funcutils.py,v 2.4 2001/01/07 21:35:12 mhagger Exp $

# Copyright (C) 1998-2001 Michael Haggerty <mhagger at alum.mit.edu>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  This program is distributed in
# the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.  See the GNU General Public License for more
# details; it is available at <http://www.fsf.org/copyleft/gpl.html>,
# or by writing to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.

"""funcutils.py -- Subroutines that tabulate a function's values.

Convenience functions that evaluate a python function on a grid of
points and tabulate the output to be used with Gnuplot.

"""

__cvs_version__ = '$Revision: 2.4 $'

import Numeric

#import Gnuplot, utils          # original
import utils                    # changed by M. Faust 07.05.2002
from _Gnuplot import Gnuplot    # changed by M. Faust 07.05.2002

and now I can call GnuPlot directly from Python.

Markus

"Markus Faust" <marfadeu at gmx.de> schrieb im Newsbeitrag
news:ab0afm$qej$07$1 at news.t-online.com...
> Hi,
>
> I'm encountering problems when trying to run Gnuplot.py (Gnuplot-1.5)
under
> Python 2.2.1 on a Windows NT 4.0 system. What could be wrong?
>
> Error message:
> >python demo.py
> demo.py:40: SyntaxWarning: import * only allowed at module level
>   def demo():
> Traceback (most recent call last):
>   File "demo.py", line 36, in ?
>     import funcutils
>   File "funcutils.py", line 29, in ?
>     import Gnuplot, utils
> ImportError: No module named Gnuplot
>
> system:
> Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
> G N U P L O T
>         MS-Windows 32 bit version 3.7
>         patchlevel 1
>         last modified Fri Oct 22 18:00:00 BST 1999
>
> Markus
>
>
>





More information about the Python-list mailing list