Skip to content

Support cygwin #1383

Closed
Closed

Description

@vab2048

Currently when attempting to install on cygwin I get:

RuntimeError: Could not find poetry-0.12.17-cygwin.sha256sum file

Suggestion for feature request is to support cygwin.

If this is not on the roadmap please close this ticket.

Activity

  1. stale commented on Nov 22, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  2. stale commented on Nov 29, 2019

    @stale

    Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

  3. ali5h commented on Jan 22, 2021

    @ali5h

    can we reopen this?

  4. Lucas-C commented on Jan 29, 2021

    @Lucas-C

    As a workaround:

    sed -i 's/platform = sys.platform/platform = "win32"/' get-poetry.py
    

    This will alter the _make_lib function there: https://github.com/python-poetry/poetry/blob/master/get-poetry.py#L571

  5. paconte commented on Nov 16, 2021

    @paconte

    I have the same error on a mac book when I run: poetry self update --preview

    My poetry version is: Poetry version 1.1.11

  6. neersighted commented on Nov 16, 2021

    @neersighted
    Member

    @paconte To go from Poetry 1.1 to 1.2-preview, you will have to reinstall with install.python-poetry.org. Additionally, I'm wondering how you got a Cygwin-related error on macOS -- did you maybe comment on the wrong issue?

  7. paconte commented on Nov 16, 2021

    @paconte

    You are right, it is a different error but related with the platform. When I run poetry self update --previewI get this error:

    Updating to 1.2.0a2
    
      RuntimeError
    
      Could not find poetry-1.2.0a2-darwin.sha256sum file
    
      at ~/.poetry/lib/poetry/console/commands/self/update.py:260 in _update
          256│         try:
          257│             r = urlopen(base_url + "/{}/{}".format(version, checksum))
          258│         except HTTPError as e:
          259│             if e.code == 404:
        → 260│                 raise RuntimeError("Could not find {} file".format(checksum))
          261│ 
          262│             raise
          263│ 
          264│         checksum = r.read().decode().strip()
    
  8. neersighted commented on Nov 16, 2021

    @neersighted
    Member

    You'll need to use the installer at install.python-poetry.org to update -- Poetry 1.1 cannot self-update to 1.2-preview.

  9. paconte commented on Nov 16, 2021

    @paconte

    You are right. Thank you. I have seen the deprecation of get-poetry.py

  10. pinakee97 commented on Dec 23, 2021

    @pinakee97

    You'll need to use the installer at install.python-poetry.org to update -- Poetry 1.1 cannot self-update to 1.2-preview.

    Hey i am very new to programming. Could you please educate me on how can we install poetry using install.python-poetry.org

  11. finswimmer commented on Dec 23, 2021

    @finswimmer
    Member

    Could you please educate me on how can we install poetry using install.python-poetry.org

    https://python-poetry.org/docs/master/#osx--linux--bashonwindows-install-instructions

  12. adam-grant-hendry commented on Jun 15, 2022

    @adam-grant-hendry

    Could you please educate me on how can we install poetry using install.python-poetry.org

    https://python-poetry.org/docs/master/#osx--linux--bashonwindows-install-instructions

    @finswimmer Your main docs still reference using

    PS> poetry self update --preview

    and the warning

    The previous get-poetry.py and install-poetry.py installers are now deprecated. If you are currently using them you should migrate to the new, supported, installer through https://install.python-poetry.org.

    is unclear. People are thinking they can still use

    PS> poetry self update --preview

    successfully if they have first installed with the PowerShell and curl commands accessing https://install.python-poetry.org.

    Instead, you need to say

    The previous get-poetry.py and install-poetry.py installers are now deprecated. If you are currently using them you should migrate to the new, supported, installer through https://install.python-poetry.org.

    To do so, on MacOS/Linux, use

    $ curl -sSL https://install.python-poetry.org | python3 - --preview

    and on Windows

    PS> (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --preview

    This information is hidden in the Configure the installation section of your documentation and belongs under the Update Poetry section instead.

    It doesn't make sense to a newcomer to look at the configuration sections, which is why you're getting all the bug reports.

  13. adam-grant-hendry commented on Jul 24, 2022

    @adam-grant-hendry

    Please also note that unless you want Poetry installed to the default location (on Windows, this is %APPDATA%), set the following environment variables before running the PowerShell command:

    POETRY_HOME = Path to poetry install folder
    POETRY_CACHE = Path to cache folder
    

    You can also set these variables for virtual environment creation control:

    POETRY_VIRTUALENVS_CREATE = true/false
    POETRY_VIRTUALENVS_IN_PROJECT = true/false
    
  14. neersighted commented on Jul 24, 2022

    @neersighted
    Member

    @adam-grant-hendry I recently rewrote the install docs, please open a new issue if you think they're unclear on the 1.2 installer migration.

  15. adam-grant-hendry commented on Jul 24, 2022

    @adam-grant-hendry

    @adam-grant-hendry I recently rewrote the install docs, please open a new issue if you think they're unclear on the 1.2 installer migration.

    Thank you very much! (I was just noting for posterity)

  16. github-actions commented on Mar 1, 2024

    @github-actions

    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.

  17. locked as resolved and limited conversation to collaborators on Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions