adamchainz / treepoem

Barcode rendering for Python supporting QRcode, Aztec, PDF417, I25, Code128, Code39 and many more types.
MIT License
129 stars 26 forks source link

Treepoem with bwipp old version has a promlem whith ^040 and ^041 simbols #558

Open v0-v0-git opened 2 months ago

v0-v0-git commented 2 months ago

Python Version

No response

Package Version

3.24

Description

If the character string contains ")" or "(" an error occurs when generating the datamatrix.

'''Error creating DataMatrix: bwipp.GS1unknownAI AI GdU(91: Unrecognised AI

Process finished with exit code 1''' If you replace them with characters ^040 and ^041, then there is still an error: '''Error creating DataMatrix: bwipp.GS1badCSET82character AI 21: Invalid CSET 82 character

Process finished with exit code 1'''

At the same time, as I understand it, this has been corrected in the latest versions of the bwipp, for example: https://bwipjs-api.metafloor.com/?bcid=gs1datamatrix&text=(01)04620757979006(21)5btHYnjVq^040GdU(91)EE10(92)LFDU/cef0RnXBlMCXRhYp5nJAoFyJOxzQbFuMpFYOO8=&parse&parsefnc

When will the code be updated to the latest version bwipp?

adamchainz commented 2 months ago

I check for updates every three months or so. Can you link to the upstream issue that corrected your problem? If not, maybe there’s something else being done differently on that site you linked (I never heard of it, nor bwip-js).