sassoftware / sassoftware/python-swat
Deprecation warning for cgi when using 3.11 version of Lacuna base image
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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