<div dir="ltr">Hm. Hopefully a core Chirp dev can respond. I'm not familiar with the codebase.<div><br></div><div>Sorry I'm not more help.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 4, 2019 at 10:05 AM Steven A. Falco <<a href="mailto:stevenfalco@gmail.com">stevenfalco@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Here is the output of that command:<br>
<br>
saf$ pip3 install -U gtk<br>
Collecting gtk<br>
Could not find a version that satisfies the requirement gtk (from versions: )<br>
No matching distribution found for gtk<br>
<br>
<br>
<br>
As an experiment, I tried modifying importdialog.py, replacing the "import gtk" line with:<br>
<br>
import gi<br>
gi.require_version('Gtk', '3.0')<br>
from gi.repository import Gtk as gtk<br>
<br>
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.<br>
<br>
However, the new "Tooltip" class seems to be different from the previous "Tooltips" class, because now I get this exception:<br>
<br>
RROR: -- Exception: --<br>
ERROR: Traceback (most recent call last):<br>
File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 361, in do_export<br>
dst_rthread)<br>
File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/editorset.py", line 252, in _do_import_locked<br>
dialog = dlgclass(src_radio, dst_rthread.radio, self.parent_window)<br>
File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 628, in __init__<br>
self.build_ui()<br>
File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 506, in build_ui<br>
self.vbox.pack_start(self.make_view(), 1, 1, 1)<br>
File "/home/sfalco/radio/baofeng/chirp.hg/chirp/ui/importdialog.py", line 333, in make_view<br>
tips.set_tip(lab, self.tips[k])<br>
AttributeError: 'Tooltip' object has no attribute 'set_tip'<br>
<br>
Again, I'm a python noob, but it looks like the python3 Gtk tooltip API has changed such that set_tip has been removed.<br>
<br>
Steve<br>
<br>
<br>
On 10/4/19 11:51 AM, David Boucha wrote:<br>
> Try running the following command<br>
> <br>
> pip3 install -U gtk<br>
> <br>
> On Fri, Oct 4, 2019 at 8:45 AM Steven A. Falco <<a href="mailto:stevenfalco@gmail.com" target="_blank">stevenfalco@gmail.com</a> <mailto:<a href="mailto:stevenfalco@gmail.com" target="_blank">stevenfalco@gmail.com</a>>> wrote:<br>
> <br>
> The '>' symbols got mangled in my previous email, so here is a corrected email.<br>
> <br>
> This sequence fails to find gtk:<br>
> <br>
> saf$ python3<br>
> Python 3.7.4 (default, Jul 9 2019, 16:32:37)<br>
> [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import gtk<br>
> Traceback (most recent call last):<br>
> File "<stdin>", line 1, in <module><br>
> ModuleNotFoundError: No module named 'gtk'<br>
> <br>
> But this sequence works:<br>
> <br>
> saf$ python3<br>
> Python 3.7.4 (default, Jul 9 2019, 16:32:37)<br>
> [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux<br>
> Type "help", "copyright", "credits" or "license" for more information.<br>
> >>> import gi<br>
> >>> gi.require_version('Gtk', '3.0')<br>
> >>> from gi.repository import Gtk<br>
> >>><br>
> <br>
> Is there something that I need to install? I'm a complete python noob.<br>
> <br>
> Steve<br>
> <br>
<br>
</blockquote></div>