Remarkable 1.87-1 fails to launch in Fedora 39

Downloaded https://remarkableapp.github.io/files/remarkable-1.87-1.rpm

# dnf install remarkable-1.87-1.rpm 
Last metadata expiration check: 0:37:15 ago on Mon 12 Feb 2024 05:49:20 AM UTC.
Dependencies resolved.
============================================================================================================================================================
 Package                                  Architecture                   Version                                 Repository                            Size
============================================================================================================================================================
Installing:
 remarkable                               noarch                         1.87-1                                  @commandline                          90 k
Installing dependencies:
 python3-markdown                         noarch                         3.5.1-1.fc39                            updates                              199 k
 wkhtmltopdf                              x86_64                         0.12.6-2.fc39.5                         fedora                               212 k

Transaction Summary
============================================================================================================================================================
Install  3 Packages

Total size: 502 k
Total download size: 411 k
Installed size: 1.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): wkhtmltopdf-0.12.6-2.fc39.5.x86_64.rpm                                                                               2.5 MB/s | 212 kB     00:00    
(2/2): python3-markdown-3.5.1-1.fc39.noarch.rpm                                                                             1.9 MB/s | 199 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                       1.4 MB/s | 411 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                    1/1 
  Installing       : python3-markdown-3.5.1-1.fc39.noarch                                                                                               1/3 
  Installing       : wkhtmltopdf-0.12.6-2.fc39.5.x86_64                                                                                                 2/3 
  Installing       : remarkable-1.87-1.noarch                                                                                                           3/3 
  Running scriptlet: remarkable-1.87-1.noarch                                                                                                           3/3 
  Verifying        : wkhtmltopdf-0.12.6-2.fc39.5.x86_64                                                                                                 1/3 
  Verifying        : python3-markdown-3.5.1-1.fc39.noarch                                                                                               2/3 
  Verifying        : remarkable-1.87-1.noarch                                                                                                           3/3 

Installed:
  python3-markdown-3.5.1-1.fc39.noarch                    remarkable-1.87-1.noarch                    wkhtmltopdf-0.12.6-2.fc39.5.x86_64                   

Complete!

Then trying to launch it fails:

$ remarkable 
Traceback (most recent call last):
  File "/bin/remarkable", line 65, in <module>
    import remarkable
  File "/usr/lib/python3/dist-packages/remarkable/__init__.py", line 30, in <module>
    from remarkable import RemarkableWindow
  File "/usr/lib/python3/dist-packages/remarkable/RemarkableWindow.py", line 26, in <module>
    gi.require_version('GtkSource', '3.0')
  File "/usr/lib64/python3.12/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available

I have no experience with Remarkable but I noted on their github repo that the code hasn’t been touched for 4 years, see GitHub - jamiemcg/Remarkable: Remarkable - The Markdown Editor for Linux http://remarkableapp.github.io. Maybe it’s not compatible with python 3.12…?

I found a copr repo that also builds remarkable: neteler/remarkable Copr. There are additional patches applied as applied, as you can see in the spec file: https://copr-be.cloud.fedoraproject.org/results/neteler/remarkable/fedora-39-x86_64/05355026-remarkable/remarkable.spec

Source0: https://github.com/jamiemcg/%{_name}/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
Requires: python3-beautifulsoup4
Requires: python3-markdown
Requires: wkhtmltopdf
Requires: python3-pdfkit
Requires: gtksourceview3
Requires: webkitgtk4
Patch0: 0003-fixes-184-port-to-WebKit2Gtk.patch
Patch1: 0004-fixes-175-Live-Preview-Mode-Executes-JavaScript.patch
Patch2: remarkable_lib_Builder.diff

Also note that there the dependencies may be different from the .rpm that you installed.

I would give that copr build a try.

Has unmet dependencies:

# dnf copr enable neteler/remarkable 
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/neteler/remarkable? [y/N]: y
Repository successfully enabled.
# dnf install remarkable 
Copr repo for remarkable owned by neteler                                                                                   3.1 kB/s | 2.0 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides python(abi) = 3.11 needed by remarkable-1.87-8.noarch from copr:copr.fedorainfracloud.org:neteler:remarkable
(try to add '--skip-broken' to skip uninstallable packages)

Remarkable doesn’t compile against python 3.12 (f39). That’s why the package was dropped in F39.