Forum
>>
Programmazione Python
>>
GUI
>>
Problema Raspberry PI con NavigationToolbar2Tk
Pagina: 1
Esegui il login per scrivere una risposta.
Pagina: 1
|
Scritto da Gabbo |
2022-04-30 10:09:14 - Problema Raspberry PI con NavigationToolbar2Tk
|
|
Buongiorno,
Sono alle prime armi con Python, volevo provare un semplice programma che ho trovato in rete, per verificare le potenzialità di matplotlib su Raspberry PI 3 purtroppo quando vado in esecuzione il l'IDE mi da il seguente errore: Python 3.5.3 (default, Nov 4 2021, 15:29:10) [GCC 6.3.0 20170516] on linux Type "copyright", "credits" or "license()" for more information. >>> ===================== RESTART: /home/pi/Desktop/prova.py ===================== Traceback (most recent call last): File "/home/pi/Desktop/prova.py", line 11, in <module> from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2Tk ImportError: cannot import name 'NavigationToolbar2Tk' >>> non riesce ad importare NavigationToolbar2Tk su windows funziona ma su raspberry no qualcuno sa darmi una spiegazione?? Grazie allego sorgente: --- Ultima modifica di Gabbo in data 2022-04-30 10:11:14 --- |
|
|
Scritto da Gulshan Negi ![]() |
2023-08-05 17:18:34 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
Well, you can solve this problem by updating Matplotlib, if still not work then I will recommebnd you to use different IDE or terminals.
Thanks |
|
|
Scritto da Spammer Spammer |
2024-08-08 04:01:29 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
Scritto da Spammer Spammer |
2024-10-31 04:02:22 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
Scritto da GeneMills |
2025-06-11 05:38:48 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
Scritto da RaylinSmith |
2025-07-18 08:52:35 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
Scritto da liu |
2025-11-13 06:28:59 - PCB Trace Width Calculator
|
|
Scritto da delion bart ![]() |
2025-11-22 08:12:51 - Re: Problema Raspberry PI con NavigationToolbar2Tk
|
|
This error usually happens because your Raspberry Pi is running an older version of matplotlib. In itNavigationToolbar2Tk didn't exist yet — it was called NavigationToolbar2TkAgg.
Try from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg Unselfishness If you want to use the new name (NavigationToolbar2Tk), update matplotlib: pip3 install --upgrade matplotlib But on a Pi 3 with Python 3.5, upgrading may be limited, so using NavigationToolbar2TkAgg is usually the simplest fix. --- Ultima modifica di delion bart in data 2025-11-22 08:13:28 --- --- Ultima modifica di delion bart in data 2025-11-22 08:13:55 --- |
Pagina: 1
Esegui il login per scrivere una risposta.


