Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error 'Contour' not Defined
#1
Hi - I'm new to Python and are working with debugging a script that was developed for Python 2.7.

This is my error:
Error:
Traceback (most recent call last): File "init_collapse.py", line 115, in <module> cs=contour(kxx,kyy,-kelevation,[collapse_depth]) NameError: name 'contour' is not defined
I just wonder if 'contour' is a module I should have available. These are the modules the script calls for:
 from scipy import *
#from pylab import *
from numpy import *
import sys
from degrees2utm import *
from copy import deepcopy
from matplotlib.patches import PathPatch
Has it something to do with 'matplotlib.patches import PathPatch' because this is the only module I could not find to load?

Kind Regards
Dave
Yoriz write Mar-12-2022, 11:49 PM:
Please post all code, output and errors (in their entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Messages In This Thread
Error 'Contour' not Defined - by DaveG - Mar-12-2022, 10:56 PM
RE: Error 'Contour' not Defined - by deanhystad - Mar-12-2022, 11:27 PM
RE: Error 'Contour' not Defined - by DaveG - Mar-12-2022, 11:32 PM
RE: Error 'Contour' not Defined - by deanhystad - Mar-13-2022, 03:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Variable is not defined error when trying to use my custom function code fnafgamer239 4 605 Nov-23-2023, 02:53 PM
Last Post: rob101
Question Vertex(Contour) to mesh conversion JorgeRdz 1 733 Feb-06-2023, 02:00 AM
Last Post: Larz60+
  [variable] is not defined error arises despite variable being defined TheTypicalDoge 4 2,153 Apr-05-2022, 04:55 AM
Last Post: deanhystad
  Getting "name 'get_weather' is not defined error and no json_data returned? trthskr4 6 3,658 Sep-14-2021, 09:55 AM
Last Post: trthskr4
  Error when refering to class defined in 'main' in an imported module HeRo 2 2,422 Apr-13-2021, 07:22 PM
Last Post: HeRo
  Why does lambda throw 'name value_o is not defined' error? karabakh 3 2,201 Dec-14-2020, 05:45 PM
Last Post: karabakh
  name error "name"is not defined MaartenRo 1 3,450 Jul-28-2020, 02:39 AM
Last Post: bowlofred
  Name Error: name 'Stockton' is not defined Pinokchu 3 2,297 Jun-13-2020, 02:48 PM
Last Post: Yoriz
  python library not defined in user defined function johnEmScott 2 3,887 May-30-2020, 04:14 AM
Last Post: DT2000
  error ,,name append is not defined'' Killdoz 1 5,054 May-24-2020, 06:23 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020