-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
'zsh: killed python' while executing from virtualenv on macOS Big Sur for Python 2.7 #4502
Comments
Sorry but I can't reproduce, does |
@frostming thanks for reply. |
Looks like you have a broken environment or Python installation. Try each of the following steps one by one (run the next if the previous does not fix the issue):
If none of the above works, you’re likely having a system issue and should seek (physical) technical assistance. |
@aberrya Any update on this? I've come across the same issue. |
I've come across the same issue as well. I've created a virtual environment running python 2.7, and any command be it pip or python is killed by the zsh. I'm using Rosetta to run x64 based terminal on arm64 Mac. Any updates would be helpful. |
@kamilturek @nilabjodey We started using venv and also moved to Python3 now (which was long pending for years). But I saw that even with recent Big Sur update on ARM Mac, issue was still persisting Python2 and pipenv. |
It worked for me after I installed Python 2.7.18 using pyenv. |
I suspect this is related to: pypa/virtualenv#2023 |
Same problem: can't make virtualenv work on any M1-based Mac with 2.7. Tried a few systems, always plays out as @aberrya describes. |
solution:
|
You can check as suggested by kamilturek above, that Python 2.7.18 using pyenv worked. |
Thanks man this worked for me |
Thanks It worked on m1 |
same problem |
same problem, updating to 2.7.18 solved the issue |
@vasantvohra how to update? |
@goxofy I've installed python 2.7.18 using MacOs installer available on the python website and also used pyscopg2-binary for Postgres v13 as there were some errors installing pyscopg2. I'm using M1 with the latest Big Sur. |
@vasantvohra So there are Python 2.7.18 and 2.7.16 on your Mac? |
I had the same issue on my M1 Mac. You can resolve the same by duplicating your Terminal, and running it with Rosetta. That worked for me. |
That works for me for the built-in python, but for the python3 installed through homebrew, I had to reinstall by: |
If you are on Apple M1, mac sure open terminal with Rosetta enabled. it will works fine. |
Can anyone explain why it happening and any common workarunds. It failed for me while running a script |
@jesphinpt details of why this is happening, and workarounds (also mentioned in this thread) can be found here: |
Thanks for you reply. But in my case it not failing in Python. It fails in
an another script. Could you please let me know common usecase for the zsh
killed error in M1 model?
…On Wed, Jul 28, 2021 at 3:35 PM Paul Jefferson ***@***.***> wrote:
@jesphinpt <https://github.com/jesphinpt> details of why this is
happening, and workarounds (also mentioned in this thread) can be found
here:
pypa/virtualenv#2023 <pypa/virtualenv#2023>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4502 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQAIH37NNTQESCGW2OHJA73TZ7JABANCNFSM4TBLJAEQ>
.
|
(I'm not For you case, it is a bit off-topic for this thread. Perhaps post a question in Stack Overflow (or similar) but provide as much information about the script and how you are running it as you are able. I would also check logs in |
Works like a charm, @lykhatskyi , thanks! ❤️ But @pxul , according to your comment, creating the virtualenv with symlinks would be the preferred solution?
|
@nemoDreamer sadly not, according to these two comments the limitation comes from the inability to update pypa/virtualenv#2023 (comment) As such, even when the |
😢 |
I hit this issue. FWIW dropping back to
|
I question keeping this issue open, given that python 2.7 support has ended and it is not a supported language version any longer on the pipenv pypi page. It would require running old versions of pipenv, which would have whatever behaviors they have. Then you famous people trying to run py2 stuff on M1 macs, I just don't know about it, but it sounds like an awful idea. Happy holidays everyone; I'm glad there is some work arounds for your issues but I am closing this one as it doesn't feel like an actionable pipenv issue. |
What does that mean? |
Ah sorry -- I had spent too many hours looking at pipenv issues that day, I was amused to see so many names I recognized on this thread but probably didn't need to add that remark. |
here is the soloution https://youtu.be/dWC4xAdbko8 |
If anyone still facing this issue then follow below steps:
2)create virtual env with python Note:- i386 to execute x86_64 architecture dependencies (where python2.x works on) |
alias python3="/usr/bin/python3" Use this in your terminal. It should work now. |
Manually updating to python version 2.7.18 also worked for me, don't brew install. |
zsh: killed python
while executing from virtualenv on macOS Big Sur (platform: arm64) for Python 2.7It is working fine for Python 3.8
Expected result
Python Shell should launch from virtual env shell.
On using
pipenv sync
should install dependencies.Actual result
zsh: killed python
. Python shell is not launched.Steps to replicate
This works perfectly fine with if I use
pipenv install --python 3.8
See details of platform and Python version below (skipped sys env variables)
$ pipenv --support
Pipenv version:
'2020.8.13'
Pipenv location:
'/Users/ab/Library/Python/2.7/lib/python/site-packages/pipenv'
Python location:
'/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'
Python installations found:
3.8.2
:/usr/bin/python3
2.7.16
:/usr/bin/python2.7
2.7.16
:/usr/bin/python2
PEP 508 Information:
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/ab/Library/Python/2.7/bin
SHELL
:/bin/zsh
LANG
:en_US.UTF-8
The text was updated successfully, but these errors were encountered: