pythonbrew icon indicating copy to clipboard operation
pythonbrew copied to clipboard

Patching Python-2.7.5 ERROR: Failed to patch `/Users/alexgao/.pythonbrew/build/Python-2.7.5`.

Open smoothdvd opened this issue 12 years ago • 4 comments

$ pythonbrew install 2.7.5 Downloading Python-2.7.5.tgz as /Users/alexgao/.pythonbrew/dists/Python-2.7.5.tgz

################################################################## 100.0%

Extracting Python-2.7.5.tgz into /Users/alexgao/.pythonbrew/build/Python-2.7.5

This could take a while. You can run the following command on another shell to track the status: tail -f "/Users/alexgao/.pythonbrew/log/build.log"

Patching Python-2.7.5 ERROR: Failed to patch /Users/alexgao/.pythonbrew/build/Python-2.7.5. 1: failed to (patch -p0 < "/Users/alexgao/.pythonbrew/patches/macosx/python27/patch-Modules-posixmodule.diff") >> '/Users/alexgao/.pythonbrew/log/build.log' 2>&1

smoothdvd avatar Jul 14 '13 15:07 smoothdvd

I also have the same problem.

iamsc avatar Sep 05 '13 17:09 iamsc

Same problem here. Apparently the mentioned patch does not apply any more. This is a conservative fix:

File: ~/.pythonbrew/scripts/installer/pythoninstaller.py, line 339 (see here)

replace:

    elif is_python27(version):
        patch_dir = PATH_PATCHES_MACOSX_PYTHON27
        self._add_patches_to_list(patch_dir, ['patch-Modules-posixmodule.diff'])

with:

    elif is_python27(version):
        if version != '2.7.5':
            patch_dir = PATH_PATCHES_MACOSX_PYTHON27
            self._add_patches_to_list(patch_dir, ['patch-Modules-posixmodule.diff'])

Ole.

gardiner avatar Nov 06 '13 20:11 gardiner

@gardiner This worked for me. Thanks.

Can you submit the patch?

scottjbarr avatar Feb 17 '14 00:02 scottjbarr

Hi, will someone submit this? I also experience same problem here

beelit94 avatar Jun 17 '14 17:06 beelit94