Your message dated Mon, 14 Jan 2008 16:42:24 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#460686: unable to detect ports
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: libieee1284-3
Version: 0.2.10-4
Severity: important
Hello,
using this python script:
--->8---
import ieee1284
ports = ieee1284.find_ports()
for k, v in ports.iteritems():
try:
v.open()
except Exception, e:
print 'failed to open', k, ':', e
else:
print 'opened', k, 'successfully'
v.close()
--->8---
I get:
[EMAIL PROTECTED]:~$ LIBIEEE1284_DEBUG=1 python testieee1284.py
/dev/parport0 is accessible
==> ieee1284_open
==> init_port
Got -7 from ppdev init
<== -7
<== -7 (propagated)
failed to open 0x3bc : Error initialising port
==> ieee1284_open
==> init_port
Got -7 from ppdev init
<== -7
<== -7 (propagated)
failed to open 0x278 : Error initialising port
==> ieee1284_open
==> init_port
Got -7 from ppdev init
<== -7
<== -7 (propagated)
failed to open 0x378 : Error initialising port
Destructor for port '0x3bc'
Destructor for port '0x278'
Destructor for port '0x378'
According to strace the program tries to open /dev/port.
With version 0.2.11-3 I get:
/dev/parport0 is accessible
This system has /proc/sys/dev/parport
==> ieee1284_open
==> init_port
Got 0 from ppdev init
<== 0
opened parport0 successfully
Destructor for port 'parport0'
-- System Information:
Debian Release: 4.0
APT prefers proposed-updates
APT policy: (900, 'proposed-updates'), (900, 'stable'), (300,
'testing-proposed-updates'), (300, 'testing'), (200, 'unstable'), (2,
'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-3-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages libieee1284-3 depends on:
ii libc6 2.7-5 GNU C Library: Shared libraries
libieee1284-3 recommends no packages.
-- no debconf information
--
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
--- End Message ---
--- Begin Message ---
Source: libieee1284
Version: 0.2.10-8
Uwe Kleine-König <[EMAIL PROTECTED]> wrote:
> With version 0.2.11-3 I get:
>
> /dev/parport0 is accessible
> This system has /proc/sys/dev/parport
> ==> ieee1284_open
> ==> init_port
> Got 0 from ppdev init
> <== 0
> opened parport0 successfully
> Destructor for port 'parport0'
>
> -- System Information:
> Debian Release: 4.0
> APT prefers proposed-updates
> APT policy: (900, 'proposed-updates'), (900, 'stable'), (300,
> 'testing-proposed-updates'), (300, 'testing'), (200, 'unstable'), (2,
> 'experimental')
> Architecture: amd64 (x86_64)
> Shell: /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.22-3-amd64
With this kernel, you need version 0.2.10-8 at least.
For /dev/port, you need to be root.
JB.
--
Julien BLACHE - Debian & GNU/Linux Developer - <[EMAIL PROTECTED]>
Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
--- End Message ---