Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sensorium opened this issue Aug 10, 2024 · 1 comment
Open

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

sensorium opened this issue Aug 10, 2024 · 1 comment

Comments

@sensorium
Copy link
Contributor

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
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant