pythonbrew failed some months ago to install 2.7.3 due to a weird compiler error that was never resolved.
Now I ran pythonbrew cleanup and it failed:
OSError: [Errno 13] Permission denied: '/Users/Ceti/.pythonbrew/build/Python2.7.3/build/lib.macosx-10.8-x86_64-2.7/_AE.so'
Why did pythonbrew install files under my account with user root? I manually deleted the Python-2.7.3 directory.
Now I'm trying to install the latest 2.7 release using Python's brew but:
Ceti$ pythonbrew update
You are already running the installed latest version of pythonbrew.
Ceti$ pythonbrew install 2.7.4
ERROR: Unknown python version: `Python-2.7.4`
Ceti$ pythonbrew install 2.7.5
ERROR: Unknown python version: `Python-2.7.5`
Ceti$ pbi http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
Downloading Python-2.7.5.tgz as /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
curl: (37) Couldn't open file /Users/Ceti/http%3A/www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
ERROR: Failed to download.
Failed to fetch.
Ceti$ pbi /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
Use the previously fetched /Users/Ceti/.pythonbrew/dists/Python-2.7.5.tgz
Extracting Python-2.7.5.tgz into /Users/Ceti/.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/Ceti/.pythonbrew/log/build.log"
Patching Python-2.7.5
ERROR: Failed to patch `/Users/Ceti/.pythonbrew/build/Python-2.7.5`.
1: failed to `(patch -p0 < "/Users/Ceti/.pythonbrew/patches/macosx/python27/patch-Modules- posixmodule.diff") >> '/Users/Ceti/.pythonbrew/log/build.log' 2>&1`
How can I install the latest release?
Related
I'm trying to install paramiko in Cygwin and one of the build dependencies is bcrypt.
I have rustc installed and I believe all of the supporting build libraries.
Pip is also updated to the latest.
$ pip --version
pip 22.2.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
I use the following pip command:
pip install bcrypt
And I get the following error output:
error: failed to run custom build command for `pyo3-build-config v0.15.2`
Caused by:
process didn't exit successfully: `C:\Cygwin64\tmp\pip-install-19d9dusl\bcrypt_117761e212a240d8804ceae0beeb39c1\src\_bcrypt\target\release\build\pyo3-build-config-2ef06b5f5d02e46b\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=PYO3_CONFIG_FILE
cargo:rerun-if-env-changed=PYO3_NO_PYTHON
cargo:rerun-if-env-changed=PYO3_PYTHON
--- stderr
error: failed to run the Python interpreter at /usr/bin/python.exe: The system cannot find the path specified. (os error 3)
warning: build failed, waiting for other jobs to finish...
cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/_bcrypt/Cargo.toml --release -v --features pyo3/abi3-py36 pyo3/extension-module -- --crate-type cdylib
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install bcrypt:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Ensure you have a recent Rust toolchain installed. bcrypt requires
rustc >= 1.56.0.
Python: 3.8.12
platform: CYGWIN_NT-10.0-19044-3.3.5-341.x86_64-x86_64-64bit-WindowsPE
pip: n/a
setuptools: 65.3.0
setuptools_rust: 1.5.1
rustc: 1.63.0 (4b91a6ea7 2022-08-08)
=============================DEBUG ASSISTANCE=============================
error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/_bcrypt/Cargo.toml --release -v --features 'pyo3/abi3-py36 pyo3/extension-module' -- --crate-type cdylib` failed with code 101
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for bcrypt Failed to build bcrypt ERROR: Could not build wheels for bcrypt, which is required to install pyproject.toml-based projects
I check my python installation (python.exe) and it is installed at /usr/bin/python.exe.
$ ls /usr/bin/python*
/usr/bin/python.exe /usr/bin/python2.7.exe /usr/bin/python3.8-config
/usr/bin/python2-config /usr/bin/python3 /usr/bin/python3.8.exe
/usr/bin/python2.7-config /usr/bin/python3-config
So I am confused.....what is the issue? Why can't it find my python interpreter? Why is bcrypt not building and installing?
I'm guessing that Cygwin causes some compatibility issues here.
It looks like Cygwin has a package for this purpose, likely to avoid these issues:
https://cygwin.com/packages/summary/python36-bcrypt.html
I'm get the following error when running pip install cryptography:
build\temp.win32-2.7\Release\_openssl.c(434) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory
I'm running windows 10, 64 bit, with python 2.7. I'm trying to install cryptography 1.9.
Installing openssl and changing environment variables fixed this problem for me.
Install OpenSSL by using the installer from here: https://slproweb.com/products/Win32OpenSSL.html
Use the Win32OpenSSL-1_1_0f, even if your system is 64 bit (I tried installing the 64 bit version of OpenSSL and this did not fix the problem)
The following two folders should now exist: C:\OpenSSL-Win32\include, C:\OpenSSL-Win32\lib
Open a cmd line terminal and run the following:
> set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE%
> set LIB=C:\OpenSSL-Win32\lib;%LIB%
> pip install cryptography
I had the same problem on Fusion, which was resolved by upgrading pip.
I am on OS X 10.11.6. I updated and upgraded brew today. After that, pip did not work. It looked as if it was not installed during the upgrade. When I finished the upgrade I saw the warning:
Warning: The post-install step did not complete successfully You can try again using brew postinstall python
So I ran brew postinstall python and I then encountered the error:
error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py'
In this post they say:
The post-install step did not complete successfully due to error: could not delete '/usr/local/lib/python2.7/site-packages/pip/__init__.py': Permission denied. Manually deleting that file and then running brew postinstall python again fixed it.
So I thought the fix would be the same and I manually deleted /usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py' so that
$ ls /usr/local/lib/python2.7/site-packages/pkg_resources/
_vendor extern
I ran brew postinstall python again but now I obtain:
...
copying build/lib/easy_install.py -> /usr/local/lib/python2.7/site-packages
copying build/lib/pkg_resources/__init__.py -> /usr/local/lib/python2.7/site-packages/pkg_resources
error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py'`
I found "a fix" by installing pip using easy_install:
sudo easy_install pip
And now everything seems to work fine. However, I have two questions:
Have I messed up by manually removing '/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py'?
What would be the fix for the [Errno 13] Permission denied when brew postinstall python?
In case it is of any use, here is my brew config and brew doctor outputs after all that happened today:
$ brew config
HOMEBREW_VERSION: 1.1.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 619791e83d2781dca1b675e20249a8aebe085c7c
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 5ce01ec9c8b9958e2d9a7791e4d4e2aa0bf4fd8f
Core tap last commit: 89 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.10.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_91
macOS: 10.11.6-x86_64
Xcode: 8.2.1
CLT: 8.2.0.0.1.1480973914
X11: 2.7.11 => /opt/X11
$ brew doctor
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
The easiest method I've found to fix this is to simply set the ownership of the folder to your username:
chown -R `whoami` /usr/local/lib/python2.7/site-packages/
Edit: On occasion, I also run this:
sudo -H python3 -m pip install ...
or
sudo -H pip install
In a Terminal window on my Mac Pro (OS X 10.9.5), I want to get rust via rustup using the linux command: '$ curl https://sh.rustup.rs -sSf | sh'
But, this timeout error is printed:
Current installation options:
default host triple: x86_64-apple-darwin
default toolchain: stable
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
info: syncing channel updates for 'stable-x86_64-apple-darwin'
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/Users/laurence/.multirust/tmp/q3f6bbl3suzhpl6m_file
info: caused by: error during download
info: caused by: [28] Timeout was reached (Connection timed out after 30056 milliseconds)
rustup: command failed: /var/folders/rn/slxkq6md5jvcwp99zm0_tq_40000gs/T/rustup.H6IPudqd/rustup-init
Do you have a solution?
Thanks a lot,
Laurence_D
use Homebrew for easily installing stuffs on mac
do to install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install rust with the command
brew install rust
bash-4.1# yum install python-devel
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Loading mirror speeds from cached hostfile
* rpmforge: mirror.smartmedia.net.id
* webtatic-el5: uk.repo.webtatic.com
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.6-36.el6 will be installed
--> Processing Dependency: python(x86-64) = 2.6.6-36.el6 for package: python-devel-2.6.6-36.el6.x86_64
--> Finished Dependency Resolution
Error: Package: python-devel-2.6.6-36.el6.x86_64 (centos64-x86_64)
Requires: python(x86-64) = 2.6.6-36.el6
Installed: python-2.6.6-37.el6_4.x86_64 (#centos64-updates-x86_64)
python(x86-64) = 2.6.6-37.el6_4
Available: python-2.6.6-36.el6.x86_64 (centos64-x86_64)
python(x86-64) = 2.6.6-36.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Can somebody help me with above error , I am getting.
Just to let everybody know I am trying to install cx_Oracle on my CentOS system (CentOS release 6.4) and I got this error:-
error: command 'gcc' failed with exit status 1
So, I searched and found out to install python-devel and to do that I am getting the above error.
You have a newer version of python installed than the corresponding source package you're trying to install.
You have python 2.6.6-37 installed but the latest available source package from your repos (that you can successfully connect to) is 2.6.6-36.
But it looks like the python you have installed came from your "updates" repo,
http://192.168.210.26/centos/6/updates/i386/repodata/repomd.xml which isn't working at t he moment.
If that repo also had the corresponding python-devel-2.6.6-37 package, and it worked, (didn't throw a PYCURL error) you'd be fine, yum would find that and use it.
So your first step should be fixing your LAN repo / mirror.