{"id":24072,"library":"mozversion","title":"mozversion","description":"Library to get version information for Mozilla applications (Firefox, Thunderbird, Fennec, etc.). Current version: 2.4.0. Release cadence: low, last release was in 2017. It reads application.ini and platform.ini to extract version data.","status":"maintenance","version":"2.4.0","language":"python","source_language":"en","source_url":"https://github.com/mozilla/mozversion","tags":["mozilla","firefox","version","application"],"install":[{"cmd":"pip install mozversion","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"note":"get_version is the primary function; importing module directly requires mozversion.get_version()","wrong":"import mozversion","symbol":"get_version","correct":"from mozversion import get_version"}],"quickstart":{"code":"from mozversion import get_version\n\n# Replace with path to your Firefox binary or directory\nbinary = '/usr/lib/firefox/firefox'\ntry:\n    version_info = get_version(binary=binary)\n    print(version_info)\nexcept Exception as e:\n    print(f'Error: {e}')","lang":"python","description":"Retrieves version information from a Mozilla application binary."},"warnings":[{"fix":"Always pass the path to the executable binary (e.g., firefox) for best results.","message":"get_version() expects either a binary path or a directory containing the application. If you pass a directory, ensure it contains application.ini and platform.ini.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using mozversion-1 or parsing application.ini manually if needed.","message":"The library is no longer actively maintained. It may not work with the latest Mozilla application versions (Firefox 60+).","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run pip install mozversion in your active environment.","cause":"mozversion not installed or installed in a different Python environment.","error":"ModuleNotFoundError: No module named 'mozversion'"},{"fix":"Ensure the binary path is correct and that the binary hasn't been removed. Try passing the directory containing the binary instead.","cause":"The provided path does not point to a valid Mozilla application directory or the files are missing.","error":"ValueError: No application.ini or platform.ini found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}