Patching Python-2.7.5 ERROR: Failed to patch `/Users/alexgao/.pythonbrew/build/Python-2.7.5`.
$ 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
I also have the same problem.
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 This worked for me. Thanks.
Can you submit the patch?
Hi, will someone submit this? I also experience same problem here