3.0.0b1 fails bootstrap.py on Mountain Lion

I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
————————————————————————-- Traceback (most recent call last): File "bootstrap.py", line 157, in <module> import pkg_resources File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 698, in <module> class Environment(object): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 701, in Environment def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 99, in get_supported_platform plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 209, in _macosx_vers _cache.append(mac_ver()[0].split('.')) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 803, in mac_ver File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 780, in _mac_ver_xml File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 418, in handleEndElement File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 452, in end_key File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 436, in getData LookupError: unknown encoding: ascii ——————————————————————————
FWIW, I can open an interactive Python session and execute "import pkg_resources" from the command line without error.
Any ideas?
Thanks— Greg

I haven't upgraded to Mountain Lion yet myself so I can't test, but if it's helpful, I can at least confirm that I did a new install on Lion about two weeks ago and it worked, so it's probably something specific to Mountain Lion or your machine's setup, not a problem with macos more generally.
The weird thing is that it looks like it's actually barfing on parsing the version number itself, which makes me wonder if maybe mountain lion's reporting the version in a slightly different syntax than expected or something doesn't think it's available for that version number.
It might be worth installing a fresh version of python in case there's just something up with the version macos provides, and I *did* have some problem with the wrong version of setuptools that required me to clear /Library/Python/2.7/site-packages/ before bootstrap.py would behave properly (See http://terriko.dreamwidth.org/104072.html for my note to self on what went wrong with bootstrap.py in my case). The latter seems unlikely on a fresh install, but trying it doesn't hurt anything since bootstrap will just redownload those packages.
Terri
On 09/06/2012 12:11 PM, G B wrote:
I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
————————————————————————-- Traceback (most recent call last): File "bootstrap.py", line 157, in <module> import pkg_resources File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 698, in <module> class Environment(object): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 701, in Environment def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 99, in get_supported_platform plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 209, in _macosx_vers _cache.append(mac_ver()[0].split('.')) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 803, in mac_ver File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 780, in _mac_ver_xml File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 418, in handleEndElement File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 452, in end_key File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 436, in getData LookupError: unknown encoding: ascii ——————————————————————————
FWIW, I can open an interactive Python session and execute "import pkg_resources" from the command line without error.
Any ideas?
Thanks— Greg
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/terri%40zone12.com
Security Policy: http://wiki.list.org/x/QIA9

On Sep 06, 2012, at 11:11 AM, G B wrote:
I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
I don't have OS X 10.8 yet, but I tried it on my 10.6.8 machine, using MacPorts' Python 2.7.
I was able to bootstrap, but bin/buildout failed downloading one of the zc recipes. I don't have much in /opt/local/lib/python2.7/site-packages and I didn't spend much time debugging the problem.
However, I was able to create a virtualenv and do a python setup.py install
into that virtualenv just fine. I tested with mailman info
but didn't try
to much else.
I'm guessing it's something weird with 10.8's built-in Python 2.7.
Cheers, -Barry

Barry,
I have 10.7 and, today, I had the same problem.
Yesterday, I was able to set things up without any problems.
I think that the difference is that z3c.recipe.tag has bumped the version number to 0.5 but that the distribution is missing one of its files.
By manually downloading the package, I was able to fake the missing CHANGES.txt file and pre-install the module.
After that, the install worked just fine.
The Postorius install still needs some additional tweaking to make it work "out of the box", but it is progressing.
Richard
On Sep 6, 2012, at 9:05 PM, Barry Warsaw wrote:
On Sep 06, 2012, at 11:11 AM, G B wrote:
I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
I don't have OS X 10.8 yet, but I tried it on my 10.6.8 machine, using MacPorts' Python 2.7.
I was able to bootstrap, but bin/buildout failed downloading one of the zc recipes. I don't have much in /opt/local/lib/python2.7/site-packages and I didn't spend much time debugging the problem.
However, I was able to create a virtualenv and do a
python setup.py install
into that virtualenv just fine. I tested withmailman info
but didn't try to much else.I'm guessing it's something weird with 10.8's built-in Python 2.7.
Cheers, -Barry
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/richard%40nfsnet.o...
Security Policy: http://wiki.list.org/x/QIA9

On Sep 06, 2012, at 10:23 PM, Richard Wackerbarth wrote:
I have 10.7 and, today, I had the same problem.
Yesterday, I was able to set things up without any problems.
I think that the difference is that z3c.recipe.tag has bumped the version number to 0.5 but that the distribution is missing one of its files.
Yep. I sent a message off to zope-dev (the maintainer address in the setup.py) and distutils-sig (where buildout folks hang out). I couldn't find a bug tracker for the package. Let's hope a new version gets uploaded soon.
By manually downloading the package, I was able to fake the missing CHANGES.txt file and pre-install the module.
Nice workaround, thanks!
After that, the install worked just fine.
The Postorius install still needs some additional tweaking to make it work "out of the box", but it is progressing.
Awesome!
-Barry

In response to an inquiry concerning just what I did to get MM3 built yesterday:
First, I note that I have chosen to create two separate virtual environments for the installation. One is "postorius" which has the web interface, and the other is "mailman" into which I install just the mail-handling part. I do this because these two components are logically separate and, by design, might be installed on separate host machines.
The mailman environment gets its sources from the lp:mailman repository. All of the other parts mentioned in the wiki installation guide go into the postorius environment.
The failure in the mailman installation (as of 6 Sep 2012) seems to result from a bad distribution package for z3c.recipe.tag, version 0.5.
After creating the mailman virtual environment, you can work around this by pre-installing this package before you run the (bootstrap/setup) for the mailman module.
Working in the virtual environment where you will install mailman:
First attempt to install z3c.recipe.tag $ pip install z3c.recipe.tag
This will fail with a message like: (Note that I redacted part of the path. You should use the full path as reported on your own installation) IOError: [Errno 2] No such file or directory: '/ ... /z3c.recipe.tag/CHANGES.txt'
Create that file $ touch / ... /z3c.recipe.tag/CHANGES.txt
Now, try the installation again $ pip install z3c.recipe.tag
This should succeed and you should then be able to complete the buildout of mailman.
Richard "Wacky" Wackerbarth
On Sep 6, 2012, at 10:38 PM, Barry Warsaw wrote:
On Sep 06, 2012, at 10:23 PM, Richard Wackerbarth wrote:
I have 10.7 and, today, I had the same problem.
Yesterday, I was able to set things up without any problems.
I think that the difference is that z3c.recipe.tag has bumped the version number to 0.5 but that the distribution is missing one of its files.
Yep. I sent a message off to zope-dev (the maintainer address in the setup.py) and distutils-sig (where buildout folks hang out). I couldn't find a bug tracker for the package. Let's hope a new version gets uploaded soon.
By manually downloading the package, I was able to fake the missing CHANGES.txt file and pre-install the module.
Nice workaround, thanks!

Hey Richard—
How hard would it be to recreate your solution? Could I bumble my way through it with no Mailman, no Zope, and limited Python experience?
Maybe the first question I should ask is whether I should be trying the beta, or if I should stick to the 2.x release. I chose the beta to start with because I don't expect this to be a high traffic system and I'd hoped to gain the benefit of the new web interface and save the trouble of updating from 2->3 later.
Thanks— Greg
On Sep 6, 2012, at 8:23 PM, Richard Wackerbarth <richard@NFSNet.org> wrote:
Barry,
I have 10.7 and, today, I had the same problem.
Yesterday, I was able to set things up without any problems.
I think that the difference is that z3c.recipe.tag has bumped the version number to 0.5 but that the distribution is missing one of its files.
By manually downloading the package, I was able to fake the missing CHANGES.txt file and pre-install the module.
After that, the install worked just fine.
The Postorius install still needs some additional tweaking to make it work "out of the box", but it is progressing.
Richard
On Sep 6, 2012, at 9:05 PM, Barry Warsaw wrote:
On Sep 06, 2012, at 11:11 AM, G B wrote:
I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
I don't have OS X 10.8 yet, but I tried it on my 10.6.8 machine, using MacPorts' Python 2.7.
I was able to bootstrap, but bin/buildout failed downloading one of the zc recipes. I don't have much in /opt/local/lib/python2.7/site-packages and I didn't spend much time debugging the problem.
However, I was able to create a virtualenv and do a
python setup.py install
into that virtualenv just fine. I tested withmailman info
but didn't try to much else.I'm guessing it's something weird with 10.8's built-in Python 2.7.
Cheers, -Barry
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/richard%40nfsnet.o...
Security Policy: http://wiki.list.org/x/QIA9
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/g.c.b.at.work%40gm...
Security Policy: http://wiki.list.org/x/QIA9

Greg,
First, let me address your choice of versions. Although the mail handling part of MM3 seems to be in pretty good shape, the Web UI still has quite a bit that hasn't been "fleshed out". Traffic volume is not really a concern. If anything, the high traffic installations might be more inclined to prefer the MM3 architecture.
Depending on how much you need the Web UI, you may prefer to stick with MM2 (unless you would like to help us finish parts of the Postorius interface).
As for "recreating" my work-around, I will provide additional details in response to the other sub-thread of this discussion.
- Richard "Wacky" Wackerbarth
On Sep 6, 2012, at 10:54 PM, G B wrote:
Hey Richard—
How hard would it be to recreate your solution? Could I bumble my way through it with no Mailman, no Zope, and limited Python experience?
Maybe the first question I should ask is whether I should be trying the beta, or if I should stick to the 2.x release. I chose the beta to start with because I don't expect this to be a high traffic system and I'd hoped to gain the benefit of the new web interface and save the trouble of updating from 2->3 later.
Thanks— Greg
On Sep 6, 2012, at 8:23 PM, Richard Wackerbarth <richard@NFSNet.org> wrote:
Barry,
I have 10.7 and, today, I had the same problem.
Yesterday, I was able to set things up without any problems.
I think that the difference is that z3c.recipe.tag has bumped the version number to 0.5 but that the distribution is missing one of its files.
By manually downloading the package, I was able to fake the missing CHANGES.txt file and pre-install the module.
After that, the install worked just fine.
The Postorius install still needs some additional tweaking to make it work "out of the box", but it is progressing.
Richard
On Sep 6, 2012, at 9:05 PM, Barry Warsaw wrote:
On Sep 06, 2012, at 11:11 AM, G B wrote:
I initially posted this to mailman-users, but it was suggested that this would be a better list.
I'm installing Mailman for the first time, and chose to try the beta. I'm installing on a Mountain Lion Server, that was cleanly installed. I've since updated the OS to 10.8.1
I got as far as 'python bootstrap.py' and it failed immediately with the following traceback:
I don't have OS X 10.8 yet, but I tried it on my 10.6.8 machine, using MacPorts' Python 2.7.
I was able to bootstrap, but bin/buildout failed downloading one of the zc recipes. I don't have much in /opt/local/lib/python2.7/site-packages and I didn't spend much time debugging the problem.
However, I was able to create a virtualenv and do a
python setup.py install
into that virtualenv just fine. I tested withmailman info
but didn't try to much else.I'm guessing it's something weird with 10.8's built-in Python 2.7.
Cheers, -Barry
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/richard%40nfsnet.o...
Security Policy: http://wiki.list.org/x/QIA9
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/g.c.b.at.work%40gm...
Security Policy: http://wiki.list.org/x/QIA9
Mailman-Developers mailing list Mailman-Developers@python.org http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://wiki.list.org/x/AgA3 Searchable Archives: http://www.mail-archive.com/mailman-developers%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/richard%40nfsnet.o...
Security Policy: http://wiki.list.org/x/QIA9
participants (4)
-
Barry Warsaw
-
G B
-
Richard Wackerbarth
-
Terri Oda