Failed Demo Func-Animation

Issue #204 resolved
Bernd Bertschinger created an issue

Demo Func-Animation “ func_animation.py“ failed.
Error Message: 'TimerItom' object has no attribute '_timer'

Comments (11)

  1. M. Gronle

    This demo works for me with matplotlib 3.5.1. I will try to update to 3.5.2…

    Which version do you have?

  2. Bernd Bertschinger reporter

    Error persists on clean Win10 distribution both as RM and VM.
    This problem looks mor severe.
    I therefore raise the priority for this issue.

  3. Bernd Bertschinger reporter

    Complete Error Message:

    Traceback (most recent call last):

    File "c:\program files\itom (x64)\demo\matplotlib\func_animation.py", line 23, in <module>

    ani = FuncAnimation(

    File "C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\animation.py", line 1672, in __init__

    TimedAnimation.__init__(self, fig, **kwargs)

    File "C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\animation.py", line 1430, in __init__

    event_source = fig.canvas.new_timer(interval=self._interval)

    File "C:/Program Files/itom (x64)/itom-packages\mpl_itom\backend_itom_v3.py", line 533, in new_timer

    return TimerItom(*args, **kwargs)

    File "C:/Program Files/itom (x64)/itom-packages\mpl_itom\backend_itom_v3.py", line 160, in __init__

    TimerBase.__init__(self, *args, **kwargs)

    File "C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\backend_bases.py", line 1093, in __init__

    self.interval = 1000 if interval is None else interval

    File "C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\backend_bases.py", line 1135, in interval

    self._timer_set_interval()

    File "C:/Program Files/itom (x64)/itom-packages\mpl_itom\backend_itom_v3.py", line 185, in _timer_set_interval

    self._timer.setInterval(self._interval)

    AttributeError: 'TimerItom' object has no attribute '_timer'

    Exception ignored in: <function TimerItom.__del__ at 0x0000020C21763280>

    Traceback (most recent call last):

    File "C:/Program Files/itom (x64)/itom-packages\mpl_itom\backend_itom_v3.py", line 173, in __del__

    TimerBase.__del__(self)

    File "C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\backend_bases.py", line 1098, in __del__

    self._timer_stop()

    File "C:/Program Files/itom (x64)/itom-packages\mpl_itom\backend_itom_v3.py", line 191, in _timer_stop

    self._timer.stop()

    AttributeError: 'TimerItom' object has no attribute '_timer'

  4. Bernd Bertschinger reporter

    Still does not work.
    Updated the Itom default Matplotlib version from 3.3.4 to 3.5.2.

    Updating in the package manager, created a warning and an error:
    WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Program Files\itom (x64)\python3\Scripts' which is not on PATH.
    Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    ERROR: Could not install packages due to an OSError: [WinError 5] Zugriff verweigert: ‘c:\\program files\\itom (x64)\\python3\\lib\\site-packages\\matplotlib\\backends\\_backend_agg.cp38-win_amd64.pyd'
    Consider using the `--user` option or check the permissions.

    Probably related to the fact that the folder and consequent subfolder of python3 are write protected

    But changing the write protection didn’t help in this case, becaus itom generated new write protected folders, which it could not change afterwards.
    Had to execute ITOM as administrator to update the matplotlib package.

    Then tried to rerun fun_acnimation.py but new error appeared:
    ImportError: cannot import name ‘StatusbarBase' from ‘matplotlib.backend_bases' (C:\Program Files\itom (x64)\python3\lib\site-packages\matplotlib\backend_bases.py)

    I don’t understand how you can talk about a clean Windows installation, when you use matplotlib 3.5.2., when instead the RC is done with matplotlib 3.3.4?

    Shouldn’t the RC be delivered w. V.3.5.2 when it is clearly required? And should not all demos run w. the delivered packages?

    It is also strange for me, that python folders are all write protected. And that the package update fails.
    I don’t think this is an intended system behaviour.

  5. Bernd Bertschinger reporter

    Sorry, for all the confusion. I have seen, that I was testing the wrong ITOM Version.
    I have downloaded RC3 and tested it. It works all fine now.
    Closing the ticket as resolved.

  6. Log in to comment