PoC icon indicating copy to clipboard operation
PoC copied to clipboard

Failed to configure

Open albydnc opened this issue 3 years ago • 3 comments

I am trying to configure PoC for GHDL under Fedora 35. When I run the sh script I get:

$ ~/PoC/poc.sh configure GHDL
IMPORT ERROR: One or more Python packages are not available in your environment.
Missing package: 'collections'

Run: 'python3 -m pip install -r requirements.txt'

I am running on Python 3.10.7 and it has collections.

albydnc avatar Nov 01 '22 11:11 albydnc

I have no in-depth knowledge about the scripting part. @Paebbels can you help with this problem?

stefanunrein avatar Nov 07 '22 09:11 stefanunrein

I ran into the same problem today. I tried it with Python 3.11.0 / 3.9.12 / 3.7.9 under Windows10, in virtual env. I have not found the source of the problem yet. Any help would be highly appreciated.

kbc-mh avatar Nov 24 '22 11:11 kbc-mh

I had the same issue and was able to fix it by changing the line 41 in PoC\lib\pyIPCMI\lib\ExtendedConfigParser_init_.py:

from collections import OrderedDict as _default_dict, ChainMap as _ChainMap, MutableMapping

To:

from collections import OrderedDict as _default_dict, ChainMap as _ChainMap from collections.abc import MutableMapping

Apparently after Python 3.5 MutableMapping was deprecated in collections and relocated to the collections.abc package. I do not know the full extent of behavior across all the versions to suggest most appropriate fix for the code base.

poneill1001 avatar Aug 29 '23 04:08 poneill1001