Syntax error installing drivers for photosmart c8100 series

Asked by Eugene

I just installed the latest version of my Linux distro on a new system and went to install my printer and get the message:
Unable to load the requested driver:
/usr/share/cups/model/HP/hp-photosmart_c8100_series-hpijs.ppd.gz(line 29): syntax error, unexpected ':"

I extracted this file and I don't see any : in line 29, the closest is line 30

*DefaultResolution: 1200dpi*FoomaticRIPOptionSetting

Is just removing the : the correct syntax? Has the format changed from a previous version so I could just extract this driver file from when it did work.

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Please run hp-check -t and post the output.

This problem is caused because HPLIP was installed as a drv install and it needs to be a foomatic ppd install.

Post your hp-check and I'll be able to give you some options to best correct this.

Thanks.

Aaron

Revision history for this message
Eugene (enine) said :
#2

hp-check[3656]: info: :
Initializing. Please wait...
scheduler is running

1.3.9

Linux darkstar 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux

hp-check[3656]: info: :
hp-check[3656]: info: :---------------
hp-check[3656]: info: :| SYSTEM INFO |
hp-check[3656]: info: :---------------
hp-check[3656]: info: :
hp-check[3656]: info: :Basic system information:
hp-check[3656]: info: :Linux darkstar 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux
hp-check[3656]: info: :
hp-check[3656]: info: :Distribution:
hp-check[3656]: info: :unknown 0.0
hp-check[3656]: info: :
HPOJ running?
hp-check[3656]: info: :No, HPOJ is not running (OK).
hp-check[3656]: info: :
hp-check[3656]: info: :Checking Python version...
hp-check[3656]: info: :OK, version 2.5.2 installed
hp-check[3656]: info: :
hp-check[3656]: info: :Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for CUPS...
hp-check[3656]: info: :Status: scheduler is running
hp-check[3656]: info: :Version: 1.3.9
hp-check[3656]: info: :error_log is set to level: info
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dbus/python-dbus...
hp-check[3656]: info: :dbus daemon is running.
hp-check[3656]: info: :python-dbus version: 0.83.0
hp-check[3656]: info: :
hp-check[3656]: info: :
hp-check[3656]: info: :------------------------------------
hp-check[3656]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[3656]: info: :------------------------------------
hp-check[3656]: info: :
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: CUPS - Common Unix Printing System...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: CUPS devel- Common Unix Printing System development files...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: CUPS image - CUPS image development files...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: DBus - Message bus system...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libtool - Library building support services...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: libusb - USB library...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: ppdev - Parallel port support kernel module....
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python ctypes - A foreign function library for Python...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python devel - Python development files...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python XML libraries...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: SANE - Scanning library...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :
hp-check[3656]: info: :----------------------
hp-check[3656]: info: :| HPLIP INSTALLATION |
hp-check[3656]: info: :----------------------
hp-check[3656]: info: :
hp-check[3656]: info: :
hp-check[3656]: info: :Currently installed HPLIP version...
hp-check[3656]: info: :HPLIP 3.9.4b currently installed in '/usr/local/share/hplip'.
hp-check[3656]: info: :
hp-check[3656]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[3656]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

[dirs]
home=/usr/local/share/hplip
run=/var/run
ppd=/usr/local/share/ppd/HP
ppdbase=/usr/local/share/ppd
doc=/usr/local/share/doc/hplip-3.9.4b
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/local/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4b.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no

hp-check[3656]: info: :
hp-check[3656]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[3656]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[3656]: info: :
hp-check[3656]: info: :Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory
hp-check[3656]: info: :
hp-check[3656]: info: :-------------------------------
hp-check[3656]: info: :| DISCOVERED PARALLEL DEVICES |
hp-check[3656]: info: :-------------------------------
hp-check[3656]: info: :
hp-check[3656]: info: :No devices found.
hp-check[3656]: info: :
hp-check[3656]: info: :--------------------------
hp-check[3656]: info: :| DISCOVERED USB DEVICES |
hp-check[3656]: info: :--------------------------
hp-check[3656]: info: :
hp-check[3656]: info: :No devices found.
hp-check[3656]: info: :
hp-check[3656]: info: :---------------------------------
hp-check[3656]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[3656]: info: :---------------------------------
hp-check[3656]: info: :
hp-check[3656]: info: :
warning: No queues found.
hp-check[3656]: info: :
hp-check[3656]: info: :----------------------
hp-check[3656]: info: :| SANE CONFIGURATION |
hp-check[3656]: info: :----------------------
hp-check[3656]: info: :
hp-check[3656]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[3656]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking output of 'scanimage -L'...
hp-check[3656]: info: :device `v4l:/dev/video0' is a Noname Digital_Camera virtual device

hp-check[3656]: info: :
hp-check[3656]: info: :---------------------
hp-check[3656]: info: :| PYTHON EXTENSIONS |
hp-check[3656]: info: :---------------------
hp-check[3656]: info: :
hp-check[3656]: info: :Checking 'cupsext' CUPS extension...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking 'pcardext' Photocard extension...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking 'hpmudext' I/O extension...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :Checking 'scanext' SANE scanning extension...
hp-check[3656]: info: :OK, found.
hp-check[3656]: info: :
hp-check[3656]: info: :
hp-check[3656]: info: :
hp-check[3656]: info: :---------------
hp-check[3656]: info: :| USER GROUPS |
hp-check[3656]: info: :---------------
hp-check[3656]: info: :
hp-check[3656]: info: :root bin daemon sys adm disk wheel floppy audio video cdrom tape plugdev

hp-check[3656]: info: :
hp-check[3656]: info: :-----------
hp-check[3656]: info: :| SUMMARY |
hp-check[3656]: info: :-----------
hp-check[3656]: info: :
error: 6 errors and/or warnings.
hp-check[3656]: info: :
hp-check[3656]: info: :Please refer to the installation instructions at:
hp-check[3656]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[3656]: info: :
hp-check[3656]: info: :Done.

I downloaded the install and installed it myself after it didn't work from the new install, I suppose it must have picked up the same settings?
Thanks

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

What distro are you using?

Aaron

Revision history for this message
Eugene (enine) said :
#4

Slackware 12.2. I l know you don't fully support it but its worked fine in every release prior, thats why I thought maybe a simple error got into one of the device files. I usually do a clean install sometime after a new version of slackware comes out and go through the same steps to add my printer so I've done it a couple times so far without needing to do anything but run through the add printer in kde

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#5

Okay.

The root problem is that the cupsddk is not the correct version. You could try installing cupsddk 1.2.3 or later and then re-installing HPLIP.

Otherwise you can install hplip disabling drv and doing the foomatic ppd install.

something like;

./configure --prefix=/usr --disable-foomatic-drv-install --enable-foomatic-ppd-install --enable-foomatic-rip-hplip-install

You can run:

./configure --help

to see all of the default options and set the variables as you need.

Hope this helps!

Aaron

Revision history for this message
Eugene (enine) said :
#6

tried both options and still get the syntax errort

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#7

Please run hp-check again so I can see how your system is configured.

Thanks.

Aaron

Revision history for this message
Eugene (enine) said :
#8

HP Linux Imaging and Printing System (ver. 3.9.4b)
Dependency/Version Check Utility ver. 14.3

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the
proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP
supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time
dependencies).

Saving output in log file: hp-check.log

Initializing. Please wait...

---------------
| SYSTEM INFO |
---------------

Basic system information:
Linux darkstar 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GenuineIntel GNU/Linux

Distribution:
unknown 0.0

HPOJ running?
No, HPOJ is not running (OK).

Checking Python version...
OK, version 2.5.2 installed

Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!

Checking for CUPS...
Status: scheduler is running
Version: 1.3.9
error_log is set to level: info

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 0.83.0

------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------

note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).

Checking for dependency: CUPS - Common Unix Printing System...
OK, found.

Checking for dependency: CUPS DDK - CUPS driver development kit...
OK, found.

Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.

Checking for dependency: CUPS image - CUPS image development files...
OK, found.

Checking for dependency: DBus - Message bus system...
OK, found.

Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.

Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.

Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.

Checking for dependency: libjpeg - JPEG library...
OK, found.

Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.

Checking for dependency: libpthread - POSIX threads library...
OK, found.

Checking for dependency: libtool - Library building support services...
OK, found.

Checking for dependency: libusb - USB library...
OK, found.

Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.

Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: ppdev - Parallel port support kernel module....
OK, found.

Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.

Checking for dependency: Python ctypes - A foreign function library for Python...
OK, found.

Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.

Checking for dependency: Python devel - Python development files...
OK, found.

Checking for dependency: Python XML libraries...
OK, found.

Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.

Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.

Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.

Checking for dependency: SANE - Scanning library...
OK, found.

Checking for dependency: SANE - Scanning library development files...
OK, found.

Checking for dependency: scanimage - Shell scanning program...
OK, found.

Checking for dependency: xsane - Graphical scanner frontend for SANE...
OK, found.

----------------------
| HPLIP INSTALLATION |
----------------------

Currently installed HPLIP version...
HPLIP 3.9.4b currently installed in '/usr/share/hplip'.

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.4b

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.9.4b
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-drv-install=no
foomatic-ppd-install=yes
foomatic-rip-hplip-install=yes
cups-ppd-install=no
cups-drv-install=no
internal-tag=3.9.4b.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no

Current contents of '/var/lib/hp/hplip.state' file:
# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory

-------------------------------
| DISCOVERED PARALLEL DEVICES |
-------------------------------

No devices found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

No devices found.

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

warning: No queues found.

----------------------
| SANE CONFIGURATION |
----------------------

'hpaio' in '/etc/sane.d/dll.conf'...
OK, found. SANE backend 'hpaio' is properly set up.

Checking output of 'scanimage -L'...
device `v4l:/dev/video0' is a Noname Digital_Camera virtual device

---------------------
| PYTHON EXTENSIONS |
---------------------

Checking 'cupsext' CUPS extension...
OK, found.

Checking 'pcardext' Photocard extension...
OK, found.

Checking 'hpmudext' I/O extension...
OK, found.

Checking 'scanext' SANE scanning extension...
OK, found.

---------------
| USER GROUPS |
---------------

root bin daemon sys adm disk wheel floppy audio video cdrom tape plugdev

-----------
| SUMMARY |
-----------

error: 5 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html

Done.

I remember all the HP laser printers were backward compatible with an older model so if I ever needed to setup one and didn't have the drivers available I could just choose that old 4M or whatever it was, do the photosmart's work the same way?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#9

That should work...although we don't test on Slackware so I can't say for sure if it's another problem causing this.

If you do find a solution, if you wouldn't mind posting an update I'd appreciate the information.

Aaron

Can you help with this problem?

Provide an answer of your own, or ask Eugene for more information if necessary.

To post a message you must log in.