Skip to main content

Installation Issues

”Module not found: iso8583sim”

Problem: Python cannot find the iso8583sim module. Solutions:
  1. Verify installation:
  2. Check you’re in the right virtual environment:
  3. Reinstall:

Cython extensions are not loaded

Problem: python -c "import iso8583sim.core.parser as p; print(p._USE_CYTHON)" prints False. The PyPI wheels for Linux, macOS and Windows include the compiled extensions. On other platforms pip installs the pure-Python wheel (iso8583sim still works, only slower). Solutions:
  1. Upgrade pip so it can pick a compiled wheel: pip install --upgrade pip, then reinstall iso8583sim.
  2. To build from source, install a C compiler and reinstall with pip install --no-binary iso8583sim iso8583sim:
    • macOS: xcode-select --install
    • Linux: apt install build-essential
    • Windows: Install Visual Studio Build Tools
  3. The library works without Cython - it falls back to pure Python automatically.

LLM provider not available

Problem: ProviderNotAvailableError: anthropic provider package is not installed Solutions:
  1. Install the provider:
  2. Check what’s installed:

LLM provider not configured

Problem: ProviderConfigError: Anthropic API key not found Solutions:
  1. Set the environment variable:
  2. Pass API key directly:
  3. Check what’s configured:

Parsing Issues

ParseError: Invalid bitmap

Problem: ParseError: Invalid bitmap format Causes:
  • Bitmap is not exactly 16 hex characters
  • Contains non-hex characters
  • Message is truncated
Solution:

ParseError: Field length exceeds maximum

Problem: A field value is longer than allowed. Solution:

ParseError: Unknown field

Problem: Parsing fails on a network-specific field. Solution:

Building Issues

BuildError: Validation failed

Problem: Message doesn’t pass validation during build. Solution:

BuildError: Unknown field definition

Problem: Building fails because field isn’t recognized. Solution:

Field padding incorrect

Problem: Field values aren’t padded correctly. Solution:

Validation Issues

PAN fails Luhn check

Problem: Field 2 (PAN) failed Luhn check Solution:

Missing required field

Problem: Missing required field: 22 Solution:

LLM Issues

LLMError: API rate limit

Problem: LLMError: Rate limit exceeded Solution:

Generated message invalid

Problem: LLM generates an invalid message. Solution:

Performance Issues

Slow parsing

Problem: Parsing is slower than expected. Solutions:
  1. Check the Cython extensions are loaded (see Cython extensions are not loaded).
  2. Reuse parser instances:
  3. Disable debug logging:

Memory usage high

Problem: Memory grows with message volume. Solution:

Getting Help

If you can’t resolve an issue:
  1. Check the API Reference for correct usage
  2. Search GitHub Issues
  3. Open a new issue with:
    • Python version (python --version)
    • iso8583sim version (pip show iso8583sim)
    • Minimal code to reproduce
    • Full error traceback