Skip to content
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

Print correct final MSStore Python bin dirs after install #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hintron
Copy link

@hintron hintron commented Nov 17, 2022

The installer class still had the unresolved, old bin dirs before being resolved. So they were incorrectly being printed at the end of the install.

The installer class still had the unresolved, old bin dirs before
being resolved. So they were incorrectly being printed at the end
of the install.
@vercel
Copy link

vercel bot commented Nov 17, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
install-python-poetry-org ✅ Ready (Inspect) Visit Preview Nov 17, 2022 at 7:39AM (UTC)

@hintron
Copy link
Author

hintron commented Nov 17, 2022

This is a follow up to #18 and python-poetry/poetry#5931.

I am on Windows with Git Bash, using the Microsoft Store Python. The installer script correctly installs Poetry into the sandboxed location provided by the MSStore Python. However, the final message printed to the user by the install script is wrong. It uses the old, unresolved bin path, which points to nothing.

My fix is to pass back the env object's bin dir to the installer object, and if it is different than the installer object's bin dir, then assume it was resolved to something else and print that.

I just hacked something together as a starting point. It does the job, but should be iterated on.

@neersighted
Copy link
Member

This is not mergable -- we don't want to hardcode Windows assumptions like this (and indeed, the "fix" from #18 actually should be partially reverted as it breaks some scenarios). I've got a branch locally which solves some of these issues, I'll try to dust it off in the next few days.

@Trolldemorted
Copy link

@neersighted sorry to bother you, but is there a chance we can get your local branch upstream soon?

@temeddix
Copy link

temeddix commented Aug 8, 2023

This issue still remains in August 2023. No progress here? This wrong message in the console really makes a whole lot of confusion.

@dnadlinger
Copy link

Just ran into this as well.

The current situation is considerably confusing, as the installation instructions at https://python-poetry.org/docs/ explicitly mention Python from the Windows Store, implicitly suggesting to the user that it is supported. Yet, after following the on-screen instructions, poetry is not available. Until this is fixed, it would probably be better to explicitly document Windows Store installs as unsupported.

@temeddix
Copy link

Agreed, at least we should mention that MS Store Python is not supported

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

Successfully merging this pull request may close these issues.

5 participants