mattloper / chumpy

MIT License
196 stars 120 forks source link

fix getargspec deprecation in python 3.11 #59

Open uyoung-jeong opened 5 months ago

uyoung-jeong commented 5 months ago

Hi, I faced below error while importing chumpy in python 3.11 environment.

AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

It seemed that starting from python 3.11, getargspec is no longer available and we should use getfullargspec instead. So I made a small change for supporting both getargspec and getfullargspec.

johndpope commented 5 months ago

thank you - please merge @mattloper

palonekdaniel commented 2 months ago

thank you - please merge @mattloper

If you want to use fixed version from this PR in your project you can install chumpy from fixing commit directly

pip install git+https://github.com/mattloper/chumpy@9b045ff5d6588a24a0bab52c83f032e2ba433e17
Remember2015 commented 2 months ago

waiting for merge