<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
How do I remove myself from ongoing e-mails for this group ?</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> chirp_users-bounces@intrepid.danplanet.com <chirp_users-bounces@intrepid.danplanet.com> on behalf of David Boucha <boucha@gmail.com><br>
<b>Sent:</b> Friday, October 4, 2019 10:48 AM<br>
<b>To:</b> Steven A. Falco <stevenfalco@gmail.com><br>
<b>Cc:</b> Discussion of CHIRP <chirp_users@intrepid.danplanet.com><br>
<b>Subject:</b> Re: [chirp_users] Trying chirpw with python3</font>
<div> </div>
</div>
<div>
<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="x_gmail_quote">
<div dir="ltr" class="x_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="x_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>
</div>
</body>
</html>