On 11/20/2017 10:18 AM, Steven D'Aprano wrote:
On Mon, Nov 20, 2017 at 08:18:41AM -0500, Stephen P. Molnar wrote:

I'm not really looking for someone to do the programming for me.  I know
that the code works, because it did and produced the attached plot. I
just don't know why it stopped working.  Actually, all of my programming
experience has been with FORTRAN, starting with II in 1961 (yes, I am
rather an old... an Organic Chemist.

Let's start over,

This is the code:
You seem to have completely ignored my advice about cutting the code
down to the minimum amount that demonstrates the error. Okay, that's
your perogative, but as a volunteer it is my perogative to choose how
much or how little effort I put into solving your problem for you.

I have neither the time nor the inclination to spend a lot of time on
this, so I'll just offer one suggestion. According to the error
traceback, you appear to be running the script from inside either the
Spyder IDE, or possibly an iPython/Jupyter notebook.

This appears to be the command you are running (inside iPython?):

runfile('/home/comp/Apps/Python/Plot_T_Data/MultiplePlots_3.py', 
wdir='/home/comp/Apps/Python/Plot_T_Data')
and the traceback shows a failure relating to iPython and/or Spyder:

   File "<ipython-input-22-d74ad7d779d0>", line 1, in <module>
     runfile('/home/comp/Apps/Python/Plot_T_Data/MultiplePlots_3.py', 
wdir='/home/comp/Apps/Python/Plot_T_Data')

   File 
"/usr/local/lib/python3.5/dist-packages/spyder/utils/site/sitecustomize.py", 
line 688, in runfile
     execfile(filename, namespace)

It is possible that you have recently updated iPython or installed
Spyder, and that has broken your script. I recommend that you eliminate
them from contention, by running your script from the old-fashioned
Linux commandline. From bash, or some other terminal shell, run:


cd /home/comp/Apps/Python/Plot_T_Data
python3.5 MultiplePlots_3.py


and see if the error persists. If the error goes away, then the problem
lies in iPython or Spyder.

In a nutshell, based on a cursory look at the traceback, this seems to
be a problem with your environment rather than your code.

Good luck!


Followed your advice;

comp@AbNormal:~/Apps/Models/Fluoranthene/ReferenceMolecules/Output/Transforms_1$ python3.5 MultiplePlots_3.py
Enter Molecule ID: Chrysene
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
    return self.func(*args)
  File "/usr/lib/python3.5/tkinter/__init__.py", line 608, in callit
    func(*args)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 323, in idle_draw
    self.draw()
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 304, in draw
    FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_agg.py", line 430, in draw
    self.figure.draw(self.renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py", line 1295, in draw
    renderer, self, artists, self.suppressComposite)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axes_grid1/parasite_axes.py", line 295, in draw
    self._get_base_axes_attr("draw")(self, renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axislines.py", line 778, in draw
    super(Axes, self).draw(renderer, inframe)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/axes/_base.py", line 2399, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1572, in draw
    self._draw_line(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1170, in _draw_line
    self.line.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 163, in draw
    lineFunc = getattr(self, funcname)
AttributeError: 'BezierPath' object has no attribute '_draw_solid'
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
    return self.func(*args)
  File "/usr/lib/python3.5/tkinter/__init__.py", line 608, in callit
    func(*args)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 323, in idle_draw
    self.draw()
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 304, in draw
    FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_agg.py", line 430, in draw
    self.figure.draw(self.renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py", line 1295, in draw
    renderer, self, artists, self.suppressComposite)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axes_grid1/parasite_axes.py", line 295, in draw
    self._get_base_axes_attr("draw")(self, renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axislines.py", line 778, in draw
    super(Axes, self).draw(renderer, inframe)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/axes/_base.py", line 2399, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1572, in draw
    self._draw_line(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1170, in _draw_line
    self.line.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 163, in draw
    lineFunc = getattr(self, funcname)
AttributeError: 'BezierPath' object has no attribute '_draw_solid'
Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
    return self.func(*args)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 233, in resize
    self.show()
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_tkagg.py", line 304, in draw
    FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/backends/backend_agg.py", line 430, in draw
    self.figure.draw(self.renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/figure.py", line 1295, in draw
    renderer, self, artists, self.suppressComposite)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axes_grid1/parasite_axes.py", line 295, in draw
    self._get_base_axes_attr("draw")(self, renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axislines.py", line 778, in draw
    super(Axes, self).draw(renderer, inframe)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/axes/_base.py", line 2399, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
    a.draw(renderer)
File "/usr/local/lib/python3.5/dist-packages/matplotlib/artist.py", line 55, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1572, in draw
    self._draw_line(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 1170, in _draw_line
    self.line.draw(renderer)
File "/usr/lib/python3/dist-packages/mpl_toolkits/axisartist/axis_artist.py", line 163, in draw
    lineFunc = getattr(self, funcname)
AttributeError: 'BezierPath' object has no attribute '_draw_solid'


--
Stephen P. Molnar, Ph.D.                Life is a fuzzy set
www.molecular-modeling.net              Stochastic and multivariate
(614)312-7528 (c)
Skype: smolnar1

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to