Installation Issues
”Module not found: iso8583sim”
Problem: Python cannot find the iso8583sim module. Solutions:-
Verify installation:
-
Check you’re in the right virtual environment:
-
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:
-
Upgrade pip so it can pick a compiled wheel:
pip install --upgrade pip, then reinstall iso8583sim. -
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
- macOS:
- 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:
-
Install the provider:
-
Check what’s installed:
LLM provider not configured
Problem:ProviderConfigError: Anthropic API key not found
Solutions:
-
Set the environment variable:
-
Pass API key directly:
-
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
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:- Check the Cython extensions are loaded (see Cython extensions are not loaded).
-
Reuse parser instances:
-
Disable debug logging:
Memory usage high
Problem: Memory grows with message volume. Solution:Getting Help
If you can’t resolve an issue:- Check the API Reference for correct usage
- Search GitHub Issues
- Open a new issue with:
- Python version (
python --version) - iso8583sim version (
pip show iso8583sim) - Minimal code to reproduce
- Full error traceback
- Python version (