Git Product home page Git Product logo

Comments (4)

zhc7 avatar zhc7 commented on August 19, 2024

maybe py39 can fix your problem.

from agentbench.

cyente avatar cyente commented on August 19, 2024

I try py39 but It seems does not work.

  File "/mnt/workspace/xxx/pythonfile/download/AgentBench/src/task.py", line 94, in call_wrap
    result = self.predict_single(session, data_item)
  File "/mnt/workspace/xxx/pythonfile/download/AgentBench/src/tasks/webshop/__init__.py", line 115, in predict_single
    self.processes[i][0].send((data_item, session, sender))
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/multiprocess/connection.py", line 209, in send
    self._send_bytes(_ForkingPickler.dumps(obj))
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/multiprocess/reduction.py", line 54, in dumps
    cls(buf, protocol, *args, **kwds).dump(obj)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 418, in dump
    StockPickler.dump(self, obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 487, in dump
    self.save(obj)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 886, in save_tuple
    save(element)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 603, in save
    self.save_reduce(obj=obj, *rv)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 717, in save_reduce
    save(state)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1212, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 971, in save_dict
    self._batch_setitems(obj.items())
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 997, in _batch_setitems
    save(v)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1965, in save_function
    _save_with_postproc(pickler, (_create_function, (
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1112, in _save_with_postproc
    pickler.save_reduce(*reduction)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 692, in save_reduce
    save(args)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 886, in save_tuple
    save(element)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1453, in save_instancemethod0
    pickler.save_reduce(MethodType, (obj.__func__, obj.__self__), obj=obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 692, in save_reduce
    save(args)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 886, in save_tuple
    save(element)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 603, in save
    self.save_reduce(obj=obj, *rv)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 717, in save_reduce
    save(state)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1212, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 971, in save_dict
    self._batch_setitems(obj.items())
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 997, in _batch_setitems
    save(v)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 603, in save
    self.save_reduce(obj=obj, *rv)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 717, in save_reduce
    save(state)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1212, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 971, in save_dict
    self._batch_setitems(obj.items())
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 997, in _batch_setitems
    save(v)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 603, in save
    self.save_reduce(obj=obj, *rv)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 717, in save_reduce
    save(state)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 560, in save
    f(self, obj)  # Call unbound method with explicit self
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 1212, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 971, in save_dict
    self._batch_setitems(obj.items())
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 997, in _batch_setitems
    save(v)
  File "/opt/conda/envs/py39/lib/python3.9/site-packages/dill/_dill.py", line 412, in save
    StockPickler.save(self, obj, save_persistent_id)
  File "/opt/conda/envs/py39/lib/python3.9/pickle.py", line 578, in save
    rv = reduce(self.proto)
TypeError: cannot pickle 'builtins.CoreBPE' object

from agentbench.

zhc7 avatar zhc7 commented on August 19, 2024

can you post your environment details? with conda list.

from agentbench.

Longin-Yu avatar Longin-Yu commented on August 19, 2024

We have released v0.2, welcome to have a try!
And feel free to reopen this issue if any problem still exists.

from agentbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.