devartis / passbook

Python library to create Apple Passbook (.pkpass) files
http://www.devartis.com/
MIT License
272 stars 108 forks source link

No module named 'StringIO' #65

Closed agn-7 closed 1 year ago

agn-7 commented 1 year ago

By the execution of the following line I encounter with the following error:

from passbook.models import Pass

Out:

File ~/.local/lib/python3.10/site-packages/passbook/models.py:11, in <module>
      9     from cStringIO import StringIO
     10 except ImportError:
---> 11     from StringIO import StringIO
     13 import hashlib
     14 import zipfile

ModuleNotFoundError: No module named 'StringIO'
bahmanshams commented 1 year ago

Support for Python 3 has landed in the master branch. You could give it a try by installing it from GitHub — git+https://github.com/devartis/passbook.git instead of pypi package.