You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the application in a windows environment if zxing fails to identify the barcode, the return value does not include the file URI and the raw value is set to an empty string instead of None.
Don't have a windows environment available at the moment to provide an example of this. But the error is being cause by:
python-zxing/zxing/__init__.py:183: if l.endswith(b': No barcode found\n'):
This is because lines on windows end with \r\n and so the statement isn't matched.
Error 2:
The application is unable to parse results when the file is held on a network share. And results in a index out of bounds error at:
python-zxing/zxing/__init__.py:150: file_results[-1] += line
This is because the preceeding if statement uses b'file:///'. A pattern which is specific to local file paths. As indicated here it should be b'file://'.
The text was updated successfully, but these errors were encountered:
SeanIsYoung
added a commit
to SeanIsYoung/python-zxing
that referenced
this issue
Jul 15, 2024
Error 1:
\r\n
and so the statement isn't matched.Error 2:
This is because the preceeding if statement uses
b'file:///'
. A pattern which is specific to local file paths. As indicated here it should beb'file://'
.The text was updated successfully, but these errors were encountered: