Open jmbernabotto opened 3 years ago
I also met the same problen in my new MacBook Pro M1, but run python script w/o jupyter-notebook is fine.
I also met the same problen in my new MacBook Pro M1, but run python script w/o jupyter-notebook is fine.
I also tried this way but same issue !
Since there are other issues open about Jupyter on Intel Macs as well, I believe it may be some bug related to the use of the Metal Shaders with the ipython kernel.
Thank you for reporting this issue! It would be very helpful, if you could provide a reproducible test case, so we can investigate this failure.
Oh it’s very simple. Import tensorflow as tf and ...bing...kernel crash ! and below the return message after a test.py where there is unique instruction : import tensorflow as tf
Traceback (most recent call last):
File "test.py", line 1, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 1, in
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.
Le 1 déc. 2020 à 18:55, anna-tikhonova notifications@github.com a écrit :
Thank you for reporting this issue! It would be very helpful, if you could provide a reproducible test case, so we can investigate this failure.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@jmbernabotto I wasn't able to reproduce the issue. Jupyter seems to be working for me.
Perhaps this is due to some installation issue?
Have you installed python from Xcode Command Line Tools as mentioned in the readme file? I've noticed only this version of python have be used to create any virtual environment or to install pip packages.
@jmbernabotto I wasn't able to reproduce the issue. Jupyter seems to be working for me.
Perhaps this is due to some installation issue?
Have you installed python from Xcode Command Line Tools as mentioned in the readme file? I've noticed only this version of python have be used to create any virtual environment or to install pip packages.
Yes I have installed Python from Xcode. No solution for me 👎 so disappointed...
I tested that. Same issue ! I’m going to begin again all instructions !
Le 11 déc. 2020 à 18:45, Hoyt Koepke notifications@github.com a écrit :
pip install --upgrade appnope
Ipython requires the latest version of appnope (pip install --upgrade appnope
) to work correctly on M1. However, I do not think that is the issue here.
First, could you verify that outside of your virtual environment, running which python
points to the Python version installed by the command line tools. If it doesn't, then run the install script using --python=/Library/Developer/CommandLineTools/usr/bin/python3
to force it to use the command line tools version.
If that doesn't work, send me the output of file $(which python)
while in your virtual environment. There are two cpu subtypes for binaries on the M1, arm64 and arm64e. Trying to mix the two results in the error you see. For this pre-release version, we're focusing support on the arm64 version of Python in the Xcode Command Line Tools, so the included wheel does not include an arm64e slice.
I don't test yet
me too, so disappointed! when i try to import TensorFlow, it always showed 'kernel appears to have died. It will restart automatically'
Me, too! I'm very looking forward to find how fast my machine works, but I haven't seen it yet, only the 'kernel crash' notice instead :<
Random crashes during training several epochs in.
Ipython requires the latest version of appnope (
pip install --upgrade appnope
) to work correctly on M1. However, I do not think that is the issue here.First, could you verify that outside of your virtual environment, running
which python
points to the Python version installed by the command line tools. If it doesn't, then run the install script using--python=/Library/Developer/CommandLineTools/usr/bin/python3
to force it to use the command line tools version.If that doesn't work, send me the output of
file $(which python)
while in your virtual environment. There are two cpu subtypes for binaries on the M1, arm64 and arm64e. Trying to mix the two results in the error you see. For this pre-release version, we're focusing support on the arm64 version of Python in the Xcode Command Line Tools, so the included wheel does not include an arm64e slice.
Having same issue. When I do this line --python=/Library/Developer/CommandLineTools/usr/bin/python3
I get '-bash: --python=/Library/Developer/CommandLineTools/usr/bin/python3: No such file or directory'
I did install from Command line.
When i do this line 'file $(which python)` i get '/Users/megan/opt/anaconda3/bin/python: Mach-O 64-bit executable x86_64'
Can you please help?
I seem to be finding that every minor MacOS update requires me to reinstall the command line tools... Is it possible that you've allowed your Mac to do a minor update, which oddly results in the command line tools getting flushed?
I seem to be finding that every minor MacOS update requires me to reinstall the command line tools... Is it possible that you've allowed your Mac to do a minor update, which oddly results in the command line tools getting flushed?
I just installed the latest command-line tools (that wasnt currently in beta) version 12.4 here: https://developer.apple.com/download/more/?=command%20line%20tools
Success for Tensorflow installation with the new procedure ; it’s ok with Jupiter notebook, but, there is a minor problem with matplotlib. I need to make few shift Enter to proceed successfully.
A major problem, Sickit Learn crash in Tensorflow Anaconda activation. I have to create another environment named sciait for example, with pandas, numpy…without tensorflow and there, no problem.
For me it’s a great convenience.
Have you the same difficulty ?
Le 17 mars 2021 à 18:33, MegansColorado @.***> a écrit :
I seem to be finding that every minor MacOS update requires me to reinstall the command line tools... Is it possible that you've allowed your Mac to do a minor update, which oddly results in the command line tools getting flushed?
I just installed the latest command-line tools (that wasnt currently in beta) version 12.4 here: https://developer.apple.com/download/more/?=command%20line%20tools https://developer.apple.com/download/more/?=command%20line%20tools — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/apple/tensorflow_macos/issues/45#issuecomment-801273671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDEUSMQWHVMYHFIDX4KCZLTEDRXPANCNFSM4UGVEV3A.
Ipython requires the latest version of appnope (
pip install --upgrade appnope
) to work correctly on M1. However, I do not think that is the issue here.First, could you verify that outside of your virtual environment, running
which python
points to the Python version installed by the command line tools. If it doesn't, then run the install script using--python=/Library/Developer/CommandLineTools/usr/bin/python3
to force it to use the command line tools version.If that doesn't work, send me the output of
file $(which python)
while in your virtual environment. There are two cpu subtypes for binaries on the M1, arm64 and arm64e. Trying to mix the two results in the error you see. For this pre-release version, we're focusing support on the arm64 version of Python in the Xcode Command Line Tools, so the included wheel does not include an arm64e slice.
I found that passing --python = /usr/bin/python3
to the installation script worked and --python=/Library/Developer/CommandLineTools/usr/bin/python3
did not.
I go into further detail into the installation process I used in #215.
I installed tensorflow in my new Mac mini M1. I followed instructions to make new environnement... But with Jupyter when I try "import tensorflow", I have a kernel crash systematically ! Please help me.
Thanks.