Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smoothdvd opened this issue Jul 14, 2013 · 4 comments

Comments

@smoothdvd
Copy link

$ 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

@iamsc
Copy link

iamsc commented Sep 5, 2013

I also have the same problem.

@gardiner
Copy link

gardiner commented Nov 6, 2013

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.

@scottjbarr
Copy link

@gardiner This worked for me. Thanks.

Can you submit the patch?

@beelit94
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants