server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

cgi module is deprecated and will be removed in python 3.13

Open shortywz opened this issue 2 years ago • 2 comments

Per PEP-0594, the cgi module will be removed in the 3.13 release. Starting to see notices popping up for this now.

INFO - /usr/local/lib/python3.11/site-packages/tableauserverclient/server/endpoint/datasources_endpoint.py:1: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

shortywz avatar May 18 '23 20:05 shortywz

This looks to be an issue when running 3.13 now:

When running TSC <0.33 I get this error: ModuleNotFoundError: No module named 'cgi'

When runninr TSC 0.33 I now see this: ImportError: cannot import name 'SiteItem' from 'tableauserverclient.server' Did you mean: 'ViewItem'?

ontheaccount avatar Oct 10 '24 22:10 ontheaccount

@ontheaccount Please create a new issue with a minimum reproducible example. A cursory test script I used on python 3.13.0 with TSC v0.33 was unable to reproduce your stated error.

jorwoods avatar Oct 11 '24 19:10 jorwoods