YosysHQ / apicula

Project Apicula 🐝: bitstream documentation for Gowin FPGAs
MIT License
462 stars 66 forks source link

AttributeError: module 'importlib.resources' has no attribute 'files' #188

Closed marsohod4you closed 1 year ago

marsohod4you commented 1 year ago

I am trying to build custom project for Gowin chip. But cannot pack. With version oss-cad-suite-windows-x64-20230508.exe this worked correctly for my project. But now after update with version oss-cad-suite-windows-x64-20230726.exe I get error message:

gowin_pack -d GW1NR-UV9QN88C6/I5 -o output\out-pack.fs output\out-pnr.json
<frozen importlib._bootstrap>:219: Warning: Numpy built with MINGW-W64 on Windows 64 bits is experimental, and only available for
testing. You are advised not to use it for production.

CRASHES ARE TO BE EXPECTED - PLEASE REPORT THEM TO NUMPY DEVELOPERS
Traceback (most recent call last):
  File "d:\Gowin\oss-cad-suite\bin\gowin_pack-script.py", line 33, in <module>
    sys.exit(load_entry_point('Apycula==0.8.2a2.dev1+g8e31050', 'console_scripts', 'gowin_pack')())
  File "D:\Gowin\oss-cad-suite\lib\python3.8\site-packages\Apycula-0.8.2a2.dev1+g8e31050-py3.8.egg\apycula\gowin_pack.py", line 984, in main
AttributeError: module 'importlib.resources' has no attribute 'files'

What can be issue with new oss-cad-suite?

yrabbit commented 1 year ago

It's all about the Python version. The current state of affairs in this area can be obtained from the persons involved in the conversation, I think:)

https://github.com/YosysHQ/apicula/pull/183#issuecomment-1639125762

pepijndevos commented 1 year ago

Hm no news from our new friend right? I'll look at it next week when I'm back home.

marsohod4you commented 1 year ago

It's all about the Python version. The current state of affairs in this area can be obtained from the persons involved in the conversation, I think:)

I was thinking oss-cad-suite uses internal python distro. Is it correct? So my additional pythons installed in system cannot be trouble. At least with previous oss-cad-suite I had near installation python 3.9 and all worked. Now I have uninstalled all python versions I had on my Windows PC and I see that still yosys and nextpnr-gowin work properly only gowin-pack fails.

Should I try to install in my Windows OS additional Python 3.8? I think not..

sergeyu commented 1 year ago

Having the same issue on Mac arm64 (M2 Max).

pepijndevos commented 1 year ago

fixed by #189