Skip to content

failure handling image or mcf data: unsupported operand type(s) for /: 'bytes' and 'int' #250

@ensonic

Description

@ensonic
> python3 cewe2pdf.py ~/Downloads/WilliamJugendweihe.mcfx
11:39:03 - root - INFO - Unpacking mcfx to /tmp/tmpqgkpg8zk
11:39:03 - root - INFO - Connected to mcfx database
11:39:04 - root - ERROR - Exiting: failure handling image or mcf data: unsupported operand type(s) for /: 'bytes' and 'int'
11:39:04 - root - INFO - Disconnected from mcfx database
11:39:04 - root - ERROR - Exiting: no mcf file found in mcfx
11:39:04 - root - INFO - returned to cwd /home/ensonic/projects/tools/cewe2pdf, mcfname

I've installed is as:

git clone https://github.com/bash0/cewe2pdf.git
cd cewe2pdf/
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt 
pip install pillow_heif  # missing from requirements.txt?
git rev-parse --short HEAD
a217f9c
file ~/Downloads/WilliamJugendweihe.mcfx 
/home/ensonic/Downloads/WilliamJugendweihe.mcfx: SQLite 3.x database, last written using SQLite version 3040000, file counter 1928, database pages 239875, 1st free page 239837, free pages 146, cookie 0x2, schema 4, UTF-8, version-valid-for 1928

sqlite3 ~/Downloads/WilliamJugendweihe.mcfx 
SQLite version 3.53.1 2026-05-05 10:34:17
Enter ".help" for usage hints.
sqlite> .databases
main: /home/ensonic/Downloads/WilliamJugendweihe.mcfx r/w
sqlite> .tables
Files
sqlite> select Filename from Files where Filename like '%mcf%';
╭───────────╮
│ Filename  │
╞═══════════╡
│ data.mcf  │
│ data.mcf~ │
╰───────────╯

Let me know if I can provide any additional info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions