pklaus / brother_ql

Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
GNU General Public License v3.0
558 stars 165 forks source link

ImportError: No module named brother_ql.create #1

Closed medouederni closed 8 years ago

medouederni commented 8 years ago

I installed brother_ql on Raspberry Pi 2 (Raspbian). I test the main cmd: $ brother_ql_create --model QL-500 ./720x300_monochrome.png > 720x300_monochrome.bin

and got this error:

Traceback (most recent call last): File "/usr/local/bin/brother_ql_create", line 9, in load_entry_point('brother-ql==0.6-dev', 'console_scripts', 'brother_ql_create')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load ['name']) ImportError: No module named brother_ql.create

pklaus commented 8 years ago

Thanks. This problem is a convolution of using Python 2 (I used / tested it against Python 3) and of a bug in the raster command file creation process. Both problems will be fixed in a minute: I'll push the necessary commits. Try again after upgrading the package with pip install https://github.com/pklaus/brother_ql/archive/master.zip --upgrade