Skip to content

Can't massage in thread #327

@gabrielhuang

Description

@gabrielhuang
  File "/Users/gabriel.huang/code/AgentLab/src/agentlab/experiments/study.py", line 319, in run
    self._run(n_jobs, parallel_backend, strict_reproducibility)
  File "/Users/gabriel.huang/code/AgentLab/src/agentlab/experiments/study.py", line 365, in _run
    self.benchmark.prepare_backends()
  File "/Users/gabriel.huang/code/BrowserGym/browsergym/experiments/src/browsergym/experiments/benchmark/base.py", line 96, in prepare_backends
    prepare_backend(backend)
  File "/Users/gabriel.huang/code/BrowserGym/browsergym/experiments/src/browsergym/experiments/benchmark/utils.py", line 124, in prepare_backend
    massage_tasks(
  File "/Users/gabriel.huang/code/BrowserGym/browsergym/experiments/src/browsergym/experiments/benchmark/utils.py", line 215, in massage_tasks
    outcome, err_msg = massage_task_within_subprocess(task_id=task_id, timeout=timeout)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gabriel.huang/code/BrowserGym/browsergym/experiments/src/browsergym/experiments/benchmark/utils.py", line 264, in massage_task_within_subprocess
    process.start()
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ^^^^^^^^^^^^^^^^^
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/context.py", line 289, in _Popen
    return Popen(process_obj)
           ^^^^^^^^^^^^^^^^^^
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/popen_spawn_posix.py", line 47, in _launch
    reduction.dump(process_obj, fp)
  File "/Users/gabriel.huang/mamba/envs/raa2/lib/python3.12/multiprocessing/reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't get local object 'massage_task_within_subprocess.<locals>.run_massage'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions