[Bug 1513961] Re: Missing __init__.py file on package
Thiago Bellini
hackedbellini at gmail.com
Fri Nov 13 11:23:57 UTC 2015
@pitty the error is on trusty only.
Yes, the /usr/share/pyshared/qrcode/__init__.py exists, what is missing
in it is the /usr/share/pyshared/qrcode/image/__init__.py, as you can
see here http://packages.ubuntu.com/trusty/all/python-qrcode/filelist
Try importing qrcode.main for example (as it will try to import
qrcode.image.base.BaseImage) and it will give you an ImportError
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1513961
Title:
Missing __init__.py file on package
Status in python-qrcode package in Ubuntu:
Fix Released
Bug description:
The package is missing a __init__.py file on the qrcode/image package,
making it useless. Just try to 'import qrcode' and since qrcode.image
is not a package because of the missing file, and the
qrcode/__init__.py tries to import it, it will not work.
Just by changing the rules to do 'dh $@ --with python2' (which is the
rule being used by newer versions of this package on vivid/whily/etc)
instead of 'dh $@' made it correct. The change is attached on the bug.
I uploaded a new version with the change on my ppa here
<https://launchpad.net/~hackedbellini/+archive/ubuntu/misc> so you can
test it if you want.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qrcode/+bug/1513961/+subscriptions
More information about the Ubuntu-sponsors
mailing list