When I write a Code128 barcode in Python3, I get the following:
<svg height="23.000mm" version="1.1" width="29.000mm" xmlns="http://www.w3.org/2000/svg">
<!--Autogenerated with python-barcode <module 'barcode.version' from '[...]/lib/python3.6/site-packages/barcode/version.py'>-->
<g id="barcode_group">...
It should probably be more like
<svg height="23.000mm" version="1.1" width="29.000mm" xmlns="http://www.w3.org/2000/svg">
<!--Autogenerated with python-barcode v0.8.1-->
<g id="barcode_group">...
The problem seems to be that from barcode import version on line 9 of barcode.writer imports the barcode.version module, rather than importing the version object from barcode.__init__.
When I write a Code128 barcode in Python3, I get the following:
It should probably be more like
The problem seems to be that
from barcode import versionon line 9 ofbarcode.writerimports thebarcode.versionmodule, rather than importing the version object frombarcode.__init__.