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

Bugs Found with Windows #40

Closed
SeanIsYoung opened this issue Jul 15, 2024 · 0 comments
Closed

Bugs Found with Windows #40

SeanIsYoung opened this issue Jul 15, 2024 · 0 comments

Comments

@SeanIsYoung
Copy link

Error 1:

  • 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://'.

SeanIsYoung added a commit to SeanIsYoung/python-zxing that referenced this issue Jul 15, 2024
Repository owner locked as resolved and limited conversation to collaborators Jul 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant