Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 118958

Summary: hplip doesn't get started
Product: Gentoo Linux Reporter: François Valenduc <francoisvalenduc>
Component: [OLD] baselayoutAssignee: Printing Team <printing>
Status: RESOLVED DUPLICATE    
Severity: normal CC: uberlord
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description François Valenduc 2006-01-14 00:54:28 UTC
After an upgrade of baselayout, hplip doesn't get started anymore. In fact, I upgraded baselayout to test KDE 3.5 and I had to use a masked version. The hplip init script contains basically two commands:

     start-stop-daemon --start --quiet --exec /usr/sbin/hpiod
     start-stop-daemon --quiet --start --exec /usr/share/hplip/hpssd.py --pidfile /var/run/hpssd.pid >/dev/null 2>&1                

The first command is started but the second one doesn't work. However, if I run it manually, it works but as soon as I put it into an init scripts, it fails.

Does anybody know how to solve the problem ?
Thanks in advance.

Fran
Comment 1 François Valenduc 2006-01-14 00:54:28 UTC
After an upgrade of baselayout, hplip doesn't get started anymore. In fact, I upgraded baselayout to test KDE 3.5 and I had to use a masked version. The hplip init script contains basically two commands:

     start-stop-daemon --start --quiet --exec /usr/sbin/hpiod
     start-stop-daemon --quiet --start --exec /usr/share/hplip/hpssd.py --pidfile /var/run/hpssd.pid >/dev/null 2>&1                

The first command is started but the second one doesn't work. However, if I run it manually, it works but as soon as I put it into an init scripts, it fails.

Does anybody know how to solve the problem ?
Thanks in advance.

François Valenduc
Comment 2 SpanKY gentoo-dev 2006-01-14 01:02:59 UTC
you forgot to post `emerge info`
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-14 01:08:47 UTC
Does it work for you if you change the first line of /usr/share/hplip/hpssd.py from

#!/usr/bin/env python

to

#!/usr/bin/python

?
Comment 4 François Valenduc 2006-01-14 02:07:33 UTC
(In reply to comment #2)
> Does it work for you if you change the first line of /usr/share/hplip/hpssd.py
> from
> 
> #!/usr/bin/env python
> 
> to
> 
> #!/usr/bin/python
> 
> ?

Indeed, that solves the problem. Thanks for your help


Comment 5 François Valenduc 2006-01-14 02:08:08 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Does it work for you if you change the first line of /usr/share/hplip/hpssd.py
> > from
> > 
> > #!/usr/bin/env python
> > 
> > to
> > 
> > #!/usr/bin/python
> > 
> > ?
> 
> Indeed, that solves the problem. Thanks for your help
> 

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-01-14 02:25:38 UTC
Please, don't resolve bugs as FIXED before they are fixed in portage. ;)

@printing: Please, fix Bug 98428 - it's getting kinda stale and the fix is trivial.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-01-14 02:25:53 UTC

*** This bug has been marked as a duplicate of 98428 ***