dropbox/stone

Python 3.11 support

samschott opened this issue · 6 comments

Describe the bug
Stone's frontend uses the inspect.getargspec method which was deprecated in Python 3.0 and removed in 3.11 (see https://docs.python.org/3.10/library/inspect.html#inspect.getargspec).

argspec = inspect.getargspec(data_type_class.__init__) # noqa: E501 # pylint: disable=deprecated-method,useless-suppression

This results in attribute errors when running stone in Python 3.11.

Versions

  • What version of the Stone are you using? 3.3.1
  • What version of the language are you using? Python 3.11
  • What platform are you using? macOS 13

Additional context
The recommended migration path is to use inspect.getfullargspec as drop-in replacement.

Thanks for the report! I'll ask the team to update that.

For a lot of distributions will stone fail to build due to the missing support for Python 3.11. This will lead to broken dropbox-sdk-python packages down the road.

@fabaff Thanks for the note!

dvzrv commented

Hi! We're currently rebuilding all Python packages against Python 3.11 on Arch Linux. This project is now broken.

Can you please replace the use of getargspec() with getfullargspec() (see https://docs.python.org/3/whatsnew/3.11.html) and release a new version? Thanks! :)

@dvzrv Thanks for the feedback! This is open with the team. I'll follow up here with any updates.

fixed in #299