-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
Linux appimage build of project doesn't run #1816
Comments
Thanks for the report; given what you're trying to do, and the specific timeline you've mentioned we need to be very clear about what has gone on here. On Mar 10, we released Briefcase 0.3.13. One of the major changes in this release was changing the default output format for Linux projects. On Briefcase 0.3.12 and earlier, it was AppImage; From 0.3.13 and going forward, it is native system packages (deb, rpm). This means that the output format of Your stack trace also mentions zope and webkit, which suggests you're trying to build an embedded web GUI project. We've discovered that AppImage can't reliably package WebKit2 (which is what provides Toga's web view); it may work, depending on your platform, but it can't be relied upon. So: Are you still using Briefcase 0.3.12, or have you updated? How certain are you that the old version of the app worked? The AppImage may well have worked for you - especially if you're testing on a debian-alike operating system that has webkit2 libraries installed - but if you run on a Fedora or Arch box, or you uninstall webkit2 locally, you will likely have problems. |
Hello I am on an Arch Box and the previous appimages were working. I also checked if webkit2 was uninstalled somehow, but they are installed:
Running the app with To ensure that the Arch Box was not somehow damaged, I tried to run the generated appimage on an If the appimages cannot reliably package webkit2 then are there any other alternatives. |
To clarify - I wasn't suggesting upgrading Briefcase as a potential fix - I was trying to diagnose what has changed between your two original runs. You're reporting that you had a "working" app image "about a week ago"; and that a new run on exactly the same code is no longer working. I was trying to establish if there had been a Briefcase update between the two runs. If there had been a Briefcase update, then that would at least be something that had changed that could indicate a potential source of error. Based on your most recent post, it sounds like there wasn't a Briefcase update. So - if Briefcase hasn't changed, and your code hasn't changed - something must have changed. It could be due to this recent change to the Linuxdeploy GTK plugin; or, it could be due to some other change on your host system. However, as I said - this is mostly a moot point. There is literally no way at present to package a Linux binary that uses WebKit2 with AppImage, due to issues with AppImage (and linuxdeploy) itself (linuxdeploy/linuxdeploy-plugin-gtk#42). It is possible to produce appimages that superficially appear to work; however, this will only be because your AppImage has a leaky dependency on an external library. The AppImage will work if a compatible library exists on the machine running the AppImage; but as soon as you move to a "clean" system, you'll have problems. This is the main reason that Briefcase has moved to native system packages as the default packaging format as of Briefcase 0.3.13. The one downside to that in your case is that we don't have Arch-compatible packaging at this point. You should be able to run a briefcase "system" project, but it won't produce Arch installable packages. The placeholders for Arch packaging support are all in place - all we need is the mechanics of how to define and build a distributable Arch package (beeware/briefcase#1064). If someone can fill in the gaps of what is required (either in the form of a complete PR, or even some pointers to the files and commands that need to be executed), I'd gladly merge (or complete) that PR. |
Thank you for helping. I know how to package for arch but not very sure about how to package briefcase projects. I will research more about how briefcase packages them and try to package a sample project for arch. |
FWIW: The System package backend generates a I've never heard of |
Procedurally, I'm going to close this as a duplicate of beeware/briefcase#1029, since it's a known Briefcase packaging issue. If you're able to provide any details on Arch/pacman packaging, they should be added to beeware/briefcase#1064. |
Thanks I'll add the details on to beeware/briefcase#1064 |
Describe the bug
Output of
briefcase create linux
andbriefcase build linux
are not running and give the following error:But doing
briefcase dev
, the app works fine. Moreover, earlier(about a week ago) whenbriefcase create linux
andbriefcase build linux
were run on the same project, the output appimages were working fine(No changes were made to the code between the last time the linux build was generated).Steps to reproduce
briefcase create linux
andbriefcase build linux
Expected behavior
The output appimages should run without any error like previously they did.
Screenshots
No response
Environment
3.8.16
0.3.12
0.3
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: