The nis module was removed in Python 3.13
Removed. The source gives no day. Source: PEP 594 — Removing dead batteries from the standard library.
Check a version:
evergreen check pkg:generic/python
Python 3.13 removed the nis module (PEP 594), so importing it raises ModuleNotFoundError.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Removed |
| Severity | high |
| Ecosystem | python |
| Component | pkg:generic/python |
| Affected versions | vers:pypi/>=3.13 |
| Date from the source | The source gives no day |
| Evidence last seen | 2026-10-30 |
| Reviewed | 2026-10-30 by arminazimi |
| Review due | 2027-10-30 (365 days after the last review) |
| Rule ID | python.module.nis.removed |
Sources
- PEP 594 — Removing dead batteries from the standard library (accessed 2026-10-30)
- What’s New in Python 3.13 (accessed 2026-10-30)
Migration
Constraints
- Keep the behavior of the code unchanged; replace the removed module with a maintained library or remove the dependency.
Steps
- Replace the nis import. Remove each reported import of nis; it has no standard-library replacement.
Verification
python -W error::DeprecationWarning -m pytest: Run the tests with deprecation warnings treated as errors when pytest is used.
Detected by
The python detector. See Detectors and Compatibility.
Related
Other versions of this product
- The aifc module was removed in Python 3.13
- The asynchat module was removed in Python 3.12
- The asyncore module was removed in Python 3.12
- The audioop module was removed in Python 3.13
- The cgi module was removed in Python 3.13
- The cgitb module was removed in Python 3.13
- The chunk module was removed in Python 3.13
- The crypt module was removed in Python 3.13
- The distutils module was removed in Python 3.12
- The imghdr module was removed in Python 3.13
- The imp module was removed in Python 3.12
- The lib2to3 module was removed in Python 3.13
Same ecosystem
- The mailcap module was removed in Python 3.13
- The msilib module was removed in Python 3.13
- The nntplib module was removed in Python 3.13
- The ossaudiodev module was removed in Python 3.13
- The pipes module was removed in Python 3.13
- The smtpd module was removed in Python 3.12
- The sndhdr module was removed in Python 3.13
- The spwd module was removed in Python 3.13
Data
This page is generated from registry/python.json, rule python.module.nis.removed, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated