{"record":{"id":"c3c1370b12107679","repo":"jordansissel/fpm","slug":"missing-required-python-metadata-field-field","errorCode":null,"errorMessage":"Missing required Python metadata field, '#{field}'. This might be a bug in the package or in fpm.","messagePattern":"Missing required Python metadata field, '#(.+?)'\\. This might be a bug in the package or in fpm\\.","errorType":"exception","errorClass":"FPM::Package::Python::MissingField","httpStatus":null,"severity":"error","filePath":"lib/fpm/package/python.rb","lineNumber":203,"sourceCode":"      :@description => \"Description\",\n      :@keywords => \"Keywords\",\n      :@maintainer => \"Author-email\",\n\n      # Note: License can also come from the deprecated \"License\" field\n      # This is processed later in this method.\n      :@license => \"License-Expression\",\n\n      :@requires => \"Requires-Dist\",\n    }\n    \n    REQUIRED_FIELDS = [ \"Metadata-Version\", \"Name\", \"Version\" ]\n\n    # headers - a Hash containing field-value pairs from headers as read from a python METADATA file.\n    # body - optional, a string containing the body text of a METADATA file\n    def initialize(headers, body=nil)\n      REQUIRED_FIELDS.each do |field|\n        if !headers.include?(field)\n          raise MissingField, \"Missing required Python metadata field, '#{field}'. This might be a bug in the package or in fpm.\"\n        end\n      end\n\n      FIELD_MAP.each do |attr, field|\n        if headers.include?(field)\n          instance_variable_set(attr, headers.fetch(field))\n        end\n      end\n\n      # Do any extra processing on fields to turn them into their expected content.\n      process_description(headers, body)\n      process_license(headers)\n      process_homepage(headers)\n      process_maintainer(headers)\n    end # def initialize\n\n    private\n    def process_description(headers, body)","sourceCodeStart":185,"sourceCodeEnd":221,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/python.rb#L185-L221","documentation":"Error \"Missing required Python metadata field, '#{field}'. This might be a bug in the package or in fpm.\" thrown in jordansissel/fpm.","triggerScenarios":"Thrown at lib/fpm/package/python.rb:203 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}