HPLIP with error on g.py file
Hi!
I wish you are all well.
Follow the information as required:
1. Your Linux Distribution and version:
Debian GNU/Linux 12 (bookworm) with LXQt desktop environment.
2. Your printer make/model:
HP Color LaserJet 2600n
3. If possible, run 'hp-check -t' and post the output:
dti@srvxAE2401:~$ hp-check -t
Traceback (most recent call last):
File "/usr/local/
from base.g import *
File "/usr/local/
log.
SyntaxError: invalid syntax
dti@srvxAE2401:~$
4. A detailed explanation of your problem:
The problem is exactly the same of the "hp-check -t" result: an error pointing to some g.py file when I try to execute any of the "hp-xyz" programs (hp-setup, hp-check, hp-toolbox, etc.).
I have followed all the instructions, carefully and more than once, to install hplip-3.24.4 (using the .run program or the .tar.gz file).
On the best result, the shortcuts to HP programs are available on the programs menu of Debian LXQt. But no one of them works when I click on it; simply nothing happen or open.
So, using the menu shortcuts, nothing happen when I click on it. And, using the CLI commands, I receive the same error above, with some variation on the number of the line, according to "hp-xyz" program tried.
I have installed the official packages of "cups" and "python" in full. I tried to install the printer just using CUPS, including a try with a PPD file I have founded on GitHub. For the last, I have installed almost all the HPLIP packages available on Synaptics. The result of all my tries is always the same, as I wrote above.
How to fix my environment, in order to make the HP menu shortcuts and the "hp-xyz" programs work and, finally, to make my printer print?
5. Steps to recreate the problem:
First, I did a clean installation of Debian.
After, I used apt-get update, apt-get upgrade and apt-get full-upgrade.
And I followed this instruction:
https:/
The result already on the Step 2 was this:
dti@srvxAE2401:
Creating directory hplip-3.24.4
Verifying archive integrity... 100% All good.
Uncompressing HPLIP 3.24.4 Self Extracting Archive 100%
Traceback (most recent call last):
File "./install.py", line 38, in <module>
from base.g import *
File "/home/
log.
SyntaxError: invalid syntax
dti@srvxAE2401:
So... I couldn't forward.
I hope your help.
And I thank you all you so much since now.
Linno
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- HPLIP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask LINNO SANTOS for more information if necessary.