Comments (10)
Yes i see that thanks 👍
from mindflow.
Hi @khanakia! Can you please explain how I can reproduce this error? What command did you run to install, from where, and then how did you run the program?
from mindflow.
Hi
i tried running with the following commands
python mindflow/main.py
python -m mindflow.main
So i modified this file mindflow/main.py
from mindflow.cli.new_click_cli.cli_main import mindflow_cli
if __name__ == "__main__":
mindflow_cli()
and now it's working when i run python -m mindflow.main
So i believe you should update the mindflow/main.py
or is there another way to run without actually modifying the code ?
from mindflow.
Oh - Actually, my bad. It makes sense why this fixed it as this main.py file is no longer used by the CLI once we switched to using click. I think you get the same results by running mindflow/cli/new_click_cli/cli_main.py
as well. This is the entry using by the command bindings with mf
and mindflow
were you to install the package.
from mindflow.
Will remove this file in the next release.
from mindflow.
I tried running as you suggested that won't work. Can you provide the command so i can run mindflow/cli/new_click_cli/cli_main.py
➜ mindflow git:(main) ✗ python mindflow/cli/new_click_cli/cli_main.py
Traceback (most recent call last):
File "/Users/khanakia/Downloads/ai/mindflow/mindflow/cli/new_click_cli/cli_main.py", line 3, in <module>
from mindflow.cli.new_click_cli.commands.git.add import add
ModuleNotFoundError: No module named 'mindflow'
➜ mindflow git:(main) ✗ python -m mindflow/cli/new_click_cli.main
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3: Error while finding module specification for 'mindflow/cli/new_click_cli.main' (ModuleNotFoundError: No module named 'mindflow/cli/new_click_cli')
from mindflow.
Hmm. Maybe try installing the package with pip install mindflow
or pip install -e .
to install locally. Then run mf
to see if it install properly. A help screen with a list of commands should then show up.
from mindflow.
So when I tried to reproduce this locally, I ran into the same issue when I just install requirement.txt
and then run the program like you did above. Once I ran pip installl -e .
from the head of the repo, it was able to recognize the mindflow module and it worked.
from mindflow.
But how do i run in development mode as i want to make the changes and then test it.
So i will have to reinstall it everytime i make changes to the code ?
from mindflow.
No! You should be able to make changes and test if you clone the repo and install with pip install -e .
. When you run commands with mf
or mindflow
, it will execute the code in your cloned repo on your current branch.
from mindflow.
Related Issues (19)
- need to fix conversation overflowing based on hard token limit HOT 1
- Need more explanations on how Indexing works HOT 4
- make mf diff faster, add progress bar HOT 1
- TEST ISSUE
- add docs to functions (Args, Returns, Raises) (if any)
- mf login {OPENAI_API_KEY} results in empty .config/mindflow/DB.json on MacOS HOT 10
- I get an error like this when i want to use mindflow HOT 3
- Can I change the openai api endpoint? HOT 7
- Mypy Coroutine type issue
- Fix lazy initialization of configurable objects as properties HOT 1
- Embeddings at inference HOT 1
- Testing HOT 1
- Fix outputs
- Get GPT 3.5. Turbo 0301 working.
- Test everything
- Configuration menu is only working for MacOS HOT 1
- Cleanup requirements.txt HOT 1
- getting No index for requested hashes. Please generate index for passed content. HOT 1
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 mindflow.