Jguer / yay

Yet another Yogurt - An AUR Helper written in Go
GNU General Public License v3.0
11.01k stars 360 forks source link

can't find a package #2143

Closed ynikitenko closed 1 year ago

ynikitenko commented 1 year ago

Affected Version

yay v12.0.4 - libalpm v13.0.2

Describe the bug

I'm trying to install python2 from AUR. The package exists, but yay can't find that:

$ yay install python2
9 aur/python2-kivy-garden 0.1.4-1 (+0 0.00) 
    The kivy garden installation script, split into its own package for convenient use in buildozer.
8 aur/python2-omnijson 0.1.2-6 (+0 0.00) 
    Selects the best installed JSON implementation available to Python.
7 aur/python2-vsc-install 0.10.27-2 (+0 0.00) 
    Shared setuptools functions and classes for python libraries developed by UGent's HPC group
6 aur/python2-rackspace-novaclient 1.4-3 (+1 0.00) (Out-of-date: 2022-08-01) 
    Metapackage to install python-novaclient and Rackspace extensions
5 aur/python2-virtualenvondemand 6.0.0-1 (+1 0.00) 
    Easily create and use virtualenvs via script and provides the ability for an application to install and use its runtime dependencies on first import
4 aur/python2-pyuserinput-git 86.9fd2879-1 (+3 0.00) (Orphaned) 
    A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
3 aur/panda3d-python2 1.10.11-1 (+0 0.00) (Orphaned) 
    A 3D game engine with Python bindings. SDK package. Optional dependencies you want to support need to be installed before panda3d.
2 aur/python2-pip 20.3.4-1 (+4 1.74) 
    The PyPA recommended tool for installing Python packages
1 aur/python2-setuptools 2:44.1.1-2 (+16 2.75) 
    Easily download, build, install, upgrade, and uninstall Python packages
==> Packages to install (eg: 1 2 3, 1-3 or ^4)

Reproduction Steps

  1. yay install python2
  2. fail.

Expected behavior

python2 should be installed.

Output

The current yay config can be printed with yay -Pg -- is it enough or not?

Use --debug to add pacman and yay debug logs or add the following key to your ~/.config/yay/config.json to only get yay debug logs { "debug": true } -->

    "aururl": "https://aur.archlinux.org",
    "aurrpcurl": "https://aur.archlinux.org/rpc?",
    "buildDir": "/home/yaroslav/.cache/yay",
    "editor": "",
    "editorflags": "",
    "makepkgbin": "makepkg",
    "makepkgconf": "",
    "pacmanbin": "pacman",
    "pacmanconf": "/etc/pacman.conf",
    "redownload": "no",
    "rebuild": "no",
    "answerclean": "",
    "answerdiff": "",
    "answeredit": "",
    "answerupgrade": "",
    "gitbin": "git",
    "gpgbin": "gpg",
    "gpgflags": "",
    "mflags": "",
    "sortby": "votes",
    "searchby": "name-desc",
    "gitflags": "",
    "removemake": "ask",
    "sudobin": "sudo",
    "sudoflags": "",
    "version": "12.0.4",
    "requestsplitn": 150,
    "completionrefreshtime": 7,
    "maxconcurrentdownloads": 0,
    "bottomup": true,
    "sudoloop": false,
    "timeupdate": false,
    "devel": false,
    "cleanAfter": false,
    "provides": true,
    "pgpfetch": true,
    "upgrademenu": true,
    "cleanmenu": true,
    "diffmenu": true,
    "editmenu": false,
    "combinedupgrade": true,
    "useask": false,
    "batchinstall": false,
    "singlelineresults": false,
    "separatesources": true,
    "newinstallengine": true,
    "debug": false,
    "rpc": true,
    "doubleconfirm": true
}

Sorry, didn't fully understand what is asked from me in this section. Hope this helps.

ynikitenko commented 1 year ago

I would add that this is the default yay I've just installed on a new system. I doubt that I transferred some configuration from my old one. I can install other packages. In fact, I could install python2 as well, but as a dependency for python2-pip.

ynikitenko commented 1 year ago

A similar bug was closed, https://github.com/Jguer/yay/issues/1443 . There is another open bug, https://github.com/Jguer/yay/issues/1744

Jguer commented 1 year ago

yay python2 finds it

yay install python2 searches for install and then tries to filter on python2

ynikitenko commented 1 year ago

Oh, I'm really sorry. I got confused with all these pip, pacman, etc.

Thank you for updating documentation!