[chirp_users] Trying chirpw with python3
I am trying to use the py3 branch of chirpw, because Fedora Linux is in the process of deprecating python 2. Mostly it is going well, but when I try to export to a CSV file, I get this error message:
There was an error during export: 'gi.repository.Gtk' object has no attribute 'Tooltips'
The error appears to originate in chirp/ui/importdialog.py around line 302:
tips = gtk.Tooltips()
Unfortunately, I don't know enough python to understand why this error is happening.
Does anyone have a suggestion about how to use chirpw with python 3?
Steve
Do you have all the dependencies installed?
What happens when you run the following in a terminal?
python3 import gtk
On Thu, Oct 3, 2019 at 12:27 PM Steven A. Falco stevenfalco@gmail.com wrote:
I am trying to use the py3 branch of chirpw, because Fedora Linux is in the process of deprecating python 2. Mostly it is going well, but when I try to export to a CSV file, I get this error message:
There was an error during export: 'gi.repository.Gtk' object has no attribute 'Tooltips'
The error appears to originate in chirp/ui/importdialog.py around line 302:
tips = gtk.Tooltips()
Unfortunately, I don't know enough python to understand why this error is happening.
Does anyone have a suggestion about how to use chirpw with python 3?
Steve
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to UtahDave at boucha@gmail.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
It says there is no gtk module:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk'
However, the following sequence works:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
I'm a complete python novice, so any suggestions on what I need to install would be greatly appreciated.
Steve
On 10/3/19 6:31 PM, David Boucha wrote:
Do you have all the dependencies installed?
What happens when you run the following in a terminal?
python3 import gtk
On Thu, Oct 3, 2019 at 12:27 PM Steven A. Falco <stevenfalco@gmail.com mailto:stevenfalco@gmail.com> wrote:
I am trying to use the py3 branch of chirpw, because Fedora Linux is in the process of deprecating python 2. Mostly it is going well, but when I try to export to a CSV file, I get this error message: There was an error during export: 'gi.repository.Gtk' object has no attribute 'Tooltips' The error appears to originate in chirp/ui/importdialog.py around line 302: tips = gtk.Tooltips() Unfortunately, I don't know enough python to understand why this error is happening. Does anyone have a suggestion about how to use chirpw with python 3? Steve _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com <mailto:chirp_users@intrepid.danplanet.com> http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to UtahDave at boucha@gmail.com <mailto:boucha@gmail.com> To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com <mailto:chirp_users-unsubscribe@intrepid.danplanet.com>
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Steve Falco at stevenfalco@gmail.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
The '>' symbols got mangled in my previous email, so here is a corrected email.
This sequence fails to find gtk:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk'
But this sequence works:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
Is there something that I need to install? I'm a complete python noob.
Steve
Try running the following command
pip3 install -U gtk
On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco stevenfalco@gmail.com wrote:
The '>' symbols got mangled in my previous email, so here is a corrected email.
This sequence fails to find gtk:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gtk
Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk'
But this sequence works:
saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information.
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
Is there something that I need to install? I'm a complete python noob.
Steve
Here is the output of that command:
saf$ pip3 install -U gtk Collecting gtk Could not find a version that satisfies the requirement gtk (from versions: ) No matching distribution found for gtk
As an experiment, I tried modifying importdialog.py, replacing the "import gtk" line with:
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk as gtk
I also had to change "tips = gtk.Tooltips()" to "tips = gtk.Tooltip()", because they appear to have dropped the plural "s" from the class name.
However, the new "Tooltip" class seems to be different from the previous "Tooltips" class, because now I get this exception:
RROR: -- Exception: -- ERROR: Traceback (most recent call last): File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 361, in do_export dst_rthread) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 252, in _do_import_locked dialog = dlgclass(src_radio, dst_rthread.radio, self.parent_window) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 628, in __init__ self.build_ui() File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 506, in build_ui self.vbox.pack_start(self.make_view(), 1, 1, 1) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 333, in make_view tips.set_tip(lab, self.tips[k]) AttributeError: 'Tooltip' object has no attribute 'set_tip'
Again, I'm a python noob, but it looks like the python3 Gtk tooltip API has changed such that set_tip has been removed.
Steve
On 10/4/19 11:51 AM, David Boucha wrote:
Try running the following command
pip3 install -U gtk
On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco <stevenfalco@gmail.com mailto:stevenfalco@gmail.com> wrote:
The '>' symbols got mangled in my previous email, so here is a corrected email. This sequence fails to find gtk: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk' But this sequence works: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import gi >>> gi.require_version('Gtk', '3.0') >>> from gi.repository import Gtk >>> Is there something that I need to install? I'm a complete python noob. Steve
Hm. Hopefully a core Chirp dev can respond. I'm not familiar with the codebase.
Sorry I'm not more help.
On Fri, Oct 4, 2019 at 10:05 AM Steven A. Falco stevenfalco@gmail.com wrote:
Here is the output of that command:
saf$ pip3 install -U gtk Collecting gtk Could not find a version that satisfies the requirement gtk (from versions: ) No matching distribution found for gtk
As an experiment, I tried modifying importdialog.py, replacing the "import gtk" line with:
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk as gtk
I also had to change "tips = gtk.Tooltips()" to "tips = gtk.Tooltip()", because they appear to have dropped the plural "s" from the class name.
However, the new "Tooltip" class seems to be different from the previous "Tooltips" class, because now I get this exception:
RROR: -- Exception: -- ERROR: Traceback (most recent call last): File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 361, in do_export dst_rthread) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 252, in _do_import_locked dialog = dlgclass(src_radio, dst_rthread.radio, self.parent_window) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 628, in __init__ self.build_ui() File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 506, in build_ui self.vbox.pack_start(self.make_view(), 1, 1, 1) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 333, in make_view tips.set_tip(lab, self.tips[k]) AttributeError: 'Tooltip' object has no attribute 'set_tip'
Again, I'm a python noob, but it looks like the python3 Gtk tooltip API has changed such that set_tip has been removed.
Steve
On 10/4/19 11:51 AM, David Boucha wrote:
Try running the following command
pip3 install -U gtk
On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco <stevenfalco@gmail.com
mailto:stevenfalco@gmail.com> wrote:
The '>' symbols got mangled in my previous email, so here is a
corrected email.
This sequence fails to find gtk: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more
information.
>>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk' But this sequence works: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more
information.
>>> import gi >>> gi.require_version('Gtk', '3.0') >>> from gi.repository import Gtk >>> Is there something that I need to install? I'm a complete python
noob.
Steve
How do I remove myself from ongoing e-mails for this group ? ________________________________ From: chirp_users-bounces@intrepid.danplanet.com chirp_users-bounces@intrepid.danplanet.com on behalf of David Boucha boucha@gmail.com Sent: Friday, October 4, 2019 10:48 AM To: Steven A. Falco stevenfalco@gmail.com Cc: Discussion of CHIRP chirp_users@intrepid.danplanet.com Subject: Re: [chirp_users] Trying chirpw with python3
Hm. Hopefully a core Chirp dev can respond. I'm not familiar with the codebase.
Sorry I'm not more help.
On Fri, Oct 4, 2019 at 10:05 AM Steven A. Falco <stevenfalco@gmail.commailto:stevenfalco@gmail.com> wrote: Here is the output of that command:
saf$ pip3 install -U gtk Collecting gtk Could not find a version that satisfies the requirement gtk (from versions: ) No matching distribution found for gtk
As an experiment, I tried modifying importdialog.py, replacing the "import gtk" line with:
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk as gtk
I also had to change "tips = gtk.Tooltips()" to "tips = gtk.Tooltip()", because they appear to have dropped the plural "s" from the class name.
However, the new "Tooltip" class seems to be different from the previous "Tooltips" class, because now I get this exception:
RROR: -- Exception: -- ERROR: Traceback (most recent call last): File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 361, in do_export dst_rthread) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 252, in _do_import_locked dialog = dlgclass(src_radio, dst_rthread.radio, self.parent_window) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 628, in __init__ self.build_ui() File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 506, in build_ui self.vbox.pack_start(self.make_view(), 1, 1, 1) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 333, in make_view tips.set_tip(lab, self.tips[k]) AttributeError: 'Tooltip' object has no attribute 'set_tip'
Again, I'm a python noob, but it looks like the python3 Gtk tooltip API has changed such that set_tip has been removed.
Steve
On 10/4/19 11:51 AM, David Boucha wrote:
Try running the following command
pip3 install -U gtk
On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco <stevenfalco@gmail.commailto:stevenfalco@gmail.com <mailto:stevenfalco@gmail.commailto:stevenfalco@gmail.com>> wrote:
The '>' symbols got mangled in my previous email, so here is a corrected email. This sequence fails to find gtk: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import gtk Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'gtk' But this sequence works: saf$ python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import gi >>> gi.require_version('Gtk', '3.0') >>> from gi.repository import Gtk >>> Is there something that I need to install? I'm a complete python noob. Steve
On Fri, Oct 4, 2019 at 2:28 PM John Higby KJ7HEL@hotmail.com wrote:
How do I remove myself from ongoing e-mails for this group ?
Look at the bottom of any of the emails.
Richard
It's not at the bottom of any of the emails.
On 04 October 2019 at 15:35 Richard Shaw hobbes1069@gmail.com wrote:
On Fri, Oct 4, 2019 at 2:28 PM John Higby < KJ7HEL@hotmail.com mailto:KJ7HEL@hotmail.com > wrote: > > How do I remove myself from ongoing e-mails for this group ?
>
Look at the bottom of any of the emails. Richard _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032 Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@ngunn.net www http://www.ngunn.net
To unsubscribe, send an email tochirp_users-unsubscribe@intrepid.danplanet.com
Tom Henderson
On 10/4/19 6:02 PM, Nigel A. Gunn G8IFF/W8IFF wrote:
It's not at the bottom of any of the emails.
On 04 October 2019 at 15:35 Richard Shaw hobbes1069@gmail.com wrote:
On Fri, Oct 4, 2019 at 2:28 PM John Higby < KJ7HEL@hotmail.com mailto:KJ7HEL@hotmail.com> wrote:
How do I remove myself from ongoing e-mails for this group ?
Look at the bottom of any of the emails.
Richard _______________________________________________ chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032 Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@ngunn.net www http://www.ngunn.net
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Tom KM4UQB at tom@henderson4.us To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
It’s at the very bottom of all the enn m ails I get.
Jardy Dawson WA7JRD
Message sent from some electronic device that only the Manufacturer of said device really cares about.
On Oct 4, 2019, at 19:35, Nigel A. Gunn G8IFF/W8IFF nigel@ngunn.net wrote:
It's not at the bottom of any of the emails.
On 04 October 2019 at 15:35 Richard Shaw hobbes1069@gmail.com wrote:
On Fri, Oct 4, 2019 at 2:28 PM John Higby < KJ7HEL@hotmail.com> wrote: How do I remove myself from ongoing e-mails for this group ?
Look at the bottom of any of the emails.
Richard
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032 Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@ngunn.net www http://www.ngunn.net
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Jardy at jardy72@yahoo.com To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
On Fri, Oct 4, 2019 at 6:02 PM Nigel A. Gunn G8IFF/W8IFF nigel@ngunn.net wrote:
It's not at the bottom of any of the emails.
You're email program may be collapsing it but luck just below this...
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
You go to here: http://intrepid.danplanet.com/mailman/listinfo/chirp_users
as you did in order to initially subscribe, you click the "unsubscribe or edit options" button,
when asked, you give your email address and password and click the "unsubscribe" button.
On 04 October 2019 at 15:27 John Higby KJ7HEL@hotmail.com wrote:
How do I remove myself from ongoing e-mails for this group ? --------------------------------------------- From: chirp_users-bounces@intrepid.danplanet.com <chirp_users-bounces@intrepid.danplanet.com> on behalf of David Boucha <boucha@gmail.com> Sent: Friday, October 4, 2019 10:48 AM To: Steven A. Falco <stevenfalco@gmail.com> Cc: Discussion of CHIRP <chirp_users@intrepid.danplanet.com> Subject: Re: [chirp_users] Trying chirpw with python3 Hm. Hopefully a core Chirp dev can respond. I'm not familiar with the codebase. Sorry I'm not more help. On Fri, Oct 4, 2019 at 10:05 AM Steven A. Falco < stevenfalco@gmail.com mailto:stevenfalco@gmail.com > wrote: > > Here is the output of that command:
saf$ pip3 install -U gtk Collecting gtk Could not find a version that satisfies the requirement gtk (from versions: ) No matching distribution found for gtk As an experiment, I tried modifying importdialog.py, replacing the "import gtk" line with: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk as gtk I also had to change "tips = gtk.Tooltips()" to "tips = gtk.Tooltip()", because they appear to have dropped the plural "s" from the class name. However, the new "Tooltip" class seems to be different from the previous "Tooltips" class, because now I get this exception: RROR: -- Exception: -- ERROR: Traceback (most recent call last): File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 361, in do_export dst_rthread) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 252, in _do_import_locked dialog = dlgclass(src_radio, dst_rthread.radio, self.parent_window) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 628, in __init__ self.build_ui() File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 506, in build_ui self.vbox.pack_start(self.make_view(), 1, 1, 1) File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 333, in make_view tips.set_tip(lab, self.tips[k]) AttributeError: 'Tooltip' object has no attribute 'set_tip' Again, I'm a python noob, but it looks like the python3 Gtk tooltip API has changed such that set_tip has been removed. Steve On 10/4/19 11:51 AM, David Boucha wrote: > Try running the following command > > pip3 install -U gtk > > On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco < stevenfalco@gmail.com mailto:stevenfalco@gmail.com <mailto: stevenfalco@gmail.com mailto:stevenfalco@gmail.com >> wrote: > > The '>' symbols got mangled in my previous email, so here is a corrected email. > > This sequence fails to find gtk: > > saf$ python3 > Python 3.7.4 (default, Jul 9 2019, 16:32:37) > [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import gtk > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ModuleNotFoundError: No module named 'gtk' > > But this sequence works: > > saf$ python3 > Python 3.7.4 (default, Jul 9 2019, 16:32:37) > [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import gi > >>> gi.require_version('Gtk', '3.0') > >>> from gi.repository import Gtk > >>> > > Is there something that I need to install? I'm a complete python noob. > > Steve > >
chirp_users mailing list chirp_users@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to Nigel Gunn, W8IFF at nigel@ngunn.net To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032 Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@ngunn.net www http://www.ngunn.net
participants (7)
-
David Boucha
-
Jardy
-
John Higby
-
Nigel A. Gunn G8IFF/W8IFF
-
Richard Shaw
-
Steven A. Falco
-
Tom Henderson