Skip to content

GS1 barcode pulling ISBN instead #28

@ghost

Description

Here is my code:

 import barcode
 from barcode.writer import ImageWriter
 varGS1 = barcode.get_barcode_class('gs1')
 varGS1out = varGS1(u'42053005383691149014', writer=ImageWriter)
 fullname = varGS1out.save('C:\\Users\\PaulPers\\Desktop\\GS1_barcode')

and I get the following error:

Traceback (most recent call last):
File "", line 5, in
File "C:\Users\PaulPers\AppData\Roaming\Python\Python37\site-packages\barcode\isxn.py", line 50, in init
raise WrongCountryCodeError('ISBN must start with 978 or 979.')
barcode.errors.WrongCountryCodeError: ISBN must start with 978 or 979.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions