-
Notifications
You must be signed in to change notification settings - Fork 432
Description
Describe the bug
When compiling on a system with Python 3.12 or newer, the following error appears during make install. After doing a quick search, I found that the imp module is no longer included in Python.
- [*] I have checked the FAQ and my issue is not mention there.
To Reproduce
Steps to reproduce the behavior:
- Download and unpack the source code for redshift-1.12
- Run `./configure --enable-gui && make && make install
- See error
Expected behavior
make install completes successfully.
Error output/logs/screenshots
+ make install DESTDIR=/home/kjg/rpmbuild/BUILD/redshift-1.12-build/BUILDROOT Making install in src make[1]: Entering directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src' Making install in redshift-gtk make[2]: Entering directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src/redshift-gtk' make[3]: Entering directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src/redshift-gtk' /usr/bin/mkdir -p '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/BUILDROOT/usr/bin' /usr/bin/install -c redshift-gtk '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/BUILDROOT/usr/bin' GEN defs.py /usr/bin/mkdir -p '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/BUILDROOT/usr/lib/python3.13/site-packages/redshift_gtk' /usr/bin/install -c -m 644 defs.py '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/BUILDROOT/usr/lib/python3.13/site-packages/redshift_gtk' Traceback (most recent call last): File "<string>", line 2, in <module> import sys, os, py_compile, imp ModuleNotFoundError: No module named 'imp' make[3]: *** [Makefile:435: install-nodist_redshift_gtkPYTHON] Error 1 make[3]: Leaving directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src/redshift-gtk' make[2]: *** [Makefile:579: install-am] Error 2 make[2]: Leaving directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src/redshift-gtk' make[1]: *** [Makefile:761: install-recursive] Error 1 make[1]: Leaving directory '/home/kjg/rpmbuild/BUILD/redshift-1.12-build/redshift-1.12/src' make: *** [Makefile:774: install-recursive] Error 1
Software versions (please complete the following information):
- OS: Linux
- Redshift version: [e.g. 1.12, run
redshift -Vin a terminal] - Distribution: openSUSE Leap 16.0
- Redshift installed from: Attempted install from source