-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
pdm install
started failing on Python 3.7 after importlib-metadata
released v5.0.0
#1411
Comments
i've just started seeing the same in my circle builds started yesterday |
We are seeing this as well (GitHub actions with setup-pdm action) |
@frostming do you think updating the plugin loading snippet to the new I've tried a quick fix to support this new API on this branch, but I'm not quite sure this will be enough to keep support for both 3.7 and >=3.8 |
I'm seeing a few options here:
Are there any other options that we should be considering? |
I'd vote for the first solution: setting an upper bound for importlib-metadata (<5.0.0) for Python 3.7. |
* Make `cryptography` dependency optional * Setting Flet client build number * Do not set build-number * Update Flet macOS icons * Clipboard re-done to support Safari * Make crypto utils optional Fix #417 * Re-enable Python 3.7 as PDM fixed the issue pdm-project/pdm#1411 (comment) * Fix #431 - Handling Flutter and platform errors * Added additional styles to TextField and Dropdown * label_style * hint_style * helper_style * counter_style * error_style * prefix_style * suffix_style Fix #446 * Fix CI * Add an ability to hide automatic back button in AppBar Fix #209 * Added `SnackBar.action_color` Fix #364 * Control TextFields cursor presentation Fix #356 * Add x and y to DropTarget.on_accept event #329 * Customize colors of Checkbox and Radio Fix #320 * Restore `websocket.defaulttimeout` on connect Fix #413 * `Audio.get_current_position` and `Audio.get_duration` returns `int` Fix #440 * Update container.dart * GestureDetector control started * `Audio.playback_rate` added Fix #451 * All Tap gestures * Gesture detector ready but without throttling * Throttling of drag and hover events * Get version from Git repo * Fix gesture handlers * Added a simple integration test - just for fun * ElevatedButton must show error if only icon specified without text Fix #357 * Display an error when left, top, right or bottom are used not in Stack Fix #296 * Shrink wrap ListView and GridView if bounds are unlimited Fix #331 * Fix #303 - NavigationRail is not shown in a parent without fixed height * Do not bind session value to the IP Fix #457 * Fix path traversal in tar unpack (CVE-2007-4559) * Added `Container.shape` property * Fix the rest of warnings * Remove ControlType enum * Fix flutter tests * Fix MouseCursor enum * Added Flutter package readme
Option a) is just delaying the issue. Dict based access has been deprecated since importlib_metadata 3.6 and Python 3.10. Per Python's deprecation policy, this will be removed in Python 3.12. python/importlib_metadata#409 (comment). The correct solution is to require |
Ahh, |
Fixing in #1467 |
A few hours ago
importlib-metadata
released v5.0.0 andpdm install
started failing on Python 3.7.Failing CI build: https://ci.appveyor.com/project/flet-dev/flet/builds/44943064/job/6j92ckkaol60n8q0#L98
Last good build: https://ci.appveyor.com/project/flet-dev/flet/builds/44942650/job/uxk5x5m152jrcl3r#L98
Steps to reproduce
pdm install
Actual behavior
Expected behavior
The command works normally.
The text was updated successfully, but these errors were encountered: