[chirp_users] Trying chirpw with python3

David Boucha
Fri Oct 4 10:48:15 PDT 2019


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 at 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 at gmail.com
> <mailto:stevenfalco at 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_users/attachments/20191004/cec0ca28/attachment.html 


More information about the chirp_users mailing list