Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: updated PyInstaller and dev locks, added Python 3.8 and 3.9 as experimental #544

Merged
merged 11 commits into from
Dec 28, 2020

Conversation

ErikBjare
Copy link
Member

@ErikBjare ErikBjare commented Dec 28, 2020

Working on support for Python 3.8 and 3.9, since PyInstaller now supports it.

Also, finally updates to a recent PyQt5 (which may fix some issues).

Requires: ActivityWatch/aw-qt#67

@ErikBjare
Copy link
Member Author

CI passes, now we just need to test the builds.

@ErikBjare
Copy link
Member Author

Tested the Python 3.9 build. Runs fine, but as soon as I right-click the aw-qt tray icon it crashes with SIGSEGV (as reported before for GitHub CI builds: #388).

@ErikBjare
Copy link
Member Author

Going to try the Python 3.7 Travis build and see that it still works as expected.

If it does, then this PR (and ActivityWatch/aw-qt#67) is ready to be merged (with the caveat that GitHub Actions builds still SIGSEGV).

@ErikBjare
Copy link
Member Author

Travis build works fine. I suppose this could be merged now.

Interestingly, the fontconfig warnings are slightly different from the one in #388 (comment):

Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig error: line 6: invalid attribute 'translate'
Fontconfig error: line 6: invalid attribute 'selector'
Fontconfig error: line 7: invalid attribute 'xmlns:its'
Fontconfig error: line 7: invalid attribute 'version'
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Fontconfig error: Cannot load default config file

@ErikBjare
Copy link
Member Author

ErikBjare commented Dec 28, 2020

Huh, apparently the Travis build SIGSEGV's when quit (with Ctrl-C) as well: fish: “./aw-qt --testing” terminated by signal SIGSEGV (Address boundary error)

Not sure if this is a new thing, or if it has been this way for a long time.

All modules are shut down correctly though, so probably some PyQt issue.

Might be related to ActivityWatch/aw-qt#49

@ErikBjare
Copy link
Member Author

ErikBjare commented Dec 28, 2020

Looks like we have a new macOS error, probably caused by setting DEVELOPER_DIR: https://github.com/ActivityWatch/activitywatch/pull/544/checks?check_run_id=1617841584#step:11:537

Edit: Ugh, looks like Rust can't be used with older Xcode: https://users.rust-lang.org/t/cannot-compile-hello-word-on-mac-ld-unsupported-tapi-file-type-tapi-tbd/52695/8

Edit 2: Maybe there is hope... https://users.rust-lang.org/t/compile-rust-binary-for-older-versions-of-mac-osx/38695/3

Edit 3: If that doesn't work, maybe setting SDKROOT will.

@ErikBjare
Copy link
Member Author

If all else fails, this guy seems to have it figured out for Python + PyInstaller + PyQt5 (although probably overkill): https://gist.github.com/phfaist/a5b8a895b003822df5397731f4673042

@ErikBjare
Copy link
Member Author

Weird error when installing aw-server: https://github.com/ActivityWatch/activitywatch/runs/1618196440#step:11:326

Pretty sure it's just a one-off (I've seen it before), but not sure.

@ErikBjare
Copy link
Member Author

All is green!

Just checked the latest CI built aw-qt and aw-server-rust binaries with otool -l, and while they reply with different answers both should be okay:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant