Repository: autokey/autokey

Issue #170: autokey-qt 0.95.2 does not start on Kubuntu 18.04
Created: 2018-07-30T15:02:45Z
Classification:
Bug
Reproducibility:
Always
Summary
autokey-qt 0.95.2 does not start on Kubuntu 18.04
Steps to Reproduce (if applicable)
I installed autokey-qt 0.95.2 on Kubuntu 18.04.1, by downloading and installing the autokey-common and autokey-qt package (the installation documentation is not very clear on this, or maybe I missed something).
I started autokey (Qt) from the menu, but nothing (visually) happened. Then I started autokey-qt from the CLI and got the following error:
$ autokey-qt
Traceback (most recent call last):
  File "/usr/bin/autokey-qt", line 11, in <module>
    load_entry_point('autokey==0.95.2', 'console_scripts', 'autokey-qt')()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 110, in __init__
    self._configure_root_logger()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 169, in _configure_root_logger
    backupCount=common.MAX_LOG_COUNT
  File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/__init__.py", line 1030, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/USER/.local/share/autokey/autokey.log'

I checked ~/.local/share and by default there is not autokey folder. After I created an autokey folder here it worked!

Duplicate issue #219: autokey-qt installs but doesn't launch (KDE Neon)
Created: 2018-11-24T20:17:10Z
Classification:
Bug
Reproducibility:
Always
Summary
autokey-qt installs fine via apt but doesn't launch.
Steps to Reproduce (if applicable)

Perform the regular apt installation as per the README.
Invoke Krunner, search for AutoKey and hit enter.
Run autokey-qt from the command-line.

Expected Results
AutoKey GUI should launch.
Actual Results
Launching from Krunner seems to launch the App momentarily in the taskbar panel but immediately quits before the GUI or shortcut/notification icon appear.
Running autokey-qt from the command-line throws the following error:
Traceback (most recent call last):
  File "/usr/bin/autokey-qt", line 11, in <module>
    load_entry_point('autokey==0.95.1', 'console_scripts', 'autokey-qt')()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 110, in __init__
    self._configure_root_logger()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 169, in _configure_root_logger
    backupCount=common.MAX_LOG_COUNT
  File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/dan/.local/share/autokey/autokey.log'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
    os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_autokey-qt.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/autokey-qt", line 11, in <module>
    load_entry_point('autokey==0.95.1', 'console_scripts', 'autokey-qt')()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 110, in __init__
    self._configure_root_logger()
  File "/usr/lib/python3/dist-packages/autokey/qtapp.py", line 169, in _configure_root_logger
    backupCount=common.MAX_LOG_COUNT
  File "/usr/lib/python3.6/logging/handlers.py", line 150, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python3.6/logging/__init__.py", line 1032, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1061, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/home/dan/.local/share/autokey/autokey.log'

Version
AutoKey version: 0.95.1
Used GUI (Gtk, Qt, or both): Qt
Installed via: PPA
Distro: KDE Neon 5.14
Notes

I tried the GTK version and that works as expected.
I notice that a bunch of QT stuff was fixed in 0.95.3 - if that's the solution, how do I install that from a package manger?
I'm a bit of a Linux noob.

Closing comment (2018-11-25T06:33:24Z): Appears to be a duplicate of #170