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

Issue for poetry shell on Windows when using Python installed from msys2 #8638

Closed
3 of 4 tasks
ArchGuyWu opened this issue Nov 9, 2023 · 9 comments
Closed
3 of 4 tasks
Labels
kind/bug Something isn't working as expected

Comments

@ArchGuyWu
Copy link
Contributor

ArchGuyWu commented Nov 9, 2023

  • Poetry version: Poetry (version 1.6.1)
  • Python version: Python 3.11.6
  • OS version and name: Windows Server 2022 (Standard) x86_64
  • pyproject.toml:
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

The scripts are placed in bin folder.

@ArchGuyWu ArchGuyWu added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 9, 2023
@ArchGuyWu ArchGuyWu changed the title Issue for poetry shell on Windows when using poetry installed from msys2 Issue for poetry shell on Windows when using Python installed from msys2 Nov 9, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Nov 9, 2023

Not enough information - it is not possible to guess what you are reporting.

What did you do? What happened? What did you expect to happen?

@ArchGuyWu
Copy link
Contributor Author

ArchGuyWu commented Nov 9, 2023

Not enough information - it is not possible to guess what you are reporting.

What did you do? What happened? What did you expect to happen?

I was trying to activate a virtual environment, but it couldn't find activate.ps1, and there's no Scripts folder in {path_to_venv}.
The scripts like activate.ps1 are placed in bin folder.
2023-11-09_17-19

@dimbleby
Copy link
Contributor

dimbleby commented Nov 9, 2023

poetry just uses virtualenv to create virtual environments so you should be able to reproduce whatever it is you're seeing by calling virtualenv directly. And if you think virtualenv is doing something wrong, you should report it to that repository.

@ArchGuyWu
Copy link
Contributor Author

ArchGuyWu commented Nov 9, 2023

poetry just uses virtualenv to create virtual environments so you should be able to reproduce whatever it is you're seeing by calling virtualenv directly. And if you think virtualenv is doing something wrong, you should report it to that repository.

I think why this happens because both archlinux and msys2 are using pacman as its package manager, and they share the same packing script.
maturin also fixed this issue

@ArchGuyWu
Copy link
Contributor Author

Can you provide a patch for fixing this?I'm willing to report that to msys2.

@dimbleby
Copy link
Contributor

dimbleby commented Nov 9, 2023

Presumably this is the relevant code, submit a merge request if this is important to you

@ArchGuyWu
Copy link
Contributor Author

Presumably this is the relevant code, submit a merge request if this is important to you

Thanks, I'll try it.

@ArchGuyWu
Copy link
Contributor Author

Presumably this is the relevant code, submit a merge request if this is important to you

Already added in

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
@abn abn removed the status/triage This issue needs to be triaged label Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants