sassoftware / sassoftware/python-swat

Deprecation warning for cgi when using 3.11 version of Lacuna base image

Open
#171 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
159
Forks
65
PR merge metrics
No merged PRs in 30d

Description

Upgrading Lacuna base image from 3.9 to 3.11 and seeing below warning. It looks like SWAT needs to be updated for the cgi package.

============================================ warnings summary ============================================
../../../../../usr/local/lib64/python3.11/site-packages/swat/notebook/zeppelin.py:27
../../../../../usr/local/lib64/python3.11/site-packages/swat/notebook/zeppelin.py:27
../../../../../usr/local/lib64/python3.11/site-packages/swat/notebook/zeppelin.py:27
../../../../../usr/local/lib64/python3.11/site-packages/swat/notebook/zeppelin.py:27
/usr/local/lib64/python3.11/site-packages/swat/notebook/zeppelin.py:27: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
import cgi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with swat/notebook/zeppelin.py, specifically the import cgi reported at line 27, and inspect how that module is used. Reproduce the warning with the Python 3.11 Lacuna base image, then verify that the deprecation warning is gone while the Zeppelin notebook integration still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.