RuntimeError "Cannot find uncompiled version of site" in zc/buildout/easy_install.py:1595

Bug #715813 reported by Gregor Müllegger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
New
Undecided
Unassigned

Bug Description

Hi,

I'm using buildout to develop most of my django projects. I've previously used
python on a MacBook, however after upgrading to a new MacPro I found myself in
the situation that all my buildout based projects won't run anymore.

I try to do ``python bootstrap.py`` but I get the following error:

    While:
      Bootstrapping.

    An internal error occurred due to a bug in either zc.buildout or in a
    recipe being used:

    Traceback (most recent call last):
      File "/private/var/folders/rc/rcwBLsNNGE4z+sZ7mdhtek+++TI/-Tmp-/tmpWNjZrB/zc.buildout-1.5.2-py2.6.egg/zc/buildout/buildout.py", line 1805, in main
        getattr(buildout, command)(args)
      File "/private/var/folders/rc/rcwBLsNNGE4z+sZ7mdhtek+++TI/-Tmp-/tmpWNjZrB/zc.buildout-1.5.2-py2.6.egg/zc/buildout/buildout.py", line 417, in bootstrap
        exec_sitecustomize=self.exec_sitecustomize,
      File "/private/var/folders/rc/rcwBLsNNGE4z+sZ7mdhtek+++TI/-Tmp-/tmpWNjZrB/zc.buildout-1.5.2-py2.6.egg/zc/buildout/easy_install.py", line 1272, in sitepackage_safe_scripts
        include_site_packages, relative_paths))
      File "/private/var/folders/rc/rcwBLsNNGE4z+sZ7mdhtek+++TI/-Tmp-/tmpWNjZrB/zc.buildout-1.5.2-py2.6.egg/zc/buildout/easy_install.py", line 1672, in _generate_site
        real_site_path = _get_module_file(executable, 'site')
      File "/private/var/folders/rc/rcwBLsNNGE4z+sZ7mdhtek+++TI/-Tmp-/tmpWNjZrB/zc.buildout-1.5.2-py2.6.egg/zc/buildout/easy_install.py", line 1595, in _get_module_file
        raise RuntimeError('Cannot find uncompiled version of %s' % (name,))
    RuntimeError: Cannot find uncompiled version of site

I'm using a clean and fresh install of MacOS 10.6.4, python 2.6.1, the most
recent setuptools (easy_install -U setuptools) and the most recent version of
the ``bootstrap.py`` file. However I know I'm not the only one with this
issue. My co-worker with another Mac is experiencing the same problems.
On Linux (Kubuntu 10.10) everything works like expected.

Revision history for this message
prinzdezibel (prinzdezibel) wrote :

This is because the fine folks at Apple aren't bothered to ship the uncompiled version of the standard python libs.

See the files in the library directory:
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/

This is for my Lion installation. For an older Snow-Leopard python2.6 installation, the uncompiled files are there.

You could install a new (, more linux like) python with macports.

Revision history for this message
prinzdezibel (prinzdezibel) wrote :

Interesting: Installing XCode seems to bring the uncompiled files with it. That's the way to go as sooner or later you'll also want the GNU toolchain anyway..

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.