buildout error : 'tuple' object has no attribute 'is_prerelease'

Bug #1453454 reported by daamien
2
Affects Status Importance Assigned to Milestone
GNU Mailman suite bundler
Undecided
Unassigned

Bug Description

Hey guys,

I followed this doc :
http://mailman-bundler.readthedocs.org/en/latest/

and I get the following error at the buildout step

(venv)damien@gouda:~/dev/mailman-bundler$ buildout
While:
  Installing.
  Checking for upgrades.
  Getting distribution for 'distribute'.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1946, in main
    getattr(buildout, command)(args)
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 475, in install
    self._maybe_upgrade()
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/buildout.py", line 910, in _maybe_upgrade
    allow_hosts = self._allow_hosts
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 848, in install
    return installer.install(specs, working_set)
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 635, in install
    for_buildout_run=for_buildout_run):
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 477, in _get_dist
    dist, avail = self._satisfied(requirement)
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 253, in _satisfied
    if _final_version(dist.parsed_version)
  File "/home/damien/dev/mailman-bundler/venv/local/lib/python2.7/site-packages/zc/buildout/easy_install.py", line 1408, in _final_version
    return not parsed_version.is_prerelease
AttributeError: 'tuple' object has no attribute 'is_prerelease'

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :

I think this is because you are using distribute instead of setuptools. At least I now see it on a server too that still has distribute in its bin/buildout, where locally with setuptools all is fine.

Revision history for this message
daamien (damien-taadeem) wrote :

Thanks for the answer

We solved the problem by switching to Debian Jessie.

This issue can be closed

Revision history for this message
Mark Sapiro (msapiro) wrote :

This issue is duplicated at <https://gitlab.com/mailman/mailman-bundler/issues/3>.

Future mailman-bundler issues should be reported at <https://gitlab.com/mailman/mailman-bundler/issues/>

Marking invalid per comment #2.

Changed in mailman-bundler:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers