Hi.
I am trying to install hp-plugin for my HP printer. How do I solve this error after I do hp-plugin:
Traceback (most recent call last):
File "./plugin_install.py", line 75, in <module>
import class_plugin
File "/home/tomaz/.hplip/plugin_tmp/class_plugin.py", line 186, in <module>
distro_name = get_distro_name().lower()
File "/home/tomaz/.hplip/plugin_tmp/class_plugin.py", line 65, in get_distro_name
os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'
error: Python gobject/dbus may be not installed
As I read it has to do with python-qt4. But I can not install the package under Linux Mint 20.1 Ulyssa?!
Thomas
HP plugin
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 4
- Posts: 419
- Joined: Sat Jun 25, 2011 11:57 am
Re: HP plugin
You can install with following command.
If you want to install with GUI support, firstly install hplip-gui package,
then run following command.
Code: Select all
hp-plugin -i
Code: Select all
sudo apt install hplip-gui
Code: Select all
hp-plugin -u
Re: HP plugin
Hi. I did all those things. Now I did: hp-plugin -u. And result is:
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP 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.
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP 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.
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 254, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: cannot unpack non-iterable NoneType object
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 254, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: cannot unpack non-iterable NoneType object
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP 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.
HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.1
Copyright (c) 2001-18 HP 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.
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 254, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: cannot unpack non-iterable NoneType object
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 254, in <module>
QApplication, ui_package = utils.import_dialog(ui_toolkit)
TypeError: cannot unpack non-iterable NoneType object
-
- Level 4
- Posts: 419
- Joined: Sat Jun 25, 2011 11:57 am
Re: HP plugin
How did you install hplip 3.21.2 version? Did install with .run or tar.gz files?
If you installed it manually, you can uninstall them and install from the PPA repository. viewtopic.php?p=2002544#p2002544
If you installed it manually, you can uninstall them and install from the PPA repository. viewtopic.php?p=2002544#p2002544
Re: HP plugin
Woohooooo
It is working.
Why is this package not included in mainstream mint/ubuntu repository/PPA?
Until now with a help of forums and internet I solved every problem I had in Linux/Mint...until now! With (Mint 20 and hplip plugin problem I thought that's it, here the superiority of Linux ends.
BUT...I solved it again with your help! Every time I run into problem and I find the solution within the community I am proven right moving away from MS Windows few years ago!
Linux and Mint with combination of Qt framework and C++ or C and community support, open source, safety issues is a unbeatable thing!!! I do some coding in Qt/C++ and the speeds of C++ applications itself and in combination with firebird databases for example are unbeatable.
Thanks to all of you keeping it alive!
Thomas
It is working.
Why is this package not included in mainstream mint/ubuntu repository/PPA?
Until now with a help of forums and internet I solved every problem I had in Linux/Mint...until now! With (Mint 20 and hplip plugin problem I thought that's it, here the superiority of Linux ends.
BUT...I solved it again with your help! Every time I run into problem and I find the solution within the community I am proven right moving away from MS Windows few years ago!
Linux and Mint with combination of Qt framework and C++ or C and community support, open source, safety issues is a unbeatable thing!!! I do some coding in Qt/C++ and the speeds of C++ applications itself and in combination with firebird databases for example are unbeatable.
Thanks to all of you keeping it alive!
Thomas