Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in decoding PDF 417 format Barcodes #30

Open
adiv5 opened this issue Jan 8, 2024 · 2 comments
Open

Issues in decoding PDF 417 format Barcodes #30

adiv5 opened this issue Jan 8, 2024 · 2 comments

Comments

@adiv5
Copy link

adiv5 commented Jan 8, 2024

I am trying to use zxing to decode PDF417 images. However Im getting an error message as follows:

ValueError: Unknown format code 'x' for object of type 'str'

Error seems to be in the __repr__ of the BarCode Class

Here is the File i'm using

Can I understand if there is any workaround for the same?

@amishparekh
Copy link

Any updates on this?

@dlenski
Copy link
Owner

dlenski commented Jan 31, 2024

What version of the Python module? zxing.__version__

What version of the Java library? zxing.BarCodeReader().zxing_version

There was a bug in the Python module related to repr() of barcodes, fixed in 50c7efe, and a bug in the Java library's ability to correctly output "raw bytes" for barcodes (see zxing/zxing#1682), which the Python module currently mitigates by asking the Java library not to output them as of 07d94c5.

dlenski added a commit that referenced this issue Jan 31, 2024
Two bugs fixed since v1.0.1:

1. 178c50b (closing
   #31) which fixes the Java
   classpath separator on Windows (`:` → `;`)
2. 50c7efe (quite likely the fix for
   #30) which fixes a borked
   format conversion specifier.
dlenski added a commit that referenced this issue Feb 11, 2024
Two bugs fixed since v1.0.1:

1. 178c50b (closing
   #31) which fixes the Java
   classpath separator on Windows (`:` → `;`)
2. 50c7efe (quite likely the fix for
   #30) which fixes a borked
   format conversion specifier.

Switching to "Trusted Publishers" for deployment to PyPI (see
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers).
dlenski added a commit that referenced this issue Feb 11, 2024
Two bugs fixed since v1.0.1:

1. 178c50b (closing
   #31) which fixes the Java
   classpath separator on Windows (`:` → `;`)
2. 50c7efe (quite likely the fix for
   #30) which fixes a borked
   format conversion specifier.

Switching to "Trusted Publishers" for deployment to PyPI (see
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers).
dlenski added a commit that referenced this issue Feb 11, 2024
Two bugs fixed since v1.0.1:

1. 178c50b (closing
   #31) which fixes the Java
   classpath separator on Windows (`:` → `;`)
2. 50c7efe (quite likely the fix for
   #30) which fixes a borked
   format conversion specifier.

Switching to "Trusted Publishers" for deployment to PyPI (see
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers).
dlenski added a commit that referenced this issue Feb 11, 2024
Two bugs fixed since v1.0.1:

1. 178c50b (closing
   #31) which fixes the Java
   classpath separator on Windows (`:` → `;`)
2. 50c7efe (quite likely the fix for
   #30) which fixes a borked
   format conversion specifier.

Switching to "Trusted Publishers" for deployment to PyPI (see
https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants