Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 #567

Open
tianon opened this issue Mar 4, 2024 · 2 comments

Comments

@tianon
Copy link
Contributor

tianon commented Mar 4, 2024

Have you read through available documentation, open Github issues and Github Q&A Discussions?

Yes

System information

  • Python 3.11

Your moosefs version and its origin (moosefs.com, packaged by distro, built from source, ...).

Built from tagged releases of source:

$ mfsmaster -v
version: 3.0.117-1 ; build: 1341

Operating system (distribution) and kernel version.

  • Debian 12 (bookworm)

Describe the problem you observed.

Can you reproduce it? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

Include any warning/errors/backtraces from the system logs.

Start up mfscgiserv, load a page in a browser + check the source OR curl/wget from the command line, find the following after </html>:

...
</body>
</html>
/usr/local/share/mfscgi/mfs.cgi:130: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  import cgi
/usr/local/share/mfscgi/mfs.cgi:131: DeprecationWarning: 'cgitb' is deprecated and slated for removal in Python 3.13
  import cgitb

Hopefully there's a post-removal plan for the (excellent) functionality of mfscgiserv? 😇

(Maybe something with a native Prometheus endpoint, ala #290 ? 👀)

@tianon
Copy link
Contributor Author

tianon commented Mar 6, 2024

(I guess this is relevant for #546 😅)

@chogata
Copy link
Member

chogata commented Mar 7, 2024

We are aware of the issue and yes, something is planned :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants