Maggie Walker
08/30/2022, 10:47 AM./pw demo
-- specifically I get stuck in pw
on
env_builder.create(venv_dir)
the error comes from here
/Users/walk003/orchard/collab/mwalker/cerbos/demo-python/.pyprojectx/pyprojectx/0.9.9-py3.8/bin/python3 -Im ensurepip --upgrade --default-pip
and I get
zsh: killed -Im ensurepip --upgrade --default-pip
I'm working in a new M1 macbook, and I've heard there's funkiness with python/pip + M1 -- have you all encountered anything similar?Charith (Cerbos)
Maggie Walker
08/30/2022, 10:56 AMCharith (Cerbos)
Maggie Walker
08/30/2022, 10:59 AMMaggie Walker
08/30/2022, 10:59 AMCharith (Cerbos)
pw
as well. Let me investigate a bit more and get back to you.Maggie Walker
08/30/2022, 11:01 AMMaggie Walker
08/30/2022, 11:01 AMMaggie Walker
08/30/2022, 11:06 AMReferenced from: '/Users/walk003/orchard/collab/mwalker/cerbos/demo-python/.pyprojectx/pyprojectx/0.9.9-py3.8/bin/python3'
Reason: tried: '/Users/walk003/orchard/collab/mwalker/cerbos/demo-python/.pyprojectx/pyprojectx/0.9.9-py3.8/bin/../Python3' (no such file), '/usr/local/lib/Python3' (no such file), '/usr/lib/Python3' (no such file)
zsh: abort -Im ensurepip --upgrade --default-pip
Charith (Cerbos)
Maggie Walker
08/30/2022, 11:07 AMMaggie Walker
08/30/2022, 11:07 AMpyenv versions
* system (set by /Users/walk003/.pyenv/version)
3.8.13
3.10.0
Charith (Cerbos)
pw
script is getting confused by that. It's mainly a wrapper for setting up an isolated Python environment. You already have one from Pyenv from the sound of it. Do you have the pdm
build tool installed? If so, you can just do pdm run python main.py
Maggie Walker
08/30/2022, 11:12 AMMaggie Walker
08/30/2022, 11:13 AMpdm run python main.py
worksMaggie Walker
08/30/2022, 11:16 AMFile "/Users/walk003/orchard/collab/mwalker/cerbos/demo-python/main.py", line 7, in <module>
import emoji
ModuleNotFoundError: No module named 'emoji'
Charith (Cerbos)
pdm install
Maggie Walker
08/30/2022, 11:16 AMMaggie Walker
08/30/2022, 11:17 AMCharith (Cerbos)
Maggie Walker
08/30/2022, 11:18 AMCharith (Cerbos)