rollbar / pyrollbar

Error tracking and logging from Python to Rollbar
https://docs.rollbar.com/docs/python/
MIT License
213 stars 135 forks source link

DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 #439

Closed nburns closed 1 year ago

nburns commented 1 year ago

On python 3.11 I get the following error:

config.py:11: in <module>
    import rollbar
../../.asdf/installs/python/3.11.5/lib/python3.11/site-packages/rollbar/__init__.py:39: in <module>
    from webob import BaseRequest as WebobBaseRequest
../../.asdf/installs/python/3.11.5/lib/python3.11/site-packages/webob/__init__.py:1: in <module>
    from webob.datetime_utils import (  # noqa: F401
../../.asdf/installs/python/3.11.5/lib/python3.11/site-packages/webob/datetime_utils.py:18: in <module>
    from webob.compat import (
../../.asdf/installs/python/3.11.5/lib/python3.11/site-packages/webob/compat.py:5: in <module>
    from cgi import parse_header
../../.asdf/installs/python/3.11.5/lib/python3.11/cgi.py:57: in <module>
    warnings._deprecated(__name__, remove=(3,13))
../../.asdf/installs/python/3.11.5/lib/python3.11/warnings.py:514: in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
> pip freeze | grep rollbar
rollbar==0.16.3
> python --version
Python 3.11.5
danielmorell commented 1 year ago

Hey Nick, thanks for reaching out. It looks like this warning is coming from WebOb not the Rollbar SDK. I would recommend posting an issue on the https://github.com/Pylons/webob repo.