PlotPyStack / guidata

Python library generating graphical user interfaces for easy dataset editing and display
https://pypi.python.org/pypi/guidata
BSD 3-Clause "New" or "Revised" License
61 stars 18 forks source link

supporting Python-3.10 ? #50

Closed stonebig closed 2 years ago

stonebig commented 3 years ago

trying guidata-1.8 on python-3.10/pyside6-6.2, I get this error image

I'm not sure how it shall be fixed. I saw this https://github.com/hylang/hy/pull/2115/files

stonebig commented 3 years ago

may come from there https://docs.python.org/3/whatsnew/3.10.html#collections-abc

stonebig commented 3 years ago

it works by replacing collections.Callable per collections.abc.Callable.

C:\python-3.10.0.amd64\Lib\site-packages\guidata\dataset\dataitems.py (2 hits) Line 537: if isinstance(choices, collections.abc.Callable): # stonebig Line 543: if default is FirstChoice and not isinstance(choices, collections.abc.Callable): # stonebig

image

PierreRaybaut commented 2 years ago

Fixed by dd3d7ff8f5db7a535fa588b4bb0a80b6d0105128

stonebig commented 2 years ago

Thanks, guidata-2.0.2 works way better now on Pyside6/Python-3.10. only test_dataframeeditor.py seems not happy, will have to digg.

image

PierreRaybaut commented 2 years ago

Fixed by 5cb6ebbb3c40301233d48df5cb663164190419bc