Connect HP Printer (USB) with Colibri iMX7

Hi,

I am using Colibri iMX7, I build image with cups and hplip installed.

Now I am trying to setup Hp printer it is giving Error as “Verifying archive integrity…Error in MD5 checksums: d41d8cd98f00b204e9800998ecf8427e is different from edc14f4c30e4a8e994a804ffc797e03a” and setup advances further and then it gives error as “No PPD found for model laserjet_professional_p1106 using old algorithm.” so I downloaded PPD file and specified path then error accurs as “Printer queue setup failed. Please restart CUPS and try again.” I restared cups and done all process agin and agin I got same result, then I tryed downloading file “hplip-3.12.6-plugin.run” and specifiled path again results same

Please someone hep me with this.

root@colibri-imx7:~# hp-setup
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 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: Defaults for each question are maked with a '*'. Press  to accept the default.)


Using connection type: usb

error: No device selected/specified or that supports this functionality.
root@colibri-imx7:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 25a7:fa67  
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@colibri-imx7:~# 

root@colibri-imx7:~# lsusb
Bus 001 Device 002: ID 03f0:002a Hewlett-Packard LaserJet P1102
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 25a7:fa67  
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@colibri-imx7:~# hp-setup
warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 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: Defaults for each question are maked with a '*'. Press  to accept the default.)


Using connection type: usb

Using device: hp:/usb/HP_LaserJet_Professional_P1106?serial=000000000Q840NGMPR1a


Setting up device: hp:/usb/HP_LaserJet_Professional_P1106?serial=000000000Q840NGMPR1a



------------------------
| PLUG-IN INSTALLATION |
------------------------

warning: python-dbus not installed.

HP Linux Imaging and Printing System (ver. 3.12.6)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-14 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: Defaults for each question are maked with a '*'. Press  to accept the default.)

\
-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.12.6 |
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recomended)             
  p           Specify a path to the plug-in (advanced)          
  q           Quit hp-plugin (skip installation)                

Enter option (d=download*, p=specify path, q=quit) ? d

--------------------------
| DOWNLOAD CONFIGURATION |
--------------------------

Checking for network connection...
Downloading configuration file from: http://hplip.sf.net/plugin.conf
Downloading configuration: [\                             ] 0%     

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.6-plugin.run
Downloading plug-in: [\                                   ] 0%     

----------------------
| INSTALLING PLUG-IN |
----------------------

Verifying archive integrity...Error in MD5 checksums: d41d8cd98f00b204e9800998ecf8427e is different from edc14f4c30e4a8e994a804ffc797e03a
error: Python gobject/dbus may be not installed

Done.

---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'HP_LaserJet_Professional_P1106'*, q=quit) ?m
Using queue name: HP_LaserJet_Professional_P1106
Locating PPD file... Please wait.
warning: No PPD found for model laserjet_professional_p1106 using new algorithm. Trying old algorithm...
error: No PPD found for model laserjet_professional_p1106 using old algorithm.
Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

Please enter the full filesystem path to the PPD file to use (q=quit) :/home/root/HP-LaserJet-Professional-P1106.ppd
Description for the file: HP LaserJet Professional p1106, hpcups 3.16.3, requires proprietary plugin

Use this file (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?HP 
Enter additonal information or notes for this printer (q=quit) ?HP-P1106

Adding print queue to CUPS:
Device URI: hp:/usb/HP_LaserJet_Professional_P1106?serial=000000000Q840NGMPR1a
Queue name: HP_LaserJet_Professional_P1106
PPD file: /home/root/HP-LaserJet-Professional-P1106.ppd
Location: HP
Information: HP-P1106
error: Printer queue setup failed. Please restart CUPS and try again.
root@colibri-imx7:~#

Dear @bharatsabne,

Thank you for contacting Toradex Community

Could you please verify if your CONFIG_USB_PRINTER in your .config file is enabled? If not, could you please ENABLE this setting and re-compile your colibri_imx7 kernel by using make menuconfig. Here is the link for Kernel re-compilation reference.

If you access the printer via cups you may only have to install cups with opkg update && opkg install cups. If this doesn’t work, try to enable CONFIG_USB_PRINTER in the kernel as well.

Regards,

Ashok

Hi @ashok.tx

Thank you for your response, I build image CONFIG_USB_PRINTER =Y and also installed cups and hplip still getting same error

Dear @bharatsabne,

I’m working on the same. I will get back to you ASAP.

hi @ashok.tx,
Thank you for your reply,
I am getting error on hplip-3.12.6-plugin.run this file this might be a cause of failing setup?

hi @bharatsabne

Where did you get this hp-setup programm? Did you compile this for ARM architecture?

Best regards,
Jaski

hi @jaski.tx
while building image I put
IMAGE_INSTALL_append = " cups hplip" along with others under build/config/local.conf file after running bitbake command it got compiled

Hi

Thanks for this information.
I mean, where you get ‘hp-setup’ program?

Thanks and best regards,
Jaski

I did not install hp-setup it was there already

Hi @bharatsabne

Thanks for your Input.

Actually using hplib and cups, printing with a HP Printer should work. Could you try to add pyhton-dbus to your image and check if this solves the issue with hp-setup.

Best regards,
Jaski

sure @jaski.tx, I’ll try and let you know

Ok, I will wait for your results.

Hi @jaski.tx ,
wasn’t able to build image with dbus-python, however I tried with pip
gives an error as follows

root@colibri-imx7:~# pip install dbus-python
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at Release process - pip documentation v23.0.dev0
Collecting dbus-python
Using cached https://files.pythonhosted.org/packages/b6/85/7b46d31f15a970665533ad5956adee013f03f0ad4421c3c83304ae9c9906/dbus-python-1.2.12.tar.gz
Installing collected packages: dbus-python
Running setup.py install for dbus-python … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-DFB3AD/dbus-python/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-DFB3AD/dbus-python/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ install --record /tmp/pip-record-fmURj9/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-DFB3AD/dbus-python/
Complete output (34 lines):
running install
running build
creating /tmp/pip-install-DFB3AD/dbus-python/build
creating /tmp/pip-install-DFB3AD/dbus-python/build/temp.linux-armv7l-2.7
checking whether make supports nested variables… no
checking whether to enable maintainer-specific portions of Makefiles… no
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in /tmp/pip-install-DFB3AD/dbus-python/build/temp.linux-armv7l-2.7': configure: error: no acceptable C compiler found in $PATH See config.log’ for more details
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-DFB3AD/dbus-python/setup.py”, line 111, in
tests_require=[‘tap.py’],
File “/usr/lib/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/usr/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/usr/lib/python2.7/site-packages/setuptools-18.1-py2.7.egg/setuptools/command/install.py”, line 61, in run
File “/usr/lib/python2.7/distutils/command/install.py”, line 565, in run
self.run_command(‘build’)
File “/usr/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/usr/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/tmp/pip-install-DFB3AD/dbus-python/setup.py”, line 64, in run
cwd=builddir)
File “/usr/lib/python2.7/subprocess.py”, line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/tmp/pip-install-DFB3AD/dbus-python/configure’, ‘–disable-maintainer-mode’, ‘PYTHON=/usr/bin/python’, ‘–prefix=/tmp/pip-install-DFB3AD/dbus-python/build/temp.linux-armv7l-2.7/prefix’]’ returned non-zero exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '”‘"’/tmp/pip-install-DFB3AD/dbus-python/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-DFB3AD/dbus-python/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-fmURj9/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.