You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.)
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.
Activity
[-]pip cannot find any site-package versions[/-][+]pip cannot find any site-packages[/+]dieterplex commentedon Jun 23, 2022
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
remodule internally that re match() give wrong result for tag end position.It's similar to the failed test case
test_get_starttag_textintest_htmlparser.py.fanninpm commentedon Jun 29, 2022
This has been a problem since late-January/early-February. See also:
fanninpm commentedon Jul 28, 2022
@JJJHolscher does the absolute latest version of the
mainbranch work for you?JJJHolscher commentedon Jul 29, 2022
yes !
installing numpy failed because ctypes is not in rustpython yet, but configparser succeeded.