bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.33k stars 1.46k forks source link

Python 3.11: ImportError: cannot import name 'getargspec' from 'inspect' #1387

Closed ivankravets closed 1 year ago

ivankravets commented 1 year ago

See related issue https://github.com/platformio/platformio-vscode-ide/issues/3252

defnull commented 1 year ago

Bottle (0.12 or dev) does not import inspect.getargspec in a python 3 environment. Which version of bottle are you running?

ivankravets commented 1 year ago

0.12.*, see https://github.com/platformio/platformio-core/blob/develop/setup.py#L30

I've just checked the source code of 0.12.21 and I see

from traceback import format_exc, print_exc
from inspect import getargspec
from unicodedata import normalize
ivankravets commented 1 year ago

See https://github.com/bottlepy/bottle/blob/0.12.21/bottle.py#L44

defnull commented 1 year ago

Ahh, this was already fixed in release-0.12 but not yet released to PyPi. Sorry, I'll prepare a release.

defnull commented 1 year ago

Fixed in 0.12.23

ivankravets commented 1 year ago

Thanks for the fix and amazing project! 🙏