After analyzing a bit more what was going on with this issue, I could find the root cause, the file pep8_1.5.7-2.diff.gz is adding build/lib/pep8.py from an old version and for some reason python3 is using it over the pep8.py module that is in the top source directory. It should be a left over of some previous build and it has been being carried.
Here I'm attaching a debdiff that fixes the bug. Here it's the output of my console after I installed this new version: root@debian-sid:~# dpkg -l python3-pep8 pep8 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================-===============-===============-============================================== ii pep8 1.5.7-3 all Python PEP 8 code style checker - python2 ii python3-pep8 1.5.7-3 all Python PEP 8 code style checker - python3 root@debian-sid:~# python -c "import pep8; print(pep8.__file__)" /usr/lib/python2.7/dist-packages/pep8.pyc root@debian-sid:~# python -c "import pep8; print(pep8.__version__)" 1.5.7 root@debian-sid:~# python3 -c "import pep8; print(pep8.__file__)" /usr/lib/python3/dist-packages/pep8.py root@debian-sid:~# python3 -c "import pep8; print(pep8.__version__)" 1.5.7 root@debian-sid:~# diff -u /usr/lib/python2.7/dist-packages/pep8.py /usr/lib/python3/dist-packages/pep8.py | diffstat 0 files changed Best, -- Felipe Reyes Software Sustaining Engineer @ Canonical STS Engineering Team # Email: felipe.re...@canonical.com (GPG:0x9B1FFF39) # Phone: +56 9 7640 7887 # Launchpad: ~freyes | IRC: freyes
debbug_788132.debdiff
Description: Binary data
pgpaGGN6j0Jhu.pgp
Description: OpenPGP digital signature