Skip to content

Commit

Permalink
Fix: "cannot import name 'formatargspec' from 'inspect'" with Python …
Browse files Browse the repository at this point in the history
…3.11 (#4693)

<!-- Thanks for your contribution! As part of our Community Growers
initiative 🌱, we're donating Justdiggit bunds in your name to reforest
sub-Saharan Africa. To claim your Community Growers certificate, please
contact David Berenstein in our Slack community or fill in this form
https://tally.so/r/n9XrxK once your PR has been merged. -->

# Description

The issue is: "ImportError: cannot import name 'formatargspec' from
'inspect'" with wrapt library that happens for Python 3.11. More
details: GrahamDumpleton/wrapt#196

**Type of change**

(Please delete options that are not relevant. Remember to title the PR
according to the type of change)

- [X] Bug fix (non-breaking change which fixes an issue)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

**How Has This Been Tested**

(Please describe the tests that you ran to verify your changes. And
ideally, reference `tests`)

- Use current tests of Argilla

**Checklist**

- [X] I followed the style guidelines of this project
- [X] I did a self-review of my code
- [X] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [X] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [X] I have added relevant notes to the `CHANGELOG.md` file (See
https://keepachangelog.com/)

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Francisco Aranda <francis@argilla.io>
  • Loading branch information
3 people committed May 6, 2024
1 parent 0b4def0 commit dacb013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ These are the section headers that we use:

- Fixed Korean character reversed. ([#4753](https://github.com/argilla-io/argilla/pull/4753))

### Fixed

- Fixed requirements for version of wrapt library conflicting with Python 3.11 ([#4693](https://github.com/argilla-io/argilla/pull/4693))

## [1.27.0](https://github.com/argilla-io/argilla/compare/v1.26.1...v1.27.0)

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies = [
# Aligned pydantic version with server fastAPI
"pydantic >= 1.10.7",
# monitoring
"wrapt >= 1.13,< 1.15",
"wrapt >= 1.14,< 1.15",
# weaksupervision
"numpy < 1.24.0",
# for progressbars
Expand Down

0 comments on commit dacb013

Please sign in to comment.