`python setup.py import_po` crashed with Python 2.6

Bug #451045 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Medium
Alexander Belchenko
QBzr
Fix Released
Medium
Alexander Belchenko

Bug Description

With Python 2.5:

C:\work\Bazaar\plugins\explorer>setup.py import_po
running import_po
Inspecting tarball...
Extracting...
  explorer/explorer.pot -> po\explorer.pot
  explorer/explorer-ru.po -> po\explorer-ru.po
  explorer/explorer-cs.po -> po\explorer-cs.po
  explorer/explorer-es.po -> po\explorer-es.po
  explorer/explorer-it.po -> po\explorer-it.po
  explorer/explorer-en_AU.po -> po\explorer-en_AU.po
  explorer/explorer-ar.po -> po\explorer-ar.po
  explorer/explorer-de.po -> po\explorer-de.po
  explorer/explorer-ja.po -> po\explorer-ja.po
  explorer/explorer-fr.po -> po\explorer-fr.po
  explorer/explorer-nl.po -> po\explorer-nl.po
  explorer/explorer-lt.po -> po\explorer-lt.po
  explorer/explorer-tr.po -> po\explorer-tr.po
  explorer/explorer-uk.po -> po\explorer-uk.po
Done.

With Python 2.6:

C:\work\Bazaar\plugins\explorer>py26 setup.py import_po
running import_po
Inspecting tarball...
Extracting...
  explorer -> po\explorer
Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    cmdclass=cmdclass,
  File "C:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "C:\work\Bazaar\plugins\explorer\extras\import_po.py", line 76, in run
    fd.write(ft.read())
AttributeError: 'NoneType' object has no attribute 'read'

Something was changed in Python 2.6 re tarball support. :-/

Tags: py2.6
Changed in qbzr:
assignee: nobody → Alexander Belchenko (bialix)
importance: Undecided → Medium
status: New → Confirmed
tags: added: py2.6
Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Alexander Belchenko (bialix)
Changed in bzr-explorer:
status: Confirmed → Fix Released
Changed in qbzr:
milestone: none → 0.15
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.