Skip to content

cgi module is deprecated and will be removed in python 3.13 #1233

Closed

Description

@shortywz

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

Activity

  1. added
    infraInfrastructure issues (GitHub, etc)
    on May 18, 2023
  2. ontheaccount commented on Oct 10, 2024

    @ontheaccount

    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'?

  3. jorwoods commented on Oct 11, 2024

    @jorwoods
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

infraInfrastructure issues (GitHub, etc)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions