File hplip-install not found

Bug #1893979 reported by Matteo Barison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Unassigned

Bug Description

I downloaded the file hplip-3.20.6.run in my home directory and gave the command

$ sh hplip-3.20.6.run

but after integrity check and uncompression, there is the following error:

hplip-3.20.6.run: eval: line 1: ./hplip-install: not found

But the file exists and it is there! Python2.7 is installed and its various dependencies; Cups is installed and running. I cannot get working my HP P1005 printer...

Revision history for this message
shivani mandora (shivani1708) wrote :

Hi,

Please provide distro details.
And output of $sh hplip-3.20.6.run

Changed in hplip:
status: New → In Progress
Revision history for this message
Matteo Barison (matteobarison) wrote :

Hi,
the distro is piCore TinyCore Linux v.11.0 (it is the latest stable release) on hardware RaspBerry Pi Zero W.
Kernel Linux version is 4.19.81 (the output of uname -r is 4.19.81-piCore).
The final application will be a very small print server, low energy consumption, connected to local wifi network, with a HP P1005 USB laser printer directly connected to the RaspBerry Pi Zero W.
I placed the binary hplip-3.20.6.run inside a directory /home/tc. I ran sh hplip-3.20.6.run and also sudo sh hplip-3.20.6.run, but the output in both cases is the same:

Creating directory hplip-3.20.6
Verifying archive integrity... All good.
Uncomressing HPLIP 3.20.6 Self Extracting Archive.........
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
..........................................................
hplip-3.20.6.run: eval: line 1: ./hplip-install: not found

The file hplip-install is obviously there, inside the directory /home/tc/hplip-3.20.6. I have access to it and I can read its content as bash script.
The filesystem is plenty of space. Python2.7 is installed along with the package python-psutil.

I hope you will give some advice. Thanks.

Revision history for this message
Matteo Barison (matteobarison) wrote :

I am still trying to get hplip working on armv6. I reverted back to 3.18.6, it should be the last available version that does not require libImageProcessor.so.
The plug-in installation for hplip 3.18.6 fails and gives:

Downloading plug-in: [\ ] 0% Traceback (most recent call last):
  File "/usr/local/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/tmp/tcloop/hplip/usr/local/share/hplip/installer/pluginhandler.py", line 254, in download
    core = core_install.CoreInstall()
  File "/tmp/tcloop/hplip/usr/local/share/hplip/installer/core_install.py", line 231, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/password.py", line 112, in __init__
    self.__readAuthType() # self.__authType
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/password.py", line 134, in __readAuthType
    distro_name = get_distro_name().lower()
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/password.py", line 80, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
error: Failed to install Plugin.
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins.Visit http://hplipopensource.com for more infomation.

I still hope that you will give some advice and support. Thanks.

Revision history for this message
Matteo Barison (matteobarison) wrote :

Please also note that the use of platform.dist() should be deprecated since python2.6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.