Cause 1 of 5
The string holds a decimal number.
int() will not parse '12.5' — it refuses rather than guessing what to do with the fraction. Convert through float first: int(float(value)) truncates toward zero, round(float(value)) rounds to nearest.
Cause 2 of 5
The field is empty or missing.
int() tolerates surrounding whitespace but not an empty string. Check before converting: value = value.strip() then int(value) if value else 0 — and decide deliberately whether a blank should become zero or be rejected.
Cause 3 of 5
The value carries formatting — separators, currency symbols, units.
'1,234' and '$99' are not integer literals. Strip the decoration explicitly, for example int(value.replace(',', '').lstrip('$')), so anything unexpected still fails loudly instead of parsing wrong.
Cause 4 of 5
The offending value in the message is your best clue — if it reads 'qty' you are parsing the header. Use csv.DictReader, which consumes the header row for you, or skip the first line explicitly.
Cause 5 of 5
The number is in another base.
Pass the base rather than assuming 10: int('ff', 16) for hex, int('1010', 2) for binary, int('0x1f', 0) to honour a literal prefix.