elegant-dress-32875
02/08/2023, 7:05 PMFULL_IMAGE. I get the following error:
2023-02-08 11:58:43.479 [1301/run_subsystem_with_bag/9070 (pid 8798)] [26f877a1-b061-4801-9954-86bb440d2ead] File "/metaflow/bag_evaluator.py", line 17, in evaluate_bag
2023-02-08 11:58:43.479 [1301/run_subsystem_with_bag/9070 (pid 8798)] [26f877a1-b061-4801-9954-86bb440d2ead] import rosbag
2023-02-08 11:58:43.479 [1301/run_subsystem_with_bag/9070 (pid 8798)] [26f877a1-b061-4801-9954-86bb440d2ead] ModuleNotFoundError: No module named 'rosbag'
However, if I can docker run FULL_IMAGE locally, run python and import rosbag no problem. Any idea why this would work locally and fail in the cloud?crooked-jordan-29960
02/08/2023, 7:09 PMrosbag installed? Hypothesis is the local run is picking up from the active env on the machine that launched the flow, but that env wouldn't be active on remote.ancient-application-36103
02/08/2023, 7:11 PMelegant-dress-32875
02/08/2023, 7:12 PM@batch decorator of the flow. I.e. the flows stage has
@batch(cpu=8, memory=24576, image=FULL_IMAGE)
# @retry
@step
and locally i am running docker run ... FULL_IMAGE...
root@d1979d8cff2f:/# python
Python 3.9.16 (main, Feb 8 2023, 17:58:19)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rosbag
Failed to load Python extension for LZ4 support. LZ4 compression will not be available.elegant-dress-32875
02/08/2023, 7:16 PMcommand is executed with python -u bag-replay.py , so im not understanding why running python locally in the container vs in the cloud would be differentelegant-dress-32875
02/08/2023, 7:18 PMsh as the entry command instead of bash , then running the same python instructions i get
# python
Python 3.9.16 (main, Feb 8 2023, 17:58:19)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rosbag
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'rosbag'
!!!square-wire-39606
02/08/2023, 8:26 PMelegant-dress-32875
02/09/2023, 9:42 PM