Skip to content

Conversation

dimpase
Copy link
Member

@dimpase dimpase commented Jun 13, 2024

in particular the bump is needed to prevent
DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop()
as in #37539

On Fedora 40 using old prompt_toolkit from the system not only produces warnings, it hangs make test

📝 Checklist

  • [x ] The title is concise and informative.
  • [x ] The description explains in detail what this PR is about.
  • [x ] I have linked a relevant issue or discussion.

⌛ Dependencies

in particular the bump is needed to prevent
 DeprecationWarning: There is no current event loop loop = asyncio.get_event_loop()
as in sagemath#37539
Copy link

Documentation preview for this PR (built with commit ad1cd78; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mkoeppe
Copy link
Contributor

mkoeppe commented Jun 13, 2024

Best to add a comment to the file that explains the lower version bound.

@kwankyu
Copy link
Collaborator

kwankyu commented Jun 13, 2024

@dimpase
Copy link
Member Author

dimpase commented Jun 13, 2024

it's easy to find:

do git blame on the version file, then find the commit shown here.

actually all the info is in the commit message

@@ -1 +1 @@
prompt_toolkit >=3.0.38
prompt_toolkit >=3.0.43
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
prompt_toolkit >=3.0.43
# Fedora 40 has an issue with lower version. See #38212.
prompt_toolkit >=3.0.43

for future maintainer?

@enriqueartal
Copy link
Contributor

This change is useful but actually this warning existed for me in Fedora 39, I do not remember exactly when it disappear but it does not appear for me in Fedora 40.

@dimpase
Copy link
Member Author

dimpase commented Jun 14, 2024

I got a warning since I used a system version (using --enable-system-site-packages) which is older than the one needed.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 16, 2024
sagemathgh-38212: bump prompt_toolkit/version_requirements.txt, more spkg-configures
    
in particular the bump is needed to prevent
 `DeprecationWarning: There is no current event loop loop =
asyncio.get_event_loop()`
as in sagemath#37539

On Fedora 40 using old prompt_toolkit from the system not only produces
warnings, it hangs `make test`

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x ] The title is concise and informative.
- [x ] The description explains in detail what this PR is about.
- [x ] I have linked a relevant issue or discussion.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38212
Reported by: Dima Pasechnik
Reviewer(s): Kwankyu Lee
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 16, 2024
sagemathgh-38212: bump prompt_toolkit/version_requirements.txt, more spkg-configures
    
in particular the bump is needed to prevent
 `DeprecationWarning: There is no current event loop loop =
asyncio.get_event_loop()`
as in sagemath#37539

On Fedora 40 using old prompt_toolkit from the system not only produces
warnings, it hangs `make test`

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x ] The title is concise and informative.
- [x ] The description explains in detail what this PR is about.
- [x ] I have linked a relevant issue or discussion.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#38212
Reported by: Dima Pasechnik
Reviewer(s): Kwankyu Lee
@vbraun vbraun merged commit 807aff7 into sagemath:develop Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants