Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hpli - python - WiFi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jankom
Guru
Guru


Joined: 30 Aug 2021
Posts: 365
Location: USA

PostPosted: Sun Jan 05, 2025 11:37 pm    Post subject: hpli - python - WiFi Reply with quote

Hello, unfortunately I have to turn to this forum for help.
I have a cheap laserjet BW HP printer, P1102w. Years ago somehow I was able to make it work on my home WiFi network (WPA, SSID hidden). Recently after eix-sync it started to act up, stopped printing in the middle of multi-page document. I also have HPLIP because it is needed for another HP printer.. So I almost decided to get another inexpensive laserjet printer, but have spare cartriges for this P1102w, therefore tried to fix it myself..

a) deleted and re-emerged gentoo hplip package. Setting the printer up according to hp-setup: USB OK, prints long documents. Trying to set up as WiFi; it recognizes as WiFi capable, after long time searching. I could even enter SSID and PW, hp-setup says connected, but the WiFi ibdicator keeps blnkink, and the built-in diagnostic report shows no IP.

b) Tried to compile HP Develompent version of hplip, but
Code:
...
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.12/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.12/site-packages
checking for path to Python.h...   File "<string>", line 1
    from distutils.sysconfig import get_python_inc; print get_python_inc();
                                                    ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
"using "
checking python3.1/Python.h usability... no
checking python3.1/Python.h presence... no
checking for python3.1/Python.h... no
configure: error: cannot find python-devel support


c) During above troubleshooting attempts it was complaing about the need for python-2.7. So I emerged it, still the same configure error.

It is more of a challenge for me, because I can print now with USB wired connection.

If anybody is interested with offering ideas I would appreciate. One more thing, I emerged net-snmp and it compiled well, although Gentoo wiki on hplip warns that as of November 2024 the ebuild of net-snmp is broken.

jankom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum