Skip to content

OS X: syncplay does not run on macOS Sierra 10.12 #116

@albertosottile

Description

@albertosottile

Syncplay (1.3 and 1.4) does not run on macOS Sierra 10.12 . After pressing the button "store configuration and run Syncplay", the console gives this error:

ValueError: time data '@variant(' does not match format '%Y-%m-%d %H:%M:%S.%f'

The first window does not close and the syncplay media windows nor VLC do not start at all. If the button is then pushed again, the same error keeps showing up.

Tracing back the error, it points to the comparison in syncplay/resources/ui/GuiConfiguration.py line 281
if self.lastCheckedForUpdates > datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f"):

If printed, both the variables self.config["lastCheckedForUpdates"] and self.lastCheckedForUpdates contain @variant( . I have no idea why, but it seems that macOS 10.12 changed how these settings are stored/read from config files and/or the UI. I tried to correct this bug by myself but I am not a python developer, I did not find a way to alter or restore these values.

I "patched" the bug by disabling entirely this update check, by commenting lines from 279 to 284 in GuiConfiguration.py. With this edit, Syncplay and VLC start correctly, but then crash with a similar error, this time in gui.py, line 1326. This can be "solved" by disabling update check from the UI or commenting lines between 1325 and 1334. This way syncplay runs on macOS 10.12.

I understand that you do not have a macOS test system, so please let me know if I can assist you in fixing this bug for real.

Thanks for all your work, syncplay is amazing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions