Skip to content

pip cannot find any site-packages #3808

Closed

Description

@JJJHolscher

rustpython --install-pip fails for
OS: Manjaro 21.3.0
Rustc: 1.81.0

downloading get-pip.py...
running get-pip.py...
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip

I managed to install pip with ensurepip from the ensure-pip branch.

$ cargo run --release --features ssl -- -m ensurepip                                                                                              
[...]
Successfully installed pip-22.0.4 setuptools-58.1.0

But then the error repeated when I tried to install numpy beautifulsoup or configparser.

$ cargo run --release --features ssl -- -m pip install numpy                                                                                            
[...]
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

(tangential: I tried to debug ~/.local/lib/rustpython3.10/pip/_internal/index/package_finder.py) in vscode but the default debugger would not start when rustpython was its interpreter. I have not raised an issue for this because I am unfamiliar with debugger internals.)

Activity

  1. changed the title [-]pip cannot find any site-package versions[/-] [+]pip cannot find any site-packages[/+] on Jun 22, 2022
  2. dieterplex commented on Jun 23, 2022

    @dieterplex
    Contributor

    pip is going to look up pypi simple index page for packages and parsing links of candidate.
    While parsing tags in html parser, it doesn't work correctly and give no links.
    What I found currently is there's something wrong with re module internally that re match() give wrong result for tag end position.
    It's similar to the failed test case test_get_starttag_text in test_htmlparser.py.

  3. fanninpm commented on Jun 29, 2022

    @fanninpm
    Contributor

    This has been a problem since late-January/early-February. See also:

  4. fanninpm commented on Jul 28, 2022

    @fanninpm
    Contributor

    @JJJHolscher does the absolute latest version of the main branch work for you?

  5. JJJHolscher commented on Jul 29, 2022

    @JJJHolscher
    Author

    yes !
    installing numpy failed because ctypes is not in rustpython yet, but configparser succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions