Skip to content

get-pip.py hangs #2668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
oroppas opened this issue May 23, 2021 · 8 comments
Closed

get-pip.py hangs #2668

oroppas opened this issue May 23, 2021 · 8 comments

Comments

@oroppas
Copy link

oroppas commented May 23, 2021

cargo run --features ssl --release get-pip.py hangs indefinitely on both Linux and Windows.
How can I diagnose?

@coolreader18
Copy link
Member

You could try adding -v as an argument to rustpython, e.g target/release/rustpython -v get-pip.py. That should at least tell you what the last thing that gets imported is, and you can add more v's to get more verbose logs.

@oroppas
Copy link
Author

oroppas commented May 23, 2021

Thanks.

I did some manual debugging with more verbosity to figure out where rustpython hangs

...
DEBUG: Running bootstrap...
DEBUG: monkeypatch_for_cert
DEBUG: from pip._internal.commands.install import InstallCommand
# trying /home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/encodings/ascii.py
# /home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/encodings/__pycache__/ascii.rustpython-01.pyc matches /home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/encodings/ascii.py
# code object from '/home/ryuta/packages/rustpython/rustpython/vm/pylib-crate/Lib/encodings/__pycache__/ascii.rustpython-01.pyc'
import 'encodings.ascii' # <SourceFileLoader object at 0x55f9ca455110>

What's puzzling is that rustpython -c "import encodings.ascii" has no issue at all.

@coolreader18
Copy link
Member

Does cargo run --features ssl --release -- -v --install-pip work or give the same error? That's what we run in CI to make sure pip can install, though manually running the get-pip.py shouldn't be any different.

@oroppas
Copy link
Author

oroppas commented May 23, 2021

Hmm. cargo run --features ssl --release -- -v --install-pip works perfectly fine.

@coolreader18
Copy link
Member

Weird...

@oroppas
Copy link
Author

oroppas commented May 24, 2021

For now --install-pip works, so no big deal. I'll come back and try to figure out what's going on.

@DimitrisJim
Copy link
Member

Also ref: #3097

Can we close these issues or is the hanging still triggered in some way?

@oroppas
Copy link
Author

oroppas commented Oct 16, 2021

Closing as get-pip.py (or --install-pip) works on Linux.
For Windows, see #2671.

@oroppas oroppas closed this as completed Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy