Skip to content

Error generating QRCode in memory #7

@outdooracorn

Description

@outdooracorn

I'm using the exact same code as Example 2 but I'm getting the following error:

Traceback (most recent call last):
  File "****/playpit.py", line 38, in <module>
    bitmap = zint.bitmapbuf(symbol)
  File "****/.venv/lib/python3.8/site-packages/zint/zint.py", line 218, in bitmapbuf
    blen = z.contents.bitmap_width * z.contents.bitmap_height * 3
AttributeError: 'zint_symbol' object has no attribute 'bitmap_width'

Printing to file using Example 1 works fine.

python-zint version = 1.2 (latest on PyPI)
libzint.so version = 2.8.0
Python version = 3.8.3
OS = Manjaro

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