https://pulumi.com logo
#python
Title
h

hallowed-animal-47023

01/02/2022, 6:56 PM
Anyone running Pulumi on M1 Mac ? Ran into this guy, curious if anyone has worked around it yet. Have been doing some research and not seeing a ton.
python3.9/site-packages/grpc/_cython/cygrpc.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_CFRelease'
b

billowy-army-68599

01/02/2022, 7:30 PM
don't think I've seen that one, would you mind opening an issue?
h

hallowed-animal-47023

01/02/2022, 7:36 PM
Certainly, was running under the assumption I may be doing something wrong but I don't see anything in the #python channel with anyone mentioning running on M1
Will do in a bit, appreciate the quick outreach
@billowy-army-68599 - Going to dig around first a bit more, just getting back to looking at this. It doesn't appear to be a "pulumi" issue - more of a package issue for grpc. So I'm a bit hesitant to submit the issue since it may be an issue with a supporting package. Let me know if you think it's still worth submitting
b

billowy-army-68599

01/02/2022, 9:02 PM
I believe it is, especially if other's might run into it and we find a fix
h

hallowed-animal-47023

01/02/2022, 9:04 PM
Alright, I'll submit one tonight. I'm going to just do a little more poking around to make sure I'm not doing something wrong. I'm just surprised no one else ran into this on an M1 Mac yet
Tried playing around a bit more with it, everything on my end seems lined up and fine.
p

prehistoric-activity-61023

01/03/2022, 9:06 AM
I wish I had M1 so I can try to reproduce it. I might ask a friend of mine to check it or try to utilise machines available on GH Actions (their
macos-11
machine is M1 AFAIR).
h

hallowed-animal-47023

01/03/2022, 2:53 PM
I wish you had one too!
Thanks for the link, will check it out
Hey @billowy-army-68599/@prehistoric-activity-61023 - appears the issue was from running any Python above 3.8.9
I just did a clean wipe and started from 3.8.9 Python, base version that ships with M1 mac.
No problem
So I'm guessing something with 3.9+ is an issue ? Want me to close out that issue or leave it for further investigation with higher versions of Python
p

prehistoric-activity-61023

01/03/2022, 8:49 PM
hah, nice debugging!
h

hallowed-animal-47023

01/03/2022, 8:50 PM
Ha, yeah some guy on a DevOps discord with an M1 was able to run it
p

prehistoric-activity-61023

01/03/2022, 8:50 PM
so the question was: how so, right? 😉
h

hallowed-animal-47023

01/03/2022, 8:51 PM
I'm betting the higher versions of Python aren't compatible with all the packages or something
But..I'm not going to mess with anything
I got this working which is what I needed 😆
p

prehistoric-activity-61023

01/03/2022, 8:51 PM
anyway, I wouldn’t close it as we still don’t know whether it’s pulumi issue or python/grpc related bug
h

hallowed-animal-47023

01/03/2022, 8:51 PM
Sure, will leave it open
Appreciate the help by all!
p

prehistoric-activity-61023

01/03/2022, 8:51 PM
just edit it so it clearly states you have to use python 3.9+
@hallowed-animal-47023 are you using rosetta in your terminal session?
h

hallowed-animal-47023

01/03/2022, 8:54 PM
I was not
And am not currently*
p

prehistoric-activity-61023

01/03/2022, 8:57 PM
I’m asking cause I’m afraid it might be related to that (arm vs x64)
Can you run:
Copy code
>>> import platform
>>> platform.machine()
'x86_64'
and paste the output here so I won’t have to bother you later?
h

hallowed-animal-47023

01/03/2022, 9:02 PM
sure
Copy code
Python 3.9.9 (main, Nov 21 2021, 03:16:13)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.machine()
'arm64'
>>>
wait
huh
let me make sure it still works
only thing i've done since earlier was install pycharm, unsure if that updated my python version
But it appears to still work
(._.) <--- me right now
p

prehistoric-activity-61023

01/04/2022, 10:03 AM
(._.)
My current guess is: corrupted/invalid python venv. When you install pycharm, maybe, maybe it recreate the venv? (but why should it do that)
anyway, it looks like it’s not really related to python version
if you manage to repro it again, please add a comment to the issue
h

hallowed-animal-47023

01/04/2022, 1:34 PM
Will do