Problem installing rpm because of uppercase vs lowercase

I’m trying to install: remarkable a markdown editor that I prefer over the ReText available in the opensuse repository.

https://remarkableapp.github.io/linux.html

I downloaded the rpm but:


> sudo zypper in downloads/rpms/remarkable-1.87-1.rpm 
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides python3-markdown needed by remarkable-1.87-1.noarch
 Solution 1: do not install remarkable-1.87-1.noarch
 Solution 2: break remarkable-1.87-1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c] (c): c


> sudo zypper in python3-markdown
Loading repository data...
Reading installed packages...
Package 'python3-markdown' not found.


> sudo zypper se python3-markdown
Loading repository data...
Reading installed packages...

S  | Name                  | Summary                             | Type   
---+-----------------------+-------------------------------------+--------
i+ | python3-Markdown      | Python implementation of Markdown   | package
i+ | python3-markdown-math | Math extension for Python-Markdown  | package
   | python3-markdown2     | A Python implementation of Markdown | package

Is there a way of making the dependency: python3-markdown point to python3-Markdown, or make the rpm non-case sensitive?

Thanks

Hi
Not really, but since the files are installed in a lowercase directory (markdown), you should just ignore (select option 2) and install, the application should work fine.

No it doesn’t (opensuse Leap 15.2)


ndromeda:/home/fernando/tmp # zypper in remarkable-1.87-1.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides python3-markdown needed by remarkable-1.87-1.noarch
 Solution 1: do not install remarkable-1.87-1.noarch
 Solution 2: break remarkable-1.87-1.noarch by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/c/d/?] (c): 2
Resolving dependencies...
Resolving package dependencies...

The following 6 NEW packages are going to be installed:
  libwkhtmltox0 python3-beautifulsoup4 python3-soupsieve remarkable wkhtmltopdf xvfb-run

The following recommended package was automatically selected:
  xvfb-run

6 new packages to install.
Overall download size: 587.2 KiB. Already cached: 0 B. After the operation, additional 2.4 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package libwkhtmltox0-0.12.5-lp152.11.3.x86_64                                                                                    (1/6), 114.8 KiB (389.1 KiB unpacked)
Retrieving: libwkhtmltox0-0.12.5-lp152.11.3.x86_64.rpm .....................................................................................................................[done]
Retrieving package python3-soupsieve-1.9.5-lp152.1.1.noarch                                                                                  (2/6),  68.2 KiB (305.4 KiB unpacked)
Retrieving: python3-soupsieve-1.9.5-lp152.1.1.noarch.rpm ...................................................................................................................[done]
Retrieving package xvfb-run-1.5.2-lp152.3.2.noarch                                                                                           (3/6),  13.5 KiB (  9.1 KiB unpacked)
Retrieving: xvfb-run-1.5.2-lp152.3.2.noarch.rpm ............................................................................................................................[done]
Retrieving package python3-beautifulsoup4-4.8.2-lp152.1.1.noarch                                                                             (4/6), 191.3 KiB (  1.0 MiB unpacked)
Retrieving: python3-beautifulsoup4-4.8.2-lp152.1.1.noarch.rpm .................................................................................................[done (15.5 KiB/s)]
Retrieving package wkhtmltopdf-0.12.5-lp152.11.3.x86_64                                                                                      (5/6), 108.9 KiB (400.8 KiB unpacked)
Retrieving: wkhtmltopdf-0.12.5-lp152.11.3.x86_64.rpm .......................................................................................................................[done]
Retrieving package remarkable-1.87-1.noarch                                                                                                  (6/6),  90.5 KiB (300.8 KiB unpacked)
remarkable-1.87-1.rpm:
    Package is not signed!

remarkable-1.87-1.noarch (Plain RPM files cache): Signature verification failed [6-File is unsigned]
Abort, retry, ignore? [a/r/i] (a): i

Checking for file conflicts: ...............................................................................................................................................[done]
(1/6) Installing: libwkhtmltox0-0.12.5-lp152.11.3.x86_64 ...................................................................................................................[done]
(2/6) Installing: python3-soupsieve-1.9.5-lp152.1.1.noarch .................................................................................................................[done]
(3/6) Installing: xvfb-run-1.5.2-lp152.3.2.noarch ..........................................................................................................................[done]
(4/6) Installing: python3-beautifulsoup4-4.8.2-lp152.1.1.noarch ............................................................................................................[done]
(5/6) Installing: wkhtmltopdf-0.12.5-lp152.11.3.x86_64 .....................................................................................................................[done]
(6/6) Installing: remarkable-1.87-1.noarch .................................................................................................................................[done]
andromeda:/home/fernando/tmp # 


andromeda:/home/fernando/tmp # zypper in  python3-Markdown
Loading repository data...
Reading installed packages...
'python3-Markdown' is already installed.
No update candidate for 'python3-Markdown-3.1.1-lp152.1.2.noarch'. The highest available version is already installed.
Resolving package dependencies...

Nothing to do.
andromeda:/home/fernando/tmp #
fernando@andromeda:~> remarkable
Traceback (most recent call last):
  File "/usr/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.6/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available
fernando@andromeda:~> 

There is a fix here but implies editing the rpm database and I have not yet been bold enough to test it.

best regards

Hi
Your error is something completely different… is the gtksource typelib installed?

No it wasn’t, installing it changes the error, but does not solve it.

andromeda:/home/fernando/tmp # zypper install typelib-1_0-GtkSource-3_0
Retrieving repository 'Packman Repository' metadata ........................................................................................................................[done]
Building repository 'Packman Repository' cache .............................................................................................................................[done]
Retrieving repository 'openSUSE-Leap-15.2-Update' metadata .................................................................................................................[done]
Building repository 'openSUSE-Leap-15.2-Update' cache ......................................................................................................................[done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  typelib-1_0-GtkSource-3_0

1 new package to install.
Overall download size: 38.3 KiB. Already cached: 0 B. After the operation, additional 70.4 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving package typelib-1_0-GtkSource-3_0-3.24.11-lp152.2.5.x86_64                                                                        (1/1),  38.3 KiB ( 70.4 KiB unpacked)
Retrieving: typelib-1_0-GtkSource-3_0-3.24.11-lp152.2.5.x86_64.rpm .........................................................................................................[done]

Checking for file conflicts: ...............................................................................................................................................[done]
(1/1) Installing: typelib-1_0-GtkSource-3_0-3.24.11-lp152.2.5.x86_64 .......................................................................................................[done]
[1]+  Done                    yast2
andromeda:/home/fernando/tmp # 


fernando@andromeda:~> remarkable
Traceback (most recent call last):
  File "/usr/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 27, in <module>
    gi.require_version('WebKit', '3.0')
  File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace WebKit not available
fernando@andromeda:~> 


So now the problem is with Webkit.
I can’t find what package I have to install, so I tried with pip3, but it report just another error

andromeda:/home/fernando/tmp # pip install webkit 
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    load_entry_point('pip==10.0.1', 'console_scripts', 'pip3.6')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
    module = __import__(self.module_name, fromlist='__name__'], level=0)
  File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
    from pip._internal import cmdoptions
  File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
    from pip._internal.index import (
ImportError: cannot import name 'FormatControl'
andromeda:/home/fernando/tmp # 

So, I’m stuck.

Hi
The error indicates the issue, it’s another namespace one, look for the typelib name webkit :wink: