Comments (6)
This is a weird one. We have an unconventional setup with the CLI to keep things simple for Python users:
When the user starts the CLI, poetry will run interpreter.cli()
.
interpreter
is an instance of the Interpreter
class in interpreter.py, which has a method called cli
.
What's nice about having the instance as the module, is that when Python users run import interpreter
they get an instance of interpreter, which is way more intuitive to me.
But this means we risk circular imports and other weird stuff like this.
ChatGPT is telling me that some systems import things in different orders, and this could be causing the problem.
Let me get back to you on this one. Thanks for opening an issue @antondkv.
from open-interpreter.
same on windows
from open-interpreter.
This is a weird one. We have an unconventional setup with the CLI to keep things simple for Python users:
When the user starts the CLI, poetry will run
interpreter.cli()
.interpreter
is an instance of theInterpreter
class in interpreter.py, which has a method calledcli
.What's nice about having the instance as the module, is that when Python users run
import interpreter
they get an instance of interpreter, which is way more intuitive to me.But this means we risk circular imports and other weird stuff like this.
ChatGPT is telling me that some systems import things in different orders, and this could be causing the problem.
Let me get back to you on this one. Thanks for opening an issue @antondkv.
I managed solve it just by removing the dot . from .cli to from cli
from open-interpreter.
I managed solve it just by removing the dot . from .cli to from cli
remove dot from interpreter.py . from .cli to from cli
from open-interpreter.
Thanks @uthpala1000 and @antondkv. This is so weird, it's the opposite for me (breaks if I remove the dot). Is there any precedent for doing something like this?
try:
from .cli import cli
except:
from cli import cli
Have either of you seen something like this before / know what's going on?
from open-interpreter.
@KillianLucas, thank you for the reply! I have already re-installed the module using the Python --user ENV instead of the root one, and this problem has disappeared for me
from open-interpreter.
Related Issues (20)
- AttributeError: module 'interpreter' has no attribute 'chat' HOT 2
- Support for Llamafiles instead (or in addition to) LM Studio HOT 2
- 'Unrecognized request argument supplied: functions' when using azure-openai HOT 2
- Inquiry about Your Project's Promotional Video Creation
- Object of type set is not JSON serializable HOT 1
- Quitting an interpreter session with CTRL-D causes an ugly traceback HOT 2
- Content size exceeds 20 MB HOT 1
- 'interpreter' is not recognized as an internal or external command, operable program or batch file. HOT 4
- Run commands often missing 2 characters, and repeatedly fails HOT 1
- No such file or directory: 'screencapture' HOT 5
- Please add how to properly delete Open-interpreter. Previous Request Closed with no solution HOT 5
- Perplexity API - Looking for Open AI API Key? HOT 2
- Help!! HOT 2
- copy code button
- KeyError: 'XDG_SESSION_TYPE' on startup HOT 2
- Vertex with Gemini Pro
- Continuous Chat
- Google AI Studio Api Support HOT 1
- Cannot access or excute files on the user's mchine linux 22.04 open-interpreter HOT 4
- OPENAI_BASE_API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-interpreter.