0

here is a screenshot of the name error i am talking about.

1

I have entered what the instructor in a pre-recorded webinar has entered in his screen. i can't ask follow-up questions to the instructor since webinar has already passed.

Barmar
  • 741,623
  • 53
  • 500
  • 612
  • Show code and error messages as properly formatted text in the question, not as image or external link. – Michael Butscher Aug 04 '20 at 01:33
  • # Assign model name and create modflow model object modelname='tutorial1' modelpath='E:/Model' mf = flopy.modflow.Modflow(modelname, model_ws=modelpath,exe_name='E:/modflow flopy/GroundwaterModelWithFlopy/Exe/mf2005') – Patricia Verano Aug 04 '20 at 01:37
  • error message: --------------------------------------------------------------------------- NameError Traceback (most recent call last) in 2 modelname='tutorial1' 3 modelpath='E:/Model' ----> 4 mf = flopy.modflow.Modflow(modelname, model_ws=modelpath,exe_name='E:/modflow flopy/GroundwaterModelWithFlopy/Exe/mf2005') NameError: name 'flopy' is not defined – Patricia Verano Aug 04 '20 at 01:38
  • In the question, not as comment. – Michael Butscher Aug 04 '20 at 01:38
  • You need to install flopy, either with `pip` or `anaconda` – Ahmet Aug 04 '20 at 01:39
  • 1
    When running in a notebook, be sure to 'run all'. In your screen shot, if you tried running the 2nd notebook cell without initially running the first cell, that is one potential source of your problem...flopy hasn't been loaded yet. – user2256085 Aug 04 '20 at 11:20

0 Answers0