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

Support cygwin #1383

Closed
vab2048 opened this issue Sep 17, 2019 · 16 comments
Closed

Support cygwin #1383

vab2048 opened this issue Sep 17, 2019 · 16 comments
Labels
kind/feature Feature requests/implementations

Comments

@vab2048
Copy link

vab2048 commented Sep 17, 2019

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.

@kasteph kasteph added the kind/feature Feature requests/implementations label Sep 23, 2019
@stale
Copy link

stale bot commented Nov 22, 2019

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.

@stale stale bot added the stale label Nov 22, 2019
@stale
Copy link

stale bot commented Nov 29, 2019

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.

@stale stale bot closed this as completed Nov 29, 2019
@ali5h
Copy link

ali5h commented Jan 22, 2021

can we reopen this?

@Lucas-C
Copy link

Lucas-C commented Jan 29, 2021

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

@paconte
Copy link

paconte commented Nov 16, 2021

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

@neersighted
Copy link
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?

@paconte
Copy link

paconte commented Nov 16, 2021

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()

@neersighted
Copy link
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.

@paconte
Copy link

paconte commented Nov 16, 2021

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

@pinakee97
Copy link

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

@finswimmer
Copy link
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

@adam-grant-hendry
Copy link

adam-grant-hendry commented Jun 15, 2022

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.

@adam-grant-hendry
Copy link

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

@neersighted
Copy link
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.

@adam-grant-hendry
Copy link

@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)

Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants