bcbnz / pylabels

Python library to create PDFs for printing labels.
GNU General Public License v3.0
100 stars 40 forks source link

"AttributeError: module 'labels' has no attribute 'Specification'" #16

Closed LinusFresz closed 6 years ago

LinusFresz commented 6 years ago

I am running into trouble with pylabels on MacOs using Python 3.7.0. The minimal example I used is the nametags example from this repository: https://github.com/bcbnz/pylabels/blob/master/demos/nametags.py

Running python3 nametags.py gave me this error:

Traceback (most recent call last):
  File "nametags.py", line 29, in <module>
    specs = labels.Specification(210, 297, 2, 8, 90, 25, corner_radius=2)
AttributeError: module 'labels' has no attribute 'Specification'

Is there any solution for this issue? Was it known before?

LinusFresz commented 6 years ago

I've figured out that I should use pip install pylabels instead of pip install labels. Going to close this issue now, sorry for this faulty issue!