VLSI-EDA / PoC

IP Core Library - Published and maintained by the Chair for VLSI Design, Diagnostics and Architecture, Faculty of Computer Science, Technische Universität Dresden, Germany
https://tu-dresden.de/ing/informatik/ti/vlsi
Other
538 stars 93 forks source link

Failed to configure #70

Open albydnc opened 1 year ago

albydnc commented 1 year ago

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.

stefanunrein commented 1 year ago

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

kbc-mh commented 1 year ago

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.

poneill1001 commented 1 year ago

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.