{"id":22500,"library":"types-pyinstaller","title":"types-pyinstaller","description":"Typing stubs for PyInstaller, providing type hints for PyInstaller modules. Version 6.19.0.20260408, updated regularly alongside typeshed releases.","status":"active","version":"6.19.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["types","stubs","pyinstaller","type-hints"],"install":[{"cmd":"pip install types-pyinstaller","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"Direct import of the run function.","wrong":"","symbol":"PyInstaller.__main__","correct":"from PyInstaller.__main__ import run"},{"note":"Standard build API imports.","wrong":"","symbol":"PyInstaller.building.api","correct":"from PyInstaller.building.api import Analysis, PYZ, EXE, COLLECT"},{"note":"Platform detection utilities.","wrong":"","symbol":"PyInstaller.compat","correct":"from PyInstaller.compat import is_win, is_darwin, is_linux"}],"quickstart":{"code":"from PyInstaller.__main__ import run\n\n# Example: build a simple script\nrun(['--onefile', '--name', 'myapp', 'myapp.py'])","lang":"python","description":"Basic usage: run PyInstaller from Python code with type hints."},"warnings":[{"fix":"Cross-reference with PyInstaller source; stubs are best-effort.","message":"Stubs may not cover all PyInstaller internals due to dynamic code. Rely on official PyInstaller docs for runtime behavior.","severity":"gotcha","affected_versions":"all"},{"fix":"Uninstall conflicting packages: `pip uninstall pyinstaller-stubs`.","message":"Do not install both `types-pyinstaller` and `pyinstaller-stubs` (or any other third-party stubs). Only one should be used.","severity":"gotcha","affected_versions":"all"},{"fix":"Match major.minor versions: e.g., use types-pyinstaller==6.* for PyInstaller 6.x.","message":"Stubs are often behind PyInstaller releases. Check version compatibility: types-pyinstaller version x.y.z corresponds to PyInstaller x.y.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install correct version: `pip install types-pyinstaller==6.19.0.20260408` matching your PyInstaller 6.19.","cause":"IDE cannot resolve due to missing stubs or incorrect PyInstaller version.","error":"Cannot find reference 'Analysis' in 'PyInstaller.building.api'"},{"fix":"Run `pip install types-pyinstaller` and ensure your IDE uses the correct interpreter.","cause":"Stubs not installed or Python interpreter not recognizing them.","error":"Import 'PyInstaller.__main__' could not be resolved"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}