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

docs: New AWEL tutorial #1245

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

fangyinc
Copy link
Collaborator

@fangyinc fangyinc commented Mar 4, 2024

Description

New AWEL tutorial.

image

How Has This Been Tested?

cd docs
rm -rf node_modules/
npm i
npm run start

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 4, 2024
@csunny
Copy link
Collaborator

csunny commented Mar 4, 2024

It works and is cool. 🚀🚀 🎉

image

Copy link
Collaborator

@csunny csunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@csunny
Copy link
Collaborator

csunny commented Mar 4, 2024

There is a problem here. Our dbgpt package does not have other modules such as app. when we use pip install dbgpt and start dbgpt server use command python dbgpt/app/dbgpt_server.py

The error will occur

  File "/Users/magic/workspace/github/eosphoros-ai/DB-GPT/dbgpt/app/dbgpt_server.py", line 15, in <module>
    from dbgpt.app.base import (
ModuleNotFoundError: No module named 'dbgpt.app'

@fangyinc

@fangyinc
Copy link
Collaborator Author

fangyinc commented Mar 4, 2024

There is a problem here. Our dbgpt package does not have other modules such as app. when we use pip install dbgpt and start dbgpt server use command python dbgpt/app/dbgpt_server.py

The error will occur

  File "/Users/magic/workspace/github/eosphoros-ai/DB-GPT/dbgpt/app/dbgpt_server.py", line 15, in <module>
    from dbgpt.app.base import (
ModuleNotFoundError: No module named 'dbgpt.app'

@fangyinc

The app is not within the scope of the dbgpt sdk and currently does not support starting dbgpt_server.py in this way.

@fangyinc
Copy link
Collaborator Author

fangyinc commented Mar 4, 2024

@csunny This all content in dbgpt:

dbgpt
├── __init__.py
├── _private
├── _version.py
├── cli
├── component.py
├── configs
├── core
├── model
└── util

@fangyinc
Copy link
Collaborator Author

fangyinc commented Mar 4, 2024

@csunny This all content in dbgpt:

dbgpt
├── __init__.py
├── _private
├── _version.py
├── cli
├── component.py
├── configs
├── core
├── model
└── util

@csunny
So do not mix it with the original method of using source code installation (pip install -e ".[default]").
We'd better use a new python environment to install dbgpt.

@csunny
Copy link
Collaborator

csunny commented Mar 4, 2024

@fangyinc ok, I got it.

Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Aries-ckt Aries-ckt merged commit 3c93fe5 into eosphoros-ai:main Mar 4, 2024
5 checks passed
@fangyinc fangyinc deleted the awel-tutorial branch March 4, 2024 09:23
csunny pushed a commit that referenced this pull request Mar 7, 2024
Hopshine pushed a commit to Hopshine/DB-GPT that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants