Thanks for the hint. I removed attrdict and installed attrdict3, then reverted my changes to the system file to original and chirp works well.It would be nice if detailed instructions for Fedora and rpm based distros were included since the site only shows how to do an install on Ubuntu. Package names are not the same and several necessary dependencies are not listed.Luckily I have some experience with installing python packages, but not all users do.JeffKI7GJGOn Thu, Mar 9, 2023 at 11:51 AM Martin Cooper <mfncooper@gmail.com> wrote:Rather than changing Python code, removing attrdict and installing attrdict3 should do the trick. But since you have it working now ...It would fail with Python 3.10 too, since that'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.Martin.KD6YAM_______________________________________________On Thu, Mar 9, 2023 at 9:38 AM Jeffrey Vian <sandhillsinvestment@gmail.com> wrote:attrdict was definitely used by wxpython. I installed it using pip, then the noted errors popped up.I was able to work around the problem by adding the following lines to `/usr/lib64/python3.11/collections/__init__.py`"from _collections_abc import Mapping
from _collections_abc import MutableMapping
from _collections_abc import Sequence"After adding those lines for the modules that wxpython was complaining about the install completed.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.Your note seems to indicate that those modules would not have erred with python 3.10 but definitely did with python 3.11.Jeff_______________________________________________On Thu, Mar 9, 2023 at 10:42 AM Martin Cooper <mfncooper@gmail.com> wrote:As of Python 3.10:> Remove deprecated aliases to Collections Abstract Base Classes from the collections module.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 'collections.abc' instead of 'collections' for Mapping and similar classes.I believe attrdict is being used by wxPython. Replacing it with attrdict3 should work, though I don't have the environment to try it myself.Martin.KD6YAM_______________________________________________On Thu, Mar 9, 2023 at 8:08 AM Jeffrey Vian <sandhillsinvestment@gmail.com> wrote:_______________________________________________I run Fedpra Linux version 37 which has python 3.11I 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).I have, however, hit one that I cannot find the proper fix for.----File "/home/USERNAME/.local/lib/python3.11/site-packages/attrdict/mapping.py", line 4, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib64/python3.11/collections/__init__.py)
[end of output]----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?JeffKI7GJG
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to Martin Cooper at mfncooper@gmail.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
To report this email as off-topic, please email chirp_users-owner@intrepid.danplanet.com
Searchable archive: https://www.mail-archive.com/chirp_users@intrepid.danplanet.com
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to sandhillsinvestment@gmail.com at sandhillsinvestment@gmail.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
To report this email as off-topic, please email chirp_users-owner@intrepid.danplanet.com
Searchable archive: https://www.mail-archive.com/chirp_users@intrepid.danplanet.com
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to Martin Cooper at mfncooper@gmail.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
To report this email as off-topic, please email chirp_users-owner@intrepid.danplanet.com
Searchable archive: https://www.mail-archive.com/chirp_users@intrepid.danplanet.com
chirp_users mailing list
chirp_users@intrepid.danplanet.com
http://intrepid.danplanet.com/mailman/listinfo/chirp_users
This message was sent to sandhillsinvestment@gmail.com at sandhillsinvestment@gmail.com
To unsubscribe, send an email to chirp_users-unsubscribe@intrepid.danplanet.com
To report this email as off-topic, please email chirp_users-owner@intrepid.danplanet.com
Searchable archive: https://www.mail-archive.com/chirp_users@intrepid.danplanet.com