Hi team, I'm running metaflow ray example on Mac a...
# ask-metaflow
b
Hi team, I'm running metaflow ray example on Mac arm and facing this error
FileNotFoundError: [Errno 2] No such file or directory: '$MF_ARCH/5e78d8136bd30a8/bin/python -s'
I run this command
AWS_ACCESS_KEY_ID=minioadmin AWS_SECRET_ACCESS_KEY=minioadmin python basic_counter/flow.py --no-pylint --environment=pypi run
a
hi! let me check! meanwhile can you use a slightly older version of metaflow?
maybe 2.14.4?
can you help me with your local setup so that i can try to reproduce?
b
yes, I will try with this version
I setup docker container with metaflow service + metaflow-ui and config datastorage as local s3 with minio
a
btw we have a brand new feature that sets it up for you out of the box
b
seems, not exist version 2.14.4. I tried with 2.14.3 and get same problem but different error
FileNotFoundError: [Errno 2] No such file or directory: 'linux-64/5e78d8136bd30a8/bin/python -s'
a
can you help me with your flow definition?
b
just a simple step like this, almost same with example on github
Copy code
@metaflow_ray
@pypi(packages={"ray": "2.39.0"})
@step
def execute(self):
   self._do_ray_job()
   self.next(self.join)
ah, I found the root cause. in this function need to set `num_parallel=1`seems metaflow ray does not support multi node on mac local ?
Copy code
@step
def start(self):
    self.next(self.execute, num_parallel=1)
h
can try setting num_parallel > 1 ?
b
default value in example code = 2 and I get the error. if I set 1, the flow run successfully
b
it is written in the readme
Copy code
However, when using the @metaflow_ray decorator in a standalone manner, the value of num_parallel cannot be greater than 1 (on Windows and macOS) because locally spun up ray clusters do not support multiple nodes unless the underlying OS is linux based.
👍 1
b
@brainy-truck-72938 I get same error if run multiple node on ubuntu host machine
Copy code
2025-03-05 15:10:01.160 [5/execute/17 (pid 13516)] File "/home/cuong007/micromamba/envs/metaflow/linux-64/1628e0b9cd19bf2/lib/python3.10/subprocess.py", line 1863, in _execute_child
2025-03-05 15:10:01.160 [5/execute/17 (pid 13516)] raise child_exception_type(errno_num, err_msg, err_filename)
2025-03-05 15:10:01.160 [5/execute/17 (pid 13516)] FileNotFoundError: [Errno 2] No such file or directory: '$MF_ARCH/1628e0b9cd19bf2/bin/python -s'
b
Can you paste your flow if it is not confidential? Otherwise you can paste a dummy flow with the same structure
b
b
can you try deleting the local environment that metaflow created..
Copy code
rm -rf ~/micromamba/envs/metaflow/linux-64/*
b
still error 😂
b
can you check if the following file exists..
~/micromamba/envs/metaflow/linux-64/1628e0b9cd19bf2/bin/python
b
yes, it exists.
👍 1
b
the issue is that
MF_ARCH
is not being replaced with
linux-64
correctly.. it was changed here recently... https://github.com/Netflix/metaflow/commit/dd6588261bc92fb19347208700f9d6f4c4a0b3d6#diff-9799b4832285c0778c0fd10b8[…]882509176b1be4a34bb76d5a48eL245 CC: @ancient-application-36103
b
seems the change relates to
@pypi
should I try with
@conda
?
b
Yeah, no harm in trying once
b
😂 same error with
@conda
b
Thanks, this is likely a bug, we will have a look.
👍 1