
Error “TypeError: 'AURPackageInfo' does not have attribute 'submitter'” (SOLVED)
December 5, 2022
pikaur is a utility for facilitating the installation and updating of programs from the AUR. You can read more about pikaur in the article “Automatic installation and update of AUR packages”.
pikaur's options are similar to pacman, but you don't need to use sudo. For example, updating all packages is done with the following command:
pikaur -Syu
On my Arch Linux (BlackArch) I once got the following error:
Reading AUR packages info... File "/usr/lib/python3.10/site-packages/pikaur/main.py", line 369, in main cli_entry_point() File "/usr/lib/python3.10/site-packages/pikaur/main.py", line 272, in cli_entry_point run_with_sudo_loop(pikaur_operation) File "/usr/lib/python3.10/site-packages/pikaur/core.py", line 417, in run_with_sudo_loop raise catched_exc File "/usr/lib/python3.10/site-packages/pikaur/core.py", line 411, in run_with_sudo_loop result = main_thread.get() File "/usr/lib/python3.10/multiprocessing/pool.py", line 774, in get raise self._value File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/lib/python3.10/site-packages/pikaur/main.py", line 136, in cli_install_packages InstallPackagesCLI() File "/usr/lib/python3.10/site-packages/pikaur/install_cli.py", line 186, in __init__ self.main_sequence() File "/usr/lib/python3.10/site-packages/pikaur/install_cli.py", line 193, in main_sequence self.get_all_packages_info() File "/usr/lib/python3.10/site-packages/pikaur/install_cli.py", line 273, in get_all_packages_info self.install_info = InstallInfoFetcher( File "/usr/lib/python3.10/site-packages/pikaur/install_info_fetcher.py", line 71, in __init__ self.get_all_packages_info() File "/usr/lib/python3.10/site-packages/pikaur/install_info_fetcher.py", line 212, in get_all_packages_info self.get_aur_pkgs_info(self.not_found_repo_pkgs_names) File "/usr/lib/python3.10/site-packages/pikaur/install_info_fetcher.py", line 468, in get_aur_pkgs_info aur_updates_list, not_found_aur_pkgs = find_aur_updates() File "/usr/lib/python3.10/site-packages/pikaur/updates.py", line 125, in find_aur_updates aur_pkgs_info, not_found_aur_pkgs = find_aur_packages(package_names) File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 184, in find_aur_packages results = [request.get() for request in requests] File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 184, in <listcomp> results = [request.get() for request in requests] File "/usr/lib/python3.10/multiprocessing/pool.py", line 774, in get raise self._value File "/usr/lib/python3.10/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 143, in aur_rpc_info_with_progress result = aur_rpc_info(search_queries) File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 133, in aur_rpc_info return [ File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 134, in <listcomp> AURPackageInfo(**{key.lower(): value for key, value in aur_json.items()}) File "/usr/lib/python3.10/site-packages/pikaur/aur.py", line 60, in __init__ super().__init__(**kwargs) File "/usr/lib/python3.10/site-packages/pikaur/core.py", line 88, in __init__ setattr(self, key, value) File "/usr/lib/python3.10/site-packages/pikaur/core.py", line 102, in __setattr__ raise TypeError( TypeError: 'AURPackageInfo' does not have attribute 'submitter'
To fix this error, you need to reinstall pikaur. To reinstall pikaur, run the following commands:
git clone https://github.com/actionless/pikaur.git cd pikaur makepkg -fsri
If an error occurs
fatal: destination path 'pikaur' already exists and is not an empty directory.
Then instead of the previous ones, run the following commands:
cd pikaur git pull makepkg -fsri
In my case, when installing pikaur, the following dependencies were additionally installed:
- python-mdurl
- python-pep517
- python-uc-micro-py
- python-build
- python-installer
- python-markdown-it-py
After that, pikaur began to work without errors.
Related articles:
- How to view package information in Arch Linux (BlackArch, Manjaro) (99.2%)
- How to download a package without installation in Arch Linux and Manjaro. How to download the AUR package source code (99.2%)
- How to install and use pikaur and makepkg on a server (95%)
- How to completely uninstall a package along with dependencies on Arch Linux (as well as BlackArch and Manjaro) (75.5%)
- Error: failed to commit transaction (conflicting files) (SOLVED) (71.4%)
- How to install and configure best video player on Linux (SMPlayer) (RANDOM - 50%)