[reportlab-users] graphics.barcode not installed with setup.py

ml at weird-birds.org ml at weird-birds.org
Thu Jan 11 06:23:06 EST 2007


Hi List

I recently needed to use barcodes and I found the old barcode extension.
It was hard to find and only a direct download worked with a link i found
on a BSD page - so I tried to figure out why it is hidden that way - the
reason is pretty simple, it is supposed to be in 2.0 package. But I wasn't
able to import it - why - setup.py is missing it in ist packages list:

--- reportlab/setup.py 2006-05-23 17:56:46.000000000 +0200
+++ setup.py 2007-01-11 11:02:27.198519121 +0100
@@ -235,6 +235,7 @@
packages=[ # include anything with an __init__
'reportlab',
'reportlab.extensions',
+ 'reportlab.graphics.barcode',
'reportlab.graphics.charts',
'reportlab.graphics.samples',
'reportlab.graphics.widgets',

I posted this information so that other people having this problem know
what's up and can help themselves. Maybe you can fix that in the release
.tgz if your release system allows that. I suppose most users of linux
distributions wont have graphics.barcode installed since they will use the
setup.py in favour of simply unpacking to pythons site-packages path. At
least for me using gentoo this was the case.

On a side note, the barcodes fully work, I had to work with existing code
that used a ttf font and some weird algos to use the correct characters
which didn't work all the time... thanks a lot for that package.

regards
Mike




More information about the reportlab-users mailing list