Help building a flatpak for qutebrowser

Ankur Sinha sanjay.ankur at gmail.com
Fri Jun 23 23:58:58 UTC 2017


On Fri, 2017-06-23 at 11:47 +0100, Emmanuele Bassi wrote:
> Which version of Flatpak are you using? With 0.8.x I've noticed that
> Python modules installed via setuptools' setup.py are generally
> broken
> by the inclusion in the repo.
> 
> You should either update Flatpak to the 0.9 release, or you should
> use
> `pip install .` instead of `python ./setup.py`.

Thanks for this - using `pip` to build all the python bits worked. I'm
building on F26 here, so it's flatpak-0.9.5-1.fc26.x86_64

Now, it builds, installs, but crashes on running :D
Here's the updated manifest, and then the error:

https://github.com/sanjayankur31/qutebrowser/blob/flatpak/qutebrowser.json

> [asinha at ankur  flatpaks]$ flatpak run org.qutebrowser.desktop
> Gtk-Message: Failed to load module "pk-gtk-module"
> Gtk-Message: Failed to load module "canberra-gtk-module"
> Gtk-Message: Failed to load module "pk-gtk-module"
> Gtk-Message: Failed to load module "canberra-gtk-module"
> libGL error: MESA-LOADER: failed to retrieve device information
> libGL error: Version 4 or later of flush extension not found
> libGL error: failed to load driver: i915
> libGL error: failed to open drm device: No such file or directory
> libGL error: failed to load driver: i965
> 00:49:11 WARNING: WebEngine compiled with X11 support, however qpa backend is not xcb. This may fail.
>   File "/app/bin/qutebrowser", line 9, in <module>
>     load_entry_point('qutebrowser==0.10.1', 'gui_scripts', 'qutebrowser')()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/qutebrowser.py", line 178, in main
>     return app.run(args)
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 112, in run
>     init(args, crash_handler)
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 138, in init
>     _init_modules(args, crash_handler)
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/app.py", line 431, in _init_modules
>     crash_handler.handle_segfault()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashsignal.py", line 87, in handle_segfault
>     self._args.debug, data)
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 100, in get_fatal_crash_dialog
>     return FatalCrashDialog(debug, data)
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 498, in __init__
>     self._set_crash_info()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 270, in _set_crash_info
>     self._gather_crash_info()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 536, in _gather_crash_info
>     super()._gather_crash_info()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/misc/crashdialog.py", line 254, in _gather_crash_info
>     self._crash_info.append(("Version info", version.version()))
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 316, in version
>     lines.append("Backend: {}".format(_backend()))
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 306, in _backend
>     return 'QtWebEngine (Chromium {})'.format(_chromium_version())
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/version.py", line 288, in _chromium_version
>     profile = QWebEngineProfile()
>   File "/app/usr/lib/python3.5/site-packages/qutebrowser/utils/log.py", line 442, in qt_message_handler
>     stack = ''.join(traceback.format_stack())
> 
> [2:2:0624/004911.080947:INFO:zygote_host_impl_linux.cc(107)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
> [2:2:0624/004911.252627:WARNING:audio_manager.cc(317)] Multiple instances of AudioManager detected
> [2:2:0624/004911.252672:WARNING:audio_manager.cc(278)] Multiple instances of AudioManager detected
> [2:21:0624/004911.255230:FATAL:udev_loader.cc(38)] Check failed: false.
> #0 0x7f976854d499 <unknown>
> #1 0x7f97685859dd <unknown>
> #2 0x7f9766893e68 <unknown>
> #3 0x7f976688ff90 <unknown>
> #4 0x7f9766891975 <unknown>
> #5 0x7f976a711536 <unknown>
> #6 0x7f976a7131f4 <unknown>
> #7 0x7f976a712e7c <unknown>
> #8 0x7f976a71276b <unknown>
> #9 0x7f976a7123d6 <unknown>
> #10 0x7f97686aabb1 <unknown>
> #11 0x7f9768752282 <unknown>
> #12 0x7f97685a829a <unknown>
> #13 0x7f97685a83f8 <unknown>
> #14 0x7f97685a88cb <unknown>
> #15 0x7f97685c7b3e <unknown>
> #16 0x7f97685a7e97 <unknown>
> #17 0x7f97686405f0 <unknown>
> #18 0x7f976869d5d5 <unknown>
> #19 0x7f9766b2703f <unknown>
> #20 0x7f9766b27358 <unknown>
> #21 0x7f976869de3d <unknown>
> #22 0x7f97686869ef <unknown>
> #23 0x0032ada073f4 <unknown>
> #24 0x0032ad2e827f <unknown>
> 
> [asinha at ankur  flatpaks]$
> 

-- 
Thanks,
Regards,
Ankur Sinha "FranciscoD"

https://fedoraproject.org/wiki/User:Ankursinha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20170624/5185887c/attachment.sig>


More information about the Flatpak mailing list