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

[macos] poetry add fails when file or path is in /tmp or /var #6862

Open
4 tasks done
bplotnick opened this issue Oct 21, 2022 · 2 comments
Open
4 tasks done

[macos] poetry add fails when file or path is in /tmp or /var #6862

bplotnick opened this issue Oct 21, 2022 · 2 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@bplotnick
Copy link

  • Poetry version: 1.2.2

  • Python version: 3.9.13

  • OS version and name: macOS 12.1

  • pyproject.toml: 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

When the file or path is is /tmp or /var on macos, poetry add /path/to/file.whl fails silently. When rerun with -vvv we get an AssertionError in mixology/partial_solution.py:_register (full stacktrace here). This is the same symptom as #6054, which is marked solved. This also has different repro steps.

Repro:

  • mkdir /tmp/bar
  • pip download -d /tmp/bar requests
  • poetry add /tmp/bar/requests-2.28.1-py3-none-any.whl`

Note that pip install works here as does poetry add /private/tmp/bar/requests-2.28.1-py3-none-any.whl

@bplotnick bplotnick added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 21, 2022
@dimbleby
Copy link
Contributor

dimbleby commented Oct 21, 2022

I do not reproduce

it looks as though you're installing poetry inside the same virtual environment that you are asking poetry to manage

   1: fact: foo depends on poetry (^1.2.2)

don't do that, you're likely to end up with poetry installing and uninstalling packages that it needs itself, with predictably unhappy consequences.

@rajaie-sg
Copy link

rajaie-sg commented Nov 9, 2022

We also ran into this issue on macOS 11.7 and 12.6.1. Running poetry lock was failing with no error messages. Changing the local wheel path to something other than /tmp/ allowed us to progress beyond the failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants