Code Monkey home page Code Monkey logo

Comments (10)

khanakia avatar khanakia commented on July 18, 2024 1

Yes i see that thanks 👍

from mindflow.

steegecs avatar steegecs commented on July 18, 2024

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.

khanakia avatar khanakia commented on July 18, 2024

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.

steegecs avatar steegecs commented on July 18, 2024

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.

steegecs avatar steegecs commented on July 18, 2024

Will remove this file in the next release.

from mindflow.

khanakia avatar khanakia commented on July 18, 2024

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.

steegecs avatar steegecs commented on July 18, 2024

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.

steegecs avatar steegecs commented on July 18, 2024

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.

khanakia avatar khanakia commented on July 18, 2024

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.

steegecs avatar steegecs commented on July 18, 2024

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)

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.