<div dir="ltr"><div class="gmail_default" style="font-size:small">Rather than changing Python code, removing attrdict and installing attrdict3 should do the trick. But since you have it working now ...</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It would fail with Python 3.10 too, since that&#39;s when the removals happened. With 3.9 and earlier, it should be fine, albeit with some deprecation warnings that have been there since 3.3.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Martin.</div><div class="gmail_default" style="font-size:small">KD6YAM</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023 at 9:38 AM Jeffrey Vian &lt;<a href="mailto:sandhillsinvestment@gmail.com">sandhillsinvestment@gmail.com</a>&gt; 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"><div dir="ltr">attrdict was definitely used by wxpython.  I installed it using pip, then the noted errors popped up.<div>I was able to work around the problem by adding the following lines to `/usr/lib64/python3.11/collections/__init__.py` </div><div><br></div><div>&quot;</div><div>from _collections_abc import Mapping<br>from _collections_abc import MutableMapping<br>from _collections_abc import Sequence<br></div><div>&quot;</div><div><br></div><div>After adding those lines for the modules that wxpython was complaining about the install completed.</div><div>Note that nothing I found in the install instructions said that wheel was needed, but as a matter of course I always install wheel and wxpython also used it, building several wheels for the packages installed.</div><div><br></div><div>Your note seems to indicate that those modules would not have erred with python 3.10 but definitely did with python 3.11.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Jeff</div><div><br></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023 at 10:42 AM Martin Cooper &lt;<a href="mailto:mfncooper@gmail.com" target="_blank">mfncooper@gmail.com</a>&gt; 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"><div dir="ltr"><div class="gmail_default" style="font-size:small">As of Python 3.10:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">&gt; Remove deprecated aliases to Collections Abstract Base Classes from the collections module.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">They were originally deprecated in Python 3.3, a long time ago. This means that the old (and now archived) attrdict package no longer works, and needs to be replaced with attrdict3, which correctly uses &#39;collections.abc&#39; instead of &#39;collections&#39; for Mapping and similar classes.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I believe attrdict is being used by wxPython. Replacing it with attrdict3 should work, though I don&#39;t have the environment to try it myself.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Martin.</div><div class="gmail_default" style="font-size:small">KD6YAM</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 9, 2023 at 8:08 AM Jeffrey Vian &lt;<a href="mailto:sandhillsinvestment@gmail.com" target="_blank">sandhillsinvestment@gmail.com</a>&gt; 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"><div dir="ltr"><div>I run Fedpra Linux version 37 which has python 3.11</div><div><br></div><div>I have previously used CHIRP and am upgrading to the newer python3 version but am encountering several issues.  Each time I try to launch the new  version I get an error, and have been working through them one at a time (which mostly requires installing a python package not previously installed).</div><div><br></div><div>I have, however, hit one that I cannot find the proper fix for.</div><div>----</div><div>        File &quot;/home/USERNAME/.local/lib/python3.11/site-packages/attrdict/mapping.py&quot;, line 4, in &lt;module&gt;<br>          from collections import Mapping<br>      ImportError: cannot import name &#39;Mapping&#39; from &#39;collections&#39; (/usr/lib64/python3.11/collections/__init__.py)<br>      [end of output]<br></div><div>----</div><div>Looking at the collections module installed for the system it does not seem to have the Mapping module as the error states and I cannot figure out how to fix that issue.  Does someone with python experience have any suggestions?</div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Jeff</div><div>KI7GJG</div><div><br></div></div></div></div></div></div></div>
_______________________________________________<br>
chirp_users mailing list<br>
<a href="mailto:chirp_users@intrepid.danplanet.com" target="_blank">chirp_users@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>
This message was sent to Martin Cooper at <a href="mailto:mfncooper@gmail.com" target="_blank">mfncooper@gmail.com</a><br>
To unsubscribe, send an email to <a href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" target="_blank">chirp_users-unsubscribe@intrepid.danplanet.com</a><br>
To report this email as off-topic, please email <a href="mailto:chirp_users-owner@intrepid.danplanet.com" target="_blank">chirp_users-owner@intrepid.danplanet.com</a><br>
Searchable archive: <a href="https://www.mail-archive.com/chirp_users@intrepid.danplanet.com" rel="noreferrer" target="_blank">https://www.mail-archive.com/chirp_users@intrepid.danplanet.com</a></blockquote></div>
_______________________________________________<br>
chirp_users mailing list<br>
<a href="mailto:chirp_users@intrepid.danplanet.com" target="_blank">chirp_users@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>
This message was sent to <a href="mailto:sandhillsinvestment@gmail.com" target="_blank">sandhillsinvestment@gmail.com</a> at <a href="mailto:sandhillsinvestment@gmail.com" target="_blank">sandhillsinvestment@gmail.com</a><br>
To unsubscribe, send an email to <a href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" target="_blank">chirp_users-unsubscribe@intrepid.danplanet.com</a><br>
To report this email as off-topic, please email <a href="mailto:chirp_users-owner@intrepid.danplanet.com" target="_blank">chirp_users-owner@intrepid.danplanet.com</a><br>
Searchable archive: <a href="https://www.mail-archive.com/chirp_users@intrepid.danplanet.com" rel="noreferrer" target="_blank">https://www.mail-archive.com/chirp_users@intrepid.danplanet.com</a></blockquote></div>
_______________________________________________<br>
chirp_users mailing list<br>
<a href="mailto:chirp_users@intrepid.danplanet.com" target="_blank">chirp_users@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_users" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_users</a><br>
This message was sent to Martin Cooper at <a href="mailto:mfncooper@gmail.com" target="_blank">mfncooper@gmail.com</a><br>
To unsubscribe, send an email to <a href="mailto:chirp_users-unsubscribe@intrepid.danplanet.com" target="_blank">chirp_users-unsubscribe@intrepid.danplanet.com</a><br>
To report this email as off-topic, please email <a href="mailto:chirp_users-owner@intrepid.danplanet.com" target="_blank">chirp_users-owner@intrepid.danplanet.com</a><br>
Searchable archive: <a href="https://www.mail-archive.com/chirp_users@intrepid.danplanet.com" rel="noreferrer" target="_blank">https://www.mail-archive.com/chirp_users@intrepid.danplanet.com</a></blockquote></div>