open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

linting errors and auto completion not working

Open Morriz opened this issue 1 year ago • 1 comments

Describe the bug

when I import interpreter and dointerpreter.extend_config(config_path=...) I get the following:

Module 'interpreter' has no 'extend_config' memberPylint[E1101:no-member](https://pylint.readthedocs.io/en/latest/user_guide/messages/error/no-member.html)

autocompletion also does not work

Reproduce

  1. import interpreter
  2. run interpreter.extend_config(config_path=...)
  3. observe the error

Expected behavior

no linting errors

Screenshots

No response

Open Interpreter version

0.1.15

Python version

3.11.2

Operating System name and version

macOS 14

Additional context

No response

Morriz avatar Nov 20 '23 06:11 Morriz

If I do this linting and completion works:

from interpreter import Interpreter

interpreter = Interpreter()

but I get execution error:

ImportError: cannot import name 'Interpreter' from '<unknown module name>' (unknown location)

Morriz avatar Nov 20 '23 06:11 Morriz

@Morriz please user lower case interpreter

Closing this stale issue. Please create a new issue if the problem is not resolved or explained in the documentation. Thanks!

MikeBirdTech avatar Mar 18 '24 20:03 MikeBirdTech