Closed MisterProtocol closed 4 years ago
I should mention I've ripped out and reinstalled Anaconda three times, every time deleting every involved dot file in my home directory, with no change in the behavior. If there are other files I should remove besides these dot files and the anaconda3 directory, please tell me.
Please run in Terminal.app:
conda install -f python.app
to see if that helps.
I did this, as you suggest. It had no effect, either on running Spyder from the Navigator, or running it from the shell.
Sent while peripatetic.
On Mar 17, 2020, at 6:06 PM, Carlos Cordoba notifications@github.com wrote:
Please run in Terminal.app:
conda install -f python.app to see if that helps.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
This is somewhat arcane, but… I see the “Illegal instruction” fault from the Python binary. I wonder if my machine could have something to do with it. It is an early 2009 Mac Pro cheesegrater with two 2.93 GHz 6-core Xeon processors. I believe the type number is 5670. Is it possible that the Python binary is using newer instructions that those Xeon processors don’t support? If so, this is a bug in the Python distribution, or in the compiler used to build it. What do you think?
Mike O'Brien
On Mar 17, 2020, at 6:15 PM, Mike O'Brien mikeobrien@spamcop.net wrote:
I did this, as you suggest. It had no effect, either on running Spyder from the Navigator, or running it from the shell.
Mike O’Brien
Sent while peripatetic.
On Mar 17, 2020, at 6:06 PM, Carlos Cordoba notifications@github.com wrote:
Please run in Terminal.app:
conda install -f python.app
to see if that helps.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I think it might be caused by your pyzmq installation: pyzmq 18.1.1
Consider typing following commands in your Anaconda Prompt:
pip uninstall pyzmq pip install pyzmq --upgrade
Yielding:
Successfully uninstalled pyzmq-18.1.1 Successfully installed pyzmq-19.0.0
Hope it works
@nathanvdlei, very bad advice. You must never use pip to install packages in Anaconda, when they can be installed by conda.
So your command needs to be
conda install -f pyzmq
I tried "conda install -f pyzmq" as you suggest (did not do the "pip"), and, as I fully expected, it had no effect. Same error when running spyder from a Terminal window:
/Users/obrien/opt/anaconda3/bin/pythonw: line 3: 32278 Illegal instruction: 4 /Users/obrien/opt/anaconda3/python.app/Contents/MacOS/python "$@"
To me, this indicates that the python3.7 binary deep inside python.app has one or more instructions in it that my Xeon 3760 processors (2009 Mac Pro) don't possess.
In desperation, I tried replacing this binary (only) with the python3.7 from the python.org distribution, but of course that didn't work, because the Anaconda python3.7 binary has about 400,000 extra bytes of (presumably) pre-loaded modules such as spyder, jupiter-lab, etc. startup routines and (also presumably) lots of other extras.
I have been reminded that Anaconda, Inc. is a for-profit company and that the GitHub repository doesn't possess the source code to Anaconda's python.app. Therefore I cannot build it on my own machine, which would allow me to use a toolchain that would avoid this problem.
Unless somebody else fixes Anaconda's python.app, I'm going to have to abandon Anaconda and see if I can install Spyder directly from the Spyder web site, and Python directly from python.org.
This is just one reason why open source is a good thing.
GitHub repository doesn't possess the source code to Anaconda's python.app.
This is not true and your tone is coming across as hostile which is not a good method when you are asking for free help. The recipe used to build python.app is available and open source.
Thank you! I apologize for my attitude. After some research I was able to clone the "aggregates" repository and rebuild python.app. This didn't help. I'm now wondering - does the python.app recipe rebuild the version of python3.7 stuffed into python.app, or does it grab it from elsewhere? The feedstock directory for python3.7 appears to be empty, so I can't rebuild it from there.
I've successfully installed Spyder from MacPorts. It asked me to install Kite. This happened on my 2017 laptop as well, where Kite installed and ran with no problems. On my Mac Pro, Kite crashed on startup. Reading the info on the Kite website I discover that Kite requires the AVX instruction set, which my Xeons don't have. At this point I'm going to assume that the Python binary(ies) in Anaconda are also using AVX, which would certainly explain the illegal instruction fault. I have no evidence that this is the case, but it seems likely. In that case Anaconda will not run on this machine. If anyone out there knows the AVX status of Anaconda's python binaries, I'd love to hear it.
The macOS package provided by Anaconda are built using the -march=core2
and -msse3
compiler flags. This means that a machine with a least a Core 2 CPU is required. The AVX instruction set is not required but MMX, SSE, SSE2, SSE3 and SSSE3 instructions are.
Ah, thanks! The Xeon 5670 supports all of those, so that’s not the problem. Ah, well. I’m stumped, then.
Thanks again.
I tried creating a new test user on my machine, to see if there was something bogus in my software setup. The problem remains.
I did an Anaconda installation on a fresh install of Mojave on this machine, using a different hard drive, and had the same problem. Anaconda will not run on this hardware (Mac Pro 5,1). At this point I'm giving up. Thanks for the help.
Actual Behavior
I installed the Anaconda3-2020.02-MacOSX-x86_64.pkg package on my Mac. It installed Anaconda Navigator 1.9.12, with Spyder 4.0.1. In the Navigator, Jupyter-Lab opens and runs fine, but when I try to open Spyder, the "busy bar" in the lower right corner chugs for a while, stops, and nothing opens or happens. Activity Monitor shows Spyder is running, but it's incommunicado. Navigator knows it's running and duly shuts it down when I exit the Navigator. I tried running Spyder manually from a Terminal window, but I get this:
[Abaia:~] obrien% spyder /Users/obrien/opt/anaconda3/bin/pythonw: line 3: 28309 Illegal instruction: 4 /Users/obrien/opt/anaconda3/python.app/Contents/MacOS/python "$@" [Abaia:~] obrien%
Expected Behavior
I would expect, either in Navigator or Terminal, to have a Spyder window open and then offer to install Kite. This is what happened when I upgraded Navigator on my Macbook Pro laptop.
Steps to Reproduce
Install the referenced package on a Mac running MacOS Mojave 10.14.6.
Anaconda or Miniconda version:
2020.02 x86-64
Operating System:
MacOS Mojave 10.14.16 patched to current
conda info
conda list --show-channel-urls