I am not new to Julia, but I struggle every time I have to use Python, since I feel that I have so many versions of Python installed (Anaconda, Conda, Conda.jl), that I am not sure when which version is called.
If I just follow the Quarto installation instructions (Quarto installed with Homebrew)
and have a minimal file like
# Hi
```{julia}
println("Hi")
```
as test.qmd
calling (in the same folder) quarto render test.qmd
yields
Starting julia-1.8 kernel...Traceback (most recent call last):
File "/Applications/quarto/share/jupyter/jupyter.py", line 21, in <module>
from notebook import notebook_execute, RestartKernel
File "/Applications/quarto/share/jupyter/notebook.py", line 17, in <module>
from nbclient import NotebookClient
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/nbclient/__init__.py", line 6, in <module>
from .client import NotebookClient, execute # noqa: F401
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/nbclient/client.py", line 14, in <module>
from jupyter_client import KernelManager
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/jupyter_client/__init__.py", line 6, in <module>
from .asynchronous import AsyncKernelClient # noqa
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/jupyter_client/asynchronous/__init__.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/jupyter_client/asynchronous/client.py", line 6, in <module>
from jupyter_client.channels import HBChannel
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/jupyter_client/channels.py", line 12, in <module>
import zmq.asyncio
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/__init__.py", line 103, in <module>
from zmq import backend
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/__init__.py", line 32, in <module>
raise original_error from None
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/__init__.py", line 27, in <module>
_ns = select_backend(first)
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/select.py", line 32, in select_backend
mod = import_module(name)
File "/Users/ronnber/.julia/conda/3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (
ImportError: dlopen(/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/cython/constants.cpython-38-darwin.so, 0x0002): tried: '/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/cython/constants.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/cython/constants.cpython-38-darwin.so' (no such file), '/Users/ronnber/.julia/conda/3/lib/python3.8/site-packages/zmq/backend/cython/constants.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
sadly, I usually fight so much getting Python stuff to run at all, that I am a little lost where to start checking what is going wrong here. Any tipps would be helpful. It seems itβs an x86 Python and I need an M1-one on my Mac? How would I tell that to Conda.jl?