#762 closed defect (cannot reproduce)

build of mac package fails due to pkgutil in zetuptoolz

Reported by: zooko Owned by: zooko
Priority: major Milestone: eventually
Component: packaging Version: 1.4.1
Keywords: mac setuptools Cc:
Launchpad Bug:

Description (last modified by daira)

http://allmydata.org/buildbot/builders/Mac%20OS-X/builds/1039/steps/mac_exe/logs/stdio

  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/modulegraph/modulegraph.py", line 114, in find_module
    if isinstance(importer, pkg_resources.ImpWrapper):
AttributeError: 'module' object has no attribute 'ImpWrapper'

This has something to do with the fact that the version of zetuptoolz bundled with TahoeLAFS in misc/dependencies, called 'setuptools-0.6c12dev' replaced pkg_resources with the new pkgutil module, and modulegraph apparently uses pkg_resources. Why modulegraph's use thereof results in this incompatibility I haven't figured out yet. I have tested a version of zetuptoolz which uses the old pkg_resources style instead of the new pkgutil style -- http://allmydata.org/trac/zetuptoolz/changeset/20090703214517-92b7f-126e534865d9104679dc424aa681cf26a26f2921 -- and shown that this error goes away with that zetuptoolz (this is why this failure doesn't happen on ootles the way it does on the "OS X" (VirtualZooko) builder). So a good solution to this ticket would be to upgrade our bundled zetuptoolz to that new version of zetuptoolz. Although it would be nice to understand more precisely why it doesn't work this way -- maybe we could submit a patch to some other project to help.

Change History (5)

comment:1 Changed at 2009-08-06T18:34:08Z by zooko

  • Milestone changed from eventually to 1.5.1
  • Owner changed from somebody to zooko
  • Status changed from new to assigned

I hope to address this issue for Tahoe-LAFS v1.5.1.

comment:2 Changed at 2009-08-18T03:09:08Z by zooko

  • Milestone changed from 1.5.1 to 1.5.2

I'm booting this ticket out of v1.5.1 because we're making good progress on Debian and Windows for v1.5.1, and I appear to be the only person who is working on Mac, and I have sooo little time right now. The Mac side would hold up the release after the Debian and Windows sides were ready unless someone else were to jump in.

comment:3 Changed at 2009-10-26T20:09:06Z by zooko

  • Milestone changed from 1.5.2 to eventually

comment:4 Changed at 2012-04-07T00:21:33Z by davidsarah

  • Status changed from assigned to new

No longer relevant I think. Zooko, close as invalid if you agree.

comment:5 Changed at 2014-03-17T18:52:29Z by daira

  • Description modified (diff)
  • Resolution set to cannot reproduce
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.