Interactive use of python shouldn't invoke apport! On my 19.04 system typing "foo" on the python3 interpreter ends up in this huge ugly mess for no reason:
$ python3
Python 3.7.3 (default, Oct 7 2019, 12:56:13)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 21, in <module>
from urllib.request import urlopen
File "/usr/lib/python3.7/urllib/request.py", line 88, in <module>
import http.client
File "/usr/lib/python3.7/http/client.py", line 72, in <module>
import email.message
File "/usr/lib/python3.7/email/message.py", line 10, in <module>
import uu
File "/var/home/alx/uu.py", line 4, in <module>
uinput.KEY_L, uinput.KEY_O]) as device:
File "/usr/lib/python3/dist-packages/uinput/__init__.py", line 178, in __init__
self.__uinput_fd = fd or fdopen()
File "/usr/lib/python3/dist-packages/uinput/__init__.py", line 84, in fdopen
return _libsuinput.suinput_open()
File "/usr/lib/python3/dist-packages/uinput/__init__.py", line 70, in _open_error_handler
raise OSError(code, msg)
PermissionError: [Errno 13] Failed to open the uinput device: Permission denied
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
>>>
Interactive use of python shouldn't invoke apport! On my 19.04 system typing "foo" on the python3 interpreter ends up in this huge ugly mess for no reason:
$ python3 python3/ dist-packages/ apport_ python_ hook.py" , line 63, in apport_excepthook python3/ dist-packages/ apport/ __init_ _.py", line 5, in <module> python3/ dist-packages/ apport/ report. py", line 21, in <module> python3. 7/urllib/ request. py", line 88, in <module> python3. 7/http/ client. py", line 72, in <module> python3. 7/email/ message. py", line 10, in <module> alx/uu. py", line 4, in <module> python3/ dist-packages/ uinput/ __init_ _.py", line 178, in __init__ __uinput_ fd = fd or fdopen() python3/ dist-packages/ uinput/ __init_ _.py", line 84, in fdopen suinput_ open() python3/ dist-packages/ uinput/ __init_ _.py", line 70, in _open_error_handler
Python 3.7.3 (default, Oct 7 2019, 12:56:13)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> foo
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
from urllib.request import urlopen
File "/usr/lib/
import http.client
File "/usr/lib/
import email.message
File "/usr/lib/
import uu
File "/var/home/
uinput.KEY_L, uinput.KEY_O]) as device:
File "/usr/lib/
self.
File "/usr/lib/
return _libsuinput.
File "/usr/lib/
raise OSError(code, msg)
PermissionError: [Errno 13] Failed to open the uinput device: Permission denied
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'foo' is not defined
>>>