openSUSE / opi

OBS Package Installer (CLI)
GNU General Public License v3.0
233 stars 20 forks source link

`TypeError: 'Repository' object is not subscriptable` while installing codecs #166

Closed BayerGL closed 7 months ago

BayerGL commented 7 months ago

OPI version 4.2.0

> opi codecs
Do you want to install codecs from Packman repository? (Y/n) Y
[sudo] password for root: 
Repository 'google-chrome' is up to date.                                                                                                                  
Retrieving repository 'Packman' metadata ............................................................................................................[done]
Building repository 'Packman' cache .................................................................................................................[done]
Repository 'openSUSE-Tumbleweed-Non-Oss' is up to date.                                                                                                    
Repository 'Open H.264 Codec (openSUSE Tumbleweed)' is up to date.                                                                                         
Repository 'openSUSE-Tumbleweed-Oss' is up to date.                                                                                                        
Repository 'openSUSE-Tumbleweed-Update' is up to date.                                                                                                     
All repositories have been refreshed.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Nothing to do.
Loading repository data...
Reading installed packages...
'ffmpeg>=5' not found in package names. Trying capabilities.
'ffmpeg-6' providing 'ffmpeg >= 5' is already installed.
'ffmpeg' not found in package names. Trying capabilities.
'ffmpeg-6' providing 'ffmpeg' is already installed.
'gstreamer-plugins-bad-codecs' is already installed.
No update candidate for 'gstreamer-plugins-bad-codecs-1.22.7-1699.2.pm.1.x86_64'. The highest available version is already installed.
'gstreamer-plugins-ugly-codecs' is already installed.
No update candidate for 'gstreamer-plugins-ugly-codecs-1.22.7-1699.2.pm.1.x86_64'. The highest available version is already installed.
'pipewire-aptx' is already installed.
No update candidate for 'pipewire-aptx-1.0.0-1699.1.pm.1.x86_64'. The highest available version is already installed.
'vlc-codecs' is already installed.
No update candidate for 'vlc-codecs-3.0.20-1699.5.pm.5.x86_64'. The highest available version is already installed.
'libavcodec-full' not found in package names. Trying capabilities.
'libavcodec58_134' providing 'libavcodec-full' is already installed.
'libavcodec60' providing 'libavcodec-full' is already installed.
'libfdk-aac2' is already installed.
No update candidate for 'libfdk-aac2-2.0.2-1699.1.pm.54.x86_64'. The highest available version is already installed.
'gstreamer-plugins-libav' not found in package names. Trying capabilities.
'gstreamer-plugins-libav' is already installed.
Resolving package dependencies...
Nothing to do.
Loading repository data...
Reading installed packages...
'gstreamer-plugins-bad' is already installed.
No update candidate for 'gstreamer-plugins-bad-1.22.7-5.1.x86_64'. The highest available version is already installed.
'gstreamer-plugins-ugly' is already installed.
No update candidate for 'gstreamer-plugins-ugly-1.22.7-2.1.x86_64'. The highest available version is already installed.
'gstreamer-plugins-good' is already installed.
No update candidate for 'gstreamer-plugins-good-1.22.7-1.1.x86_64'. The highest available version is already installed.
'gstreamer-plugins-good-extra' is already installed.
No update candidate for 'gstreamer-plugins-good-extra-1.22.7-1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
Do you want to install openh264 codecs from openSUSE openh264 repository? (Y/n) Y
Traceback (most recent call last):
  File "/usr/bin/opi", line 138, in <module>
    if pm.run(query):
       ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/opi/plugins/__init__.py", line 36, in run
    plugin.run(query)
  File "/usr/lib/python3.11/site-packages/opi/plugins/packman.py", line 39, in run
    opi.add_openh264_repo(dup=True)
  File "/usr/lib/python3.11/site-packages/opi/__init__.py", line 141, in add_openh264_repo
    print(f"Installing from existing repo '{existing_repo['name']}'")
                                            ~~~~~~~~~~~~~^^^^^^^^
TypeError: 'Repository' object is not subscriptable
Global pip packages ``` apipkg 3.0.2 apparmor 3.1.6 Brotli 1.1.0 build 1.0.3 CacheControl 0.13.1 certifi 2023.11.17 cffi 1.16.0 cfgv 3.4.0 charset-normalizer 3.3.2 cleo 2.1.0 cmdln 2.0.0 configobj 5.0.8 crashtest 0.4.1 createrepo-c 1.0.2 crit 3.19 cryptography 41.0.7 cssselect 1.2.0 cupshelpers 1.0 decorator 5.1.1 distlib 0.3.7 dulwich 0.21.7 editdistance 0.6.2 fastimport 0.9.14 fastjsonschema 2.19.0 filelock 3.13.1 gpg 1.23.2 identify 2.5.33 idna 3.6 importlib-metadata 7.0.0 iniconfig 2.0.0 installer 0.7.0 ipaddr 2.2.0 jaraco.classes 3.2.3 jeepney 0.8.0 keyring 24.3.0 LibAppArmor 3.1.6 libevdev 0.11 lxml 4.9.3 meson 1.3.0 more-itertools 10.1.0 msgpack 1.0.5 mysqlclient 2.2.0 nftables 0.1 nodeenv 1.7.0 notify2 0.3.1 opi 4.2.0 packaging 23.2 pexpect 4.9.0 pip 23.3.1 pkginfo 1.9.6 platformdirs 3.11.0 poetry 1.6.1 poetry-core 1.7.0 poetry-plugin-export 1.5.0 pre-commit 3.5.0 protobuf 4.23.4 psutil 5.9.6 ptyprocess 0.7.0 py 1.11.0 pycairo 1.25.1 pycparser 2.21 pycriu 3.19 pycups 2.0.1 pycurl 7.45.2 PyGObject 3.46.0 pylev 1.4.0 pyOpenSSL 23.3.0 pyproject_hooks 1.0.0 PySocks 1.7.1 python-linux-procfs 0.7.3 pyudev 0.24.1 PyYAML 6.0.1 rapidfuzz 2.13.7 requests 2.31.0 requests-toolbelt 1.0.0 rpm 4.18.0 SecretStorage 3.3.3 setuptools 68.1.2 shellingham 1.5.4 six 1.16.0 termcolor 2.3.0 tomlkit 0.12.3 trove-classifiers 2023.10.18 urllib3 2.1.0 virtualenv 20.24.5 zipp 3.17.0 ```
cat /etc/os-release ``` NAME="openSUSE Tumbleweed" # VERSION="20231212" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20231212" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20231212" BUG_REPORT_URL="https://bugzilla.opensuse.org" SUPPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed" ```