[Bug 1513961] Re: Missing __init__.py file on package
Thiago Bellini
hackedbellini at gmail.com
Fri Nov 13 13:59:02 UTC 2015
@pitti: Ok, that is weird. Just tested on a trusty vm and I could not
reproduce the problem.
When I reproduced it, I extracted qrcode from the deb, put the directory
on PYTHONPATH and ran it.
I did that because, even though I was running trusty, I don't have sudo
powers to install the package myself (this is a diskless station at my
work, I use debian at home and thus could not reproduce there either),
and I was trying to check if the python-qrcode package on trusty was
compatible with something I'm developing.
When I did that, it gave me an ImportError (as is expected because of
the missing qrcode/image/__init__.py that should make it not be
considered a package) that I could fix by creating the missing file.
Then I came here to report the "bug".
The question now is, why those 2 approaches are giving me different
results? AFAIK, they should run equally.
--
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