I have not loaded the latest version of hplip yet as I have to compile it, which takes ages as the hplip configure script does not respect the "--prefix=/usr/local" switch and it does not check to see if cups, python and sane are in /usr/local.
Although most of the hplip python scripts use #!/usr/bin/env python, the following do not:
Could you let me know where (check.py?) I need to edit things to point to /usr/local/lib/python2.7/site-packages/cupsext.so rather than /usr/lib/python2.7/site-packages/cupsext.so?
I have not loaded the latest version of hplip yet as I have to compile it, which takes ages as the hplip configure script does not respect the "--prefix= /usr/local" switch and it does not check to see if cups, python and sane are in /usr/local.
Although most of the hplip python scripts use #!/usr/bin/env python, the following do not:
doctor.py, logcapture.py, makeuri.py, setup.py, uninstall.py, upgrade.py
device.py magic.py
..and even after editing these to "#!/usr/bin/env python", I get the following:
$ hp-setup
warning: CUPSEXT could not be loaded. Please check HPLIP installation.
..but:
$ ldd /usr/local/ lib/python2. 7/site- packages/ cupsext. so
linux- vdso.so. 1 (0x00007fff7afa 5000)
libcups. so.2 => /usr/local/ lib/libcups. so.2 (0x00007f32f52b 6000)
libcrypto. so.1.0. 0 => /usr/local/ lib/libcrypto. so.1.0. 0 (0x00007f32f4f0 4000) 5000)
libgcc_ s.so.1 => /usr/lib/ libgcc_ s.so.1 (0x00007f32f498 4000)
libssl. so.1.0. 0 => /usr/local/ lib/libssl. so.1.0. 0 (0x00007f32f472 7000)
libavahi- common. so.3 => /usr/local/ lib/libavahi- common. so.3 (0x00007f32f451 b000)
libavahi- client. so.3 => /usr/local/ lib/libavahi- client. so.3 (0x00007f32f430 c000)
libpthread. so.0 => /lib/libpthread .so.0 (0x00007f32f40f 1000) c000)
libcrypt. so.1 => /lib/libcrypt.so.1 (0x00007f32f3bc 6000) 4000) f000)
/lib/ld- linux-x86- 64.so.2 (0x00007f32f571 e000) lib/libssp. so.0 (0x00007f32f35a d000)
libdbus- 1.so.3 => /usr/local/ lib/libdbus- 1.so.3 (0x00007f32f337 1000) 8000)
libc.so.6 => /lib/libc.so.6 (0x00007f32f4b9
libm.so.6 => /lib/libm.so.6 (0x00007f32f3df
libz.so.1 => /usr/lib/libz.so.1 (0x00007f32f39b
libdl.so.2 => /lib/libdl.so.2 (0x00007f32f37a
libssp.so.0 => /usr/local/
librt.so.1 => /lib/librt.so.1 (0x00007f32f316
Could you let me know where (check.py?) I need to edit things to point to /usr/local/ lib/python2. 7/site- packages/ cupsext. so rather than /usr/lib/ python2. 7/site- packages/ cupsext. so?