It still may impact the installation of wxpython though since that was where I hit the snag. It is already installed so I did not remove it and attempt a reinstall.
Jeff KI7GJG On Thu, Mar 9, 2023 at 3:50 PM Jeffrey Vian <[email protected]> wrote: > 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. > > Jeff > KI7GJG > > > > On Thu, Mar 9, 2023 at 11:51 AM Martin Cooper <[email protected]> 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 < >> [email protected]> 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 <[email protected]> >>> 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 < >>>> [email protected]> wrote: >>>> >>>>> I run Fedpra Linux version 37 which has python 3.11 >>>>> >>>>> 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). >>>>> >>>>> 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? >>>>> >>>>> Jeff >>>>> KI7GJG >>>>> >>>>> _______________________________________________ >>>>> chirp_users mailing list >>>>> [email protected] >>>>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users >>>>> This message was sent to Martin Cooper at [email protected] >>>>> To unsubscribe, send an email to >>>>> [email protected] >>>>> To report this email as off-topic, please email >>>>> [email protected] >>>>> Searchable archive: >>>>> https://www.mail-archive.com/[email protected] >>>> >>>> _______________________________________________ >>>> chirp_users mailing list >>>> [email protected] >>>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users >>>> This message was sent to [email protected] at >>>> [email protected] >>>> To unsubscribe, send an email to >>>> [email protected] >>>> To report this email as off-topic, please email >>>> [email protected] >>>> Searchable archive: >>>> https://www.mail-archive.com/[email protected] >>> >>> _______________________________________________ >>> chirp_users mailing list >>> [email protected] >>> http://intrepid.danplanet.com/mailman/listinfo/chirp_users >>> This message was sent to Martin Cooper at [email protected] >>> To unsubscribe, send an email to >>> [email protected] >>> To report this email as off-topic, please email >>> [email protected] >>> Searchable archive: >>> https://www.mail-archive.com/[email protected] >> >> _______________________________________________ >> chirp_users mailing list >> [email protected] >> http://intrepid.danplanet.com/mailman/listinfo/chirp_users >> This message was sent to [email protected] at >> [email protected] >> To unsubscribe, send an email to >> [email protected] >> To report this email as off-topic, please email >> [email protected] >> Searchable archive: >> https://www.mail-archive.com/[email protected] > >
_______________________________________________ chirp_users mailing list [email protected] http://intrepid.danplanet.com/mailman/listinfo/chirp_users This message was sent to [email protected] at [email protected] To unsubscribe, send an email to [email protected] To report this email as off-topic, please email [email protected] Searchable archive: https://www.mail-archive.com/[email protected]
