WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: hplip  (Read 2763 times)

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
hplip
« on: February 28, 2021, 03:15:07 AM »
Hi to everyone,

I'm trying to install hplip to load my printer but dbus-python3.6.tcz seem do not be available

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #1 on: February 28, 2021, 03:34:13 AM »
dbus-python3.6 copied to the tc-12.x x86 and x86_64 repos - thanks for reporting this.
« Last Edit: February 28, 2021, 03:41:09 AM by Juanito »

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: hplip
« Reply #2 on: February 28, 2021, 03:52:12 AM »
dbus-python3.6 copied to the tc-12.x x86 and x86_64 repos - thanks for reporting this.

you're welcome


Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: hplip
« Reply #3 on: February 28, 2021, 04:01:05 AM »
Hi,

I have followed the instructions but:

no root password is asked me after

Code: [Select]
hp-setup -i
and I have some errors.

I do someting wrong?

Thanks

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #4 on: February 28, 2021, 04:18:27 AM »
The problem looks to be here:
Code: [Select]
$ hp-setup -i
Traceback (most recent call last):
  File "/usr/local/bin/hp-setup", line 48, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/status.py", line 33, in <module>
    import cup.t
ImportError: libnetsnmp.so.35: cannot open shared object file: No such file or directory
« Last Edit: February 28, 2021, 04:22:58 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #5 on: February 28, 2021, 04:43:20 AM »
I created a net-snmp35 extension and added it to the hplip dep file in the tc-12.x x86 and x86_64 repos.

It tested OK in x86_64, so I presume it will work in x86.

Note that you will need to download the net-snmp35 extension and modify hplip.tcz.dep locally for future use.

Offline rullolex

  • Full Member
  • ***
  • Posts: 134
    • Rullolex
Re: hplip
« Reply #6 on: February 28, 2021, 05:20:41 AM »
Hi Juanito,

works :)

Thank you


Offline Tuxie

  • Newbie
  • *
  • Posts: 1
Re: hplip
« Reply #7 on: September 19, 2021, 05:40:10 AM »
Hello,

Version
tc@box:~$ version
13.0.3


i am on a PI and like to use a HP Laserjet P1102.
i need a propetery driver for that.
Ik have a working solution on Raspbian, but Tiny Core is a LOT faster.

I found this forum and it looks like i have the same problem on different achitecture.  X86-64 vs Arm6
Hp-**** The all give me the same error.


hp-setup -i
/tmp/tcloop/hplip/usr/local/share/hplip/base/utils.py:2042: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:
Traceback (most recent call last):
  File "/usr/local/bin/hp-setup", line 48, in <module>
    from base import device, utils, tui, models, module, services, os_utils
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/status.py", line 33, in <module>
    import cup.t
ImportError: libnetsnmp.so.35: cannot open shared object file: No such file or directory

this is the one (hp-plugin) i need to work to fix the CUPS "filter failed"  message

tc@box:~$ hp-plugin
/tmp/tcloop/hplip/usr/local/share/hplip/base/utils.py:2042: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if weburl is "" or weburl is None:
Traceback (most recent call last):
  File "/usr/local/bin/hp-plugin", line 41, in <module>
    from base import device, utils, tui, module, services
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/device.py", line 42, in <module>
    from . import status
  File "/tmp/tcloop/hplip/usr/local/share/hplip/base/status.py", line 33, in <module>
    import cup.t
ImportError: libnetsnmp.so.35: cannot open shared object file: No such file or directory
tc@box:~$



Is there any hope in fixing this?
i wil happely give other information if i know what it is you need.

Sorry for my terrible english
« Last Edit: September 19, 2021, 05:55:52 AM by Tuxie »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #8 on: September 19, 2021, 05:51:57 AM »
In piCore you can use the net-snmp extension from 11.x

In CorePure64 you can use the net-snmp extension from 10.x

If you can confirm that this works, a legacy extension can be made.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10215
Re: hplip
« Reply #9 on: September 19, 2021, 06:17:36 AM »
Hi Juanito
In piCore you can use the net-snmp extension from 11.x ...
net-snmp  depends on  openssl.  piCore 11.x has version  1.1.1.g  while 13.x has  1.1.1.k.  Will that be a problem?

In x86_64 it changed from  1.1.1b  to  1.1.1j.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #10 on: September 19, 2021, 06:21:49 AM »
I don't know for sure, the op would need to try (using the old version of net-snmp with the current openssl).

In fact in the CorePure64 repo, hplip already depends on net-snmp35, which tends to suggest it worked for me.
« Last Edit: September 19, 2021, 06:24:42 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #11 on: September 19, 2021, 06:39:39 AM »
net-snmp35 added to piCore-13.x repos, hplip dep file adjusted.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10215
Re: hplip
« Reply #12 on: September 19, 2021, 07:06:21 AM »
Hi Juanito
I created a net-snmp35 extension and added it to the hplip dep file in the tc-12.x x86 and x86_64 repos.

It tested OK in x86_64, ...
Look at that. Had I scrolled up a few posts, I could have answered my own question. :-[

Offline andyj

  • Hero Member
  • *****
  • Posts: 970
Re: hplip
« Reply #13 on: September 19, 2021, 07:22:03 AM »
I thought the reason we made the hplip-plugins extension was because "hp-setup -i" doesn't work on TC, and probably never will. There should be something to this effect in the hplip description.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 13850
Re: hplip
« Reply #14 on: September 19, 2021, 08:25:36 AM »
hp-setup does work, but perhaps not if you need plugins..