pavinjosdev / zypperoni

Speed up openSUSE's package manager zypper
GNU General Public License v3.0
54 stars 2 forks source link

Error running zypperoni in package #6

Closed Spaceboy60 closed 2 months ago

Spaceboy60 commented 2 months ago

Get the following error when i run zypperoni in package:

Traceback (most recent call last): File "/usr/bin/zypperoni", line 577, in if item.attrib["type"] == "package": KeyError: 'type'

pavinjosdev commented 2 months ago

No issues here with zypperoni v0.3.4 and zypper 1.14.76.

Installing package where z is an alias for sudo zypperoni:

pavin@suse-pc:~> z in btop
2024-09-14 10:09:06,529: INFO: Getting packages and their dependencies to be downloaded for installation
2024-09-14 10:09:12,557: INFO: Number of packages to download: 1
2024-09-14 10:09:12,557: INFO: Total download size: 0.79 MB
2024-09-14 10:09:12,557: INFO: Space usage difference after operation: +2.14 MB
2024-09-14 10:09:12,557: INFO: Packages to download: btop
Would you like to continue? [Y/n]: 
2024-09-14 10:09:13,383: INFO: Downloading package [1/1] 'btop'
2024-09-14 10:09:19,388: INFO: Successfully downloaded package 'btop'
2024-09-14 10:09:19,521: INFO: Cleaning up temp mounts...
2024-09-14 10:09:19,624: INFO: Cleaning up temp directory...
2024-09-14 10:09:19,630: INFO: Zypperoni has finished its tasks. Handing you over to zypper...
Loading repository data...
Reading installed packages...
[TechPreview] $ZYPP_SINGLE_RPMTRANS=1 : New rpm install backend is enabled
              If you find any bugs or issues please let us know:
              https://bugzilla.opensuse.org/
              Component: libzypp (or zypper)
              And please attach the /var/log/zypper.log to the bug report.
Resolving package dependencies...

The following NEW package is going to be installed:
  btop

1 new package to install.

Package download size:
            |     767.6 KiB  overall package size
       0 B  |  -  767.6 KiB  already in cache

Package install size change:
              |       2.0 MiB  required by to be installed packages
     2.0 MiB  |  -      0 B    released by to be removed packages

Backend:  single_rpmtrans
Continue? [y/n/v/...? shows all options] (y): 
In cache btop-1.3.2+git20240805.00c9088-1.1.x86_64.rpm                                                                                                    (1/1), 767.6 KiB    
Verifying ..............................................................................................................................................................[done]
Preparing ..............................................................................................................................................................[done]
(1/1) Installing: btop-1.3.2+git20240805.00c9088-1.1.x86_64 ............................................................................................................[done]
(1/1) Executing triggerin script for: desktop-file-utils-0.27-2.3.x86_64 ...............................................................................................[done]
(1/1) Executing triggerin script for: gtk2-tools-2.24.33-12.1.x86_64 ...................................................................................................[done]
(1/1) Executing triggerin script for: gtk3-tools-3.24.43-2.1.x86_64 ....................................................................................................[done]
(1/1) Executing triggerin script for: man-2.12.1-1.1.x86_64 ............................................................................................................[done]
pavin@suse-pc:~> 

For troubleshooting, could you provide:

  1. zypperoni and zypper versions
  2. debug output of your command, for example: sudo zypperoni --debug in <pkgs...>
Spaceboy60 commented 2 months ago

Don't worry, was in geckolinux, but deleted the VM as I'm running opensuse and saw no advantages to using geckolinux in comparison.

Works fine on opensuse slowroll