Skip to content

Mklauncher incompatible with python3 #330

@the-snowwhite

Description

@the-snowwhite

Mklauncher needs these fixes before even being able to run under python
However then running mklauncher --debug results in ending with following message (I figured out to also set command to python3 run.py in the configs launcher.ini) :-)

DEBUG:mklauncher:process command called, id: [b'\x00k\x8bEg']
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/bin/mklauncher", line 398, in _poll
    self._update_launcher_status()
  File "/usr/bin/mklauncher", line 352, in _update_launcher_status
    stdout_line.line = line
TypeError: None has type NoneType, but expected one of: bytes, unicode

Also when I open a separate console and input:

~pgrep mklaucher~ 

When mklauncher is started up:

running in python2 gives the pid (process id)

running in python3 gives nothing (no process id)

Edit: due to typo correct command is:

pgrep mklauncher

I have no idea whats to the missing process id in python3 (leading to the config launcher subprocess attempting to restart the master mklauncher process thats initiating this subprocess)

Edit: This seems to be happening after the first run where the process is renamed to python3 on consecutive runs (fixed this via adding setproctitle('mklauncher'))
however the typeerror remains:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions