mod-audio / mod-plugin-builder

MOD Plugin Builder
77 stars 49 forks source link

./bootstrap.sh moddwarf fails on ubuntustudio 24.04 #185

Open sensorium opened 1 month ago

sensorium commented 1 month ago

Hi, a fresh install of mod-plugin-builder on a fresh ubuntustudio 24.04 fails as follows... I think it's due to "imp" being deprecated in favour of "importlib" in python 3.12. Could I workaround it by downgrading python? (Any help appreciated! thanks)

/usr/bin/make  install-am
 /usr/bin/mkdir -p '/home/tim/mod-workdir/moddwarf/host/usr/bin'
 /usr/bin/mkdir -p '/home/tim/mod-workdir/moddwarf/host/usr/share/glib-2.0/codegen'
 /usr/bin/install -c gdbus-codegen '/home/tim/mod-workdir/moddwarf/host/usr/bin'
 /usr/bin/install -c -m 644 __init__.py codegen.py codegen_main.py codegen_docbook.py config.py dbustypes.py parser.py utils.py '/home/tim/mod-workdir/moddwarf/host/usr/share/glib-2.0/codegen'
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'imp'
make[8]: *** [Makefile:982: install-codegenPYTHON] Error 1
make[7]: *** [Makefile:1284: install-am] Error 2
make[6]: *** [Makefile:1278: install] Error 2
make[5]: *** [Makefile:4092: install-recursive] Error 1
make[4]: *** [Makefile:4414: install] Error 2
make[3]: *** [Makefile:1211: install-recursive] Error 1
make[2]: *** [Makefile:1677: install] Error 2
make[1]: *** [package/pkg-generic.mk:208: /home/tim/mod-workdir/moddwarf/build/host-libglib2-2.46.2/.stamp_host_installed] Error 2
make: *** [Makefile:36: _all] Error 2
sensorium commented 4 weeks ago

It worked using a virtual python environment (3.7, but I think anything under 3.12 ought to work... though 3.11 didn't for me). Also, ./bootstrap.sh moddwarf-new rather than moddwarf. I don't remember where the suggestion to use moddwarf-new came from... would that be a useful thing to have in the README, or is there a reason why moddwarf is there? Thanks for your monumental work!