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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]