python APSYNSIM_Python3.py crashes when launching it

Bug #1952139 reported by Marc Rosanes Siscart
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
APSYNSIM
New
Undecided
Unassigned

Bug Description

Using Python3, and launching:

python APSYNSIM_Python3.py
it crashes with:

Traceback (most recent call last):
  File "APSYNSIM_Python3.py", line 3160, in <module>
    myint = Interferometer(tkroot=root)
  File "APSYNSIM_Python3.py", line 294, in __init__
    self.GUI() #makefigs=makefigs)
  File "APSYNSIM_Python3.py", line 343, in GUI
    self.spherePlot = pl.axes([0.53,0.82,0.12,0.12],projection='3d',aspect='equal')
  File "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 872, in axes
    return gcf().add_axes(arg, **kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/figure.py", line 1257, in add_axes
    a = projection_class(self, rect, **kwargs)
  File "/usr/lib/python3/dist-packages/mpl_toolkits/mplot3d/axes3d.py", line 101, in __init__
    super().__init__(fig, rect, frameon=True, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/axes/_base.py", line 509, in __init__
    self.update(kwargs)
  File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 974, in update
    ret = [_update_property(self, k, v) for k, v in props.items()]
  File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 974, in <listcomp>
    ret = [_update_property(self, k, v) for k, v in props.items()]
  File "/usr/lib/python3/dist-packages/matplotlib/artist.py", line 971, in _update_property
    return func(v)
  File "/usr/lib/python3/dist-packages/matplotlib/axes/_base.py", line 1280, in set_aspect
    raise NotImplementedError(
NotImplementedError: It is not currently possible to manually set the aspect on 3D axes
---

Following the solution on:
https://github.com/matplotlib/matplotlib/issues/16568
I modified the line 343
    self.spherePlot = pl.axes([0.53,0.82,0.12,0.12],projection='3d',aspect='equal')
by
    self.spherePlot = pl.axes([0.53,0.82,0.12,0.12],projection='3d')

Now it works, and Apsynsim launches correctly, but I'm afraid I have broken the 3D sphere (which appears in grey floating on the GUI).

Revision history for this message
Marc Rosanes Siscart (mrosanes) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.