Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The e2b example runs incorrectly #1192

Open
yunweifu opened this issue Apr 10, 2024 · 0 comments
Open

The e2b example runs incorrectly #1192

yunweifu opened this issue Apr 10, 2024 · 0 comments

Comments

@yunweifu
Copy link

yunweifu commented Apr 10, 2024

Describe the bug

When I want to test the e2b example, I found the following error would be reported when running.

   {'role': 'user', 'type': 'message', 'content': 'a test'}

Traceback (most recent call last):
File "/Users/eric/Desktop/py/codeinterpreter/e2b_test.py", line 56, in
interpreter.chat()
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/core.py", line 167, in chat
for _ in self._streaming_chat(message=message, display=display):
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/core.py", line 196, in _streaming_chat
yield from terminal_interface(self, message)
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/terminal_interface/terminal_interface.py", line 136, in terminal_interface
for chunk in interpreter.chat(message, display=False, stream=True):
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/core.py", line 235, in _streaming_chat
yield from self._respond_and_store()
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/core.py", line 281, in _respond_and_store
for chunk in respond(self):
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/respond.py", line 36, in respond
output = interpreter.computer.run(
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/computer/computer.py", line 65, in run
return self.terminal.run(*args, **kwargs)
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/computer/terminal/terminal.py", line 55, in run
for chunk in self._streaming_run(language, code, display=display):
File "/Users/eric/mambaforge/lib/python3.10/site-packages/interpreter/core/computer/terminal/terminal.py", line 77, in _streaming_run
if lang_class.init.code.co_argcount > 1:
AttributeError: 'wrapper_descriptor' object has no attribute 'code'. Did you mean: 'call'?

Reproduce

1.copy the demo from https://docs.openinterpreter.com/integrations/e2b;
2.run

Expected behavior

AttributeError: 'wrapper_descriptor' object has no attribute 'code'. Did you mean: 'call'?

Screenshots

No response

Open Interpreter version

Version: 0.2.4

Python version

3.10.10

Operating System name and version

macOS14

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant