Bug 1231476 - [abrt] pyobd: serialposix.py:289:open:OSError: [Errno 13] Permission denied: '/dev/ttyS0'
Summary: [abrt] pyobd: serialposix.py:289:open:OSError: [Errno 13] Permission denied: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyobd
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:3e0644c031a4a2af23f886a7e06...
: 1349316 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-13 17:25 UTC by Nuno Dias
Modified: 2016-07-10 05:58 UTC (History)
3 users (show)

Fixed In Version: pyobd-0.9.3-3.fc23 pyobd-0.9.3-3.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-09 23:53:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (782 bytes, text/plain)
2015-06-13 17:25 UTC, Nuno Dias
no flags Details
File: environ (3.89 KB, text/plain)
2015-06-13 17:25 UTC, Nuno Dias
no flags Details

Description Nuno Dias 2015-06-13 17:25:26 UTC
Description of problem:
run pyOBD, select OBD-II -> Configure

Version-Release number of selected component:
pyobd-0.9.2.2-4.fc21

Additional info:
reporter:       libreport-2.5.1
cmdline:        python /usr/bin/pyobd
dso_list:       pyserial-2.7-1.fc22.noarch
executable:     /usr/bin/pyobd
kernel:         4.0.4-301.fc22.x86_64
runlevel:       N 5
type:           Python
uid:            500

Truncated backtrace:
serialposix.py:289:open:OSError: [Errno 13] Permission denied: '/dev/ttyS0'

Traceback (most recent call last):
  File "/usr/bin/pyobd", line 654, in Configure
    ports = self.scanSerial()
  File "/usr/bin/pyobd", line 608, in scanSerial
    s = serial.Serial(i)
  File "/usr/lib/python2.7/site-packages/serial/serialutil.py", line 282, in __init__
    self.open()
  File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 289, in open
    self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK)
OSError: [Errno 13] Permission denied: '/dev/ttyS0'

Local variables in innermost frame:
self: Serial<id=0x7f74be9b1b90, open=False>(port='/dev/ttyS0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)

Comment 1 Nuno Dias 2015-06-13 17:25:29 UTC
Created attachment 1038383 [details]
File: backtrace

Comment 2 Nuno Dias 2015-06-13 17:25:30 UTC
Created attachment 1038384 [details]
File: environ

Comment 3 Dominik 'Rathann' Mierzejewski 2016-06-28 08:44:36 UTC
*** Bug 1349316 has been marked as a duplicate of this bug. ***

Comment 4 Dominik 'Rathann' Mierzejewski 2016-06-28 08:45:33 UTC
Also reproducible on F23. I provided a patch to pyserial in the duplicate bug, but maybe the exception should be caught in pyobd instead.

Comment 5 Jaroslav Škarvada 2016-06-28 09:22:49 UTC
IMHO it's currently catching serial.SerialException, and I think that pyserial should encapsulate OSError exceptions, but I am going to workaround this problem.

Comment 6 Jaroslav Škarvada 2016-06-28 09:44:23 UTC
F22 is phasing out, moving to F23.

Comment 7 Fedora Update System 2016-06-28 09:50:11 UTC
pyobd-0.9.3-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d37c05ce55

Comment 8 Fedora Update System 2016-06-28 09:53:44 UTC
pyobd-0.9.3-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c3a29222dd

Comment 9 Fedora Update System 2016-06-29 18:26:56 UTC
pyobd-0.9.3-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-c3a29222dd

Comment 10 Fedora Update System 2016-06-29 22:56:34 UTC
pyobd-0.9.3-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d37c05ce55

Comment 11 Fedora Update System 2016-07-09 23:53:34 UTC
pyobd-0.9.3-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-07-10 05:58:26 UTC
pyobd-0.9.3-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.