<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I've decided to try my hand at this port.</p>
<p>I found the run_tests.py file in the tests folder, and am going
through everything in there to ensure it doesn't crash or fail. I
have the latest pull from Mercury, and am running all the tests
there, too, to ensure they don't fail (or crash) in that version -
I bet they don't.</p>
<p>Right now, I've gotten to the Wouxun radios, and am having an
issue with the mode_password and reset_password settings. I've
gotten around the problem, but I think there might be a better way
to do it. The way I've currently done it is in set_settings, where
it calls <font face="monospace">setattr(obj, setting,
element.value)</font> I've tested element.value to see if it is
a dict_values instance, and if it is, I create a list out of
element.value before calling <font face="monospace">setattr</font>.</p>
<p>I'm wondering, however, if it wouldn't be better to make the
mode_password and reset_password lists right off the bat, however?</p>
<p>Joe<br>
KI5LST</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 12/20/2020 9:57 PM, Matthew Poletiek
via chirp_devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJhSV8uFnOxkg6nvQteGj=yc5PmmiH-yY+cqyM7s4P-CG=CdSw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi All,</div>
<div><br>
</div>
<div>I've made a lot of progress on getting the latest py3
branch working across multiple platforms. I'm maintaining all
my working changes here for now: <a
href="https://github.com/mpoletiek/py3-CHIRP"
moz-do-not-send="true">https://github.com/mpoletiek/py3-CHIRP</a><br>
<br>
</div>
<div>I've even made a list of supported devices and am marking
the ones I've personally tested: <a
href="https://github.com/mpoletiek/py3-CHIRP/blob/main/RADIOS.md"
moz-do-not-send="true">https://github.com/mpoletiek/py3-CHIRP/blob/main/RADIOS.md</a><br>
<br>
</div>
<div>Currently I only own a BF-F8HP so I've marked all the
Radios that use that driver <span
style="font-family:monospace">`TESTED`</span>.</div>
<div><br>
</div>
<div>I've been playing around with Tox and testing the other
drivers that way too. With a few changes I was able to get it
working and run every test against every driver. A lot of them
passed every test just fine, but a lot of them are failing
here and there. <br>
</div>
<div><br>
</div>
<div>As expected the debug.log is quite long and I figured I'd
go through the drivers one by one that way, but the
recommended syntax for doing that doesn't seem to work as
expected.</div>
<div><br>
</div>
<div><a
href="https://chirp.danplanet.com/projects/chirp/wiki/DevelopersProcess"
moz-do-not-send="true">https://chirp.danplanet.com/projects/chirp/wiki/DevelopersProcess</a></div>
<div><br>
</div>
<div><span style="font-family:monospace">`tox -e driver -- -d
Icom_IC-2820H`</span></div>
<div><br>
</div>
<div>Running this command gives me the following in a Python3.7
environment:</div>
<div><br>
</div>
<div>
<pre class="gmail-lang-sh gmail-s-code-block gmail-hljs gmail-bash"><code>`ERROR: MISSING <span class="gmail-hljs-built_in">test</span> execution (tx) nodes: please specify --tx`
</code></pre>
<pre class="gmail-lang-sh gmail-s-code-block gmail-hljs gmail-bash"><code><font face="arial,sans-serif">When I add '<span style="font-family:monospace">-n 2</span>' or <span style="font-family:monospace">`--tx popen//python=python3.7`</span> to the pytest command it exits with <span style="font-family:monospace">`code: 5 (no tests run)</span></font>`
</code></pre>
<pre class="gmail-lang-sh gmail-s-code-block gmail-hljs gmail-bash"><code><font face="arial,sans-serif">Anyone familiar enough with tox to help me out with this?</font>
</code></pre>
<pre class="gmail-lang-sh gmail-s-code-block gmail-hljs gmail-bash"><code><font face="arial,sans-serif">There's also a py3driver env setup in the tox.ini file, but that doesn't work either.
</font></code></pre>
<pre class="gmail-lang-sh gmail-s-code-block gmail-hljs gmail-bash"><code><font face="arial,sans-serif">Thanks,
</font></code></pre>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>-------------------------------------------<br>
</div>
<div>Matthew Poletiek</div>
<div>303.810.9082</div>
<div><a href="mailto:matthew.poletiek@gmail.com"
target="_blank" moz-do-not-send="true">matthew.poletiek@gmail.com</a></div>
<div><a href="http://www.matthewpoletiek.com"
target="_blank" moz-do-not-send="true">www.matthewpoletiek.com</a></div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
chirp_devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>
<a class="moz-txt-link-freetext" href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a>
Developer docs: <a class="moz-txt-link-freetext" href="http://chirp.danplanet.com/projects/chirp/wiki/Developers">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Joe Pizzi</pre>
</body>
</html>