nbstata icon indicating copy to clipboard operation
nbstata copied to clipboard

Replace pkg_resources uses, generally bump to Python 3.10+

Open hugetim opened this issue 3 months ago • 4 comments

h/t #57

Python 3.9 is almost to end-of-life: https://devguide.python.org/versions/

hugetim avatar Aug 19 '25 22:08 hugetim

me too on this feature. maybe I can help fix this?

ZhulongNT avatar Sep 24 '25 15:09 ZhulongNT

Yes, please. A PR would be most welcome. (To be clear, the SyntaxWarning's that appear with Python 3.12 are addressed by the latest nbstata release. This issue concerns further maintenance updates.)

For what it's worth, here's my initial ChatGPT session drafting a patch. I haven't reviewed it, though, and it may be better to just start from scratch: https://chatgpt.com/share/68a4f6f5-08e4-8002-b352-d02532ed1957

hugetim avatar Sep 24 '25 15:09 hugetim

well I met with error in python 3.14,which just broke. so my workaround is use 3.11 ----------Reply to Message---------- On Wed, Sep 24, 2025 23:45 PM Tim @.> wrote: hugetim left a comment hugetim/nbstata#58 Yes, please. A PR would be most welcome. To be clear, the SyntaxWarning's that appear with Python 3.12 are addressed by the latest nbstata release. This issue concerns further maintenance updates. For what it's worth, here's my initial ChatGPT session drafting a patch. I haven't reviewed it, though, and it may be better to just start from scratch: https://chatgpt.com/share/68a4f6f5-08e4-8002-b352-d02532ed1957 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

ZhulongNT avatar Sep 24 '25 16:09 ZhulongNT

Note that I have got nbdev (well really it was its dependency fastcore) fixed under Python 3.14.0, see https://github.com/AnswerDotAI/fastcore/issues/700 if interested. Make sure you have fastcore version 1.8.13.

So now it's easier to work on this fix under Python 3.14.0 using the existing workflow.

remlapmot avatar Oct 17 '25 10:10 remlapmot