Coder Social home page Coder Social logo

Comments (3)

adamchainz avatar adamchainz commented on June 8, 2024 1

Fixed upstream, fix merged in #265, released in version 3.6.0. Enjoy!

from treepoem.

adamchainz avatar adamchainz commented on June 8, 2024

Full stack trace, using the minimum number of bytes and dropping the options which don't seem to affect this:

$ python
Python 3.8.5 (default, Sep  3 2020, 10:31:10)
[Clang 11.0.0 (clang-1100.0.20.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import treepoem
>>> treepoem.generate_barcode( barcode_type="azteccode", data=bytes(range(49)))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/chainz/Documents/Projects/treepoem/src/treepoem/__init__.py", line 148, in generate_barcode
    bbox_lines = _get_bbox(code)
  File "/Users/chainz/Documents/Projects/treepoem/src/treepoem/__init__.py", line 100, in _get_bbox
    raise TreepoemError(err_output)
treepoem.TreepoemError: GPL Ghostscript 9.52: Unrecoverable error, exit code 1

It seems the maximum is bytes(range(48)) - bytes(range(49)) fails.

This also happens with the latest BWIPP, 2020-10-02 - https://github.com/bwipp/postscriptbarcode/releases

The latest version it didn't happen with is 2020-07-20.

I'm reporting upstream on BWIPP's issue tracker.

from treepoem.

adamchainz avatar adamchainz commented on June 8, 2024

Issue: bwipp/postscriptbarcode#132 .

from treepoem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.