redshift icon indicating copy to clipboard operation
redshift copied to clipboard

Python module "imp" no longer exists

Open ItchyBugReporter opened this issue 2 months ago • 0 comments

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.

To Reproduce Steps to reproduce the behavior:

  1. Download and unpack the source code for redshift-1.12
  2. Run `./configure --enable-gui && make && make install
  3. 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 -V in a terminal]
  • Distribution: openSUSE Leap 16.0
  • Redshift installed from: Attempted install from source

ItchyBugReporter avatar Nov 04 '25 04:11 ItchyBugReporter