Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: rullolex on February 28, 2021, 03:15:07 AM

Title: hplip
Post by: rullolex 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
Title: Re: hplip
Post by: Juanito 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.
Title: Re: hplip
Post by: rullolex 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

Title: Re: hplip
Post by: rullolex 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
Title: Re: hplip
Post by: Juanito 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
Title: Re: hplip
Post by: Juanito 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.
Title: Re: hplip
Post by: rullolex on February 28, 2021, 05:20:41 AM
Hi Juanito,

works :)

Thank you

Title: Re: hplip
Post by: Tuxie 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
Title: Re: hplip
Post by: Juanito 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.
Title: Re: hplip
Post by: Rich 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.
Title: Re: hplip
Post by: Juanito 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.
Title: Re: hplip
Post by: Juanito on September 19, 2021, 06:39:39 AM
net-snmp35 added to piCore-13.x repos, hplip dep file adjusted.
Title: Re: hplip
Post by: Rich 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. :-[
Title: Re: hplip
Post by: andyj 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.
Title: Re: hplip
Post by: Juanito on September 19, 2021, 08:25:36 AM
hp-setup does work, but perhaps not if you need plugins..
Title: Re: hplip
Post by: gadget42 on September 19, 2021, 08:54:24 AM
didn't know what "hp-setup -i" did. thought this might help future readers.

https://developers.hp.com/hp-linux-imaging-and-printing/tech_docs/man_pages/setup

modified/updated to add a link to another thread.

http://forum.tinycorelinux.net/index.php/topic,23667.0.html