OpenBMB / ChatDev

Create Customized Software using Natural Language Idea (through LLM-powered Multi-Agent Collaboration)
https://arxiv.org/abs/2307.07924
Apache License 2.0
25.58k stars 3.22k forks source link

can not create django project which need sub folder structure. #343

Closed vfyang closed 6 months ago

vfyang commented 9 months ago

It seems the code complete for command: python run.py --task "Develop a Django-based website for managing checklists with an integrated user and task management system. Each task should include: Title, Description, Priority Level,Assignment, Ending Date. Utilize Bootstrap and Vue.js. blue color theme. make sure all the django folder structure are setup correctly, and the main entrance python file should be manage.py instead of main.py" --name "Task_django_sub" --model "GPT_4_32K"

The code completed, but not able to run.
By looking at result files, django project need to have structures:

  1. Make sure your folder structure looks something like this:
    myproject/
    manage.py
    myproject/
        __init__.py
        settings.py
        urls.py
        asgi.py
        wsgi.py
    myapp/
        migrations/
            __init__.py
        static/
        templates/
        admin.py
        apps.py
        models.py
        tests.py
        views.py

bu all the result files are files are in same folder, not with sub-folder structure, ChatChainConfig.json PhaseConfig.json RoleConfig.json Task_django_sub.prompt Task_django_sub_DefaultOrganization_20240128233517.log base_generic.html custom.css main.py manual.md meta.txt models.py task_list.html urls.py views.py

while the code still using django code that requires subfolder in main.pyr: """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'checklist_project.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if name == 'main': main()

Also, the entry file is main.py insread of manage.py.

Error code when running... File "/Users/vincentyang/anaconda3/envs/chatdev/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 992, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'checklist_project'

Alphamasterliu commented 9 months ago

Hello! 😆 First off, thank you so much for taking the time to explore ChatDev. I wanted to share a bit about how--task "..." works in our system: It’s actually part of the Demand Analysis Phase in the ChatDev workflow, acting as a prompt for the subsequent Coding Phase. Based on what you've described, it sounds like your needs might fit better with some tweaks during the Documenting Phase towards the end of the process.

I also noticed you’re looking to create a website, which typically means working with HTML. If you're thinking about a specific folder structure, it might not align with traditional HTML presentations, and that's something we might need to think through together.

But, getting to the heart of your suggestion - the notion of defining file names, formats, and organizing folder structures is genuinely insightful for our product. We’re definitely taking note of this for potential enhancements. So, stay tuned for future updates, and again, thank you for your valuable feedback!

Alphamasterliu commented 9 months ago

By the way, if you are interested in continuing to experiment, you can refer to part of the answer at https://github.com/OpenBMB/ChatDev/issues/298. You can also join our Discord community to discuss in real time with other developers.

vfyang commented 9 months ago

Hi, Alpha,

Happy new year!

I. assume you are from Tsinghua team, I am also graduate there long time ago.

It really depends on what you want to do with this work. It’s an interesting concept and could have great potential.

However, if you are serious doing a program, you can not get away with major web platforms, and most of them have “file structure”. For python, dash (Flask), Django, and gradio are the ones prevalent and very useful.

For example, I am doing AI work for web users, I am interested in using this to develop some prototypes, and chatdev might be very useful to explore. Actually, I was trying to use it to drive some prototype for Photomaker, but did not success.

I use that to study AI multi-agent works, not specifically for programming. It’s can apply to healthcare and other fields. Or even art works.

For example, I created aigc-exp.vfyang.com, ai.vfyang.com, aigc.syncport.ai (I am working on this as of now, and it will photomaker + my template.). if I could use this chatdev to create a “prompt” then it will be able to give people advice. For example, how to create self photo using different attist style, using your own photo.

Anyway, thank for your team’s work, and very proud for you guys, (as an alumni). And I do have extensive programing background and architect experience. If there is anything I can help , pelase let me know.

Best.

龙年大吉,心想事成!

Vincent Yang

发件人: Alpha Liu @.> 日期: 星期二, 2024年2月6日 23:20 收件人: OpenBMB/ChatDev @.> 抄送: Zion Nations, 嘉楠神州 @.>, Author @.> 主题: Re: [OpenBMB/ChatDev] can not create django project which need sub folder structure. (Issue #343)

Hello! 😆 First off, thank you so much for taking the time to explore ChatDev. I wanted to share a bit about how --task "..." works in our system. It’s actually part of the Demand Analysis Phase in the ChatDev workflow, acting as a prompt for the subsequent Coding Phase. Based on what you've described, it sounds like your needs might fit better with some tweaks during the Documenting Phase towards the end of the process.

I also noticed you’re looking to create a website, which typically means working with HTML. If you're thinking about a specific folder structure, it might not align with traditional HTML presentations, and that's something we might need to think through together.

But, getting to the heart of your suggestion - the notion of defining file names, formats, and organizing folder structures is genuinely insightful for our product. We’re definitely taking note of this for potential enhancements. So, stay tuned for future updates, and again, thank you for your valuable feedback!

— Reply to this email directly, view it on GitHubhttps://github.com/OpenBMB/ChatDev/issues/343#issuecomment-1930033113, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADDYYHLUVYIEO33ZTY6UU53YSJC23AVCNFSM6AAAAABCOI7KTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGAZTGMJRGM. You are receiving this because you authored the thread.Message ID: @.***>

vfyang commented 9 months ago

谢谢。

发件人: Alpha Liu @.> 日期: 星期二, 2024年2月6日 23:40 收件人: OpenBMB/ChatDev @.> 抄送: Zion Nations, 嘉楠神州 @.>, Author @.> 主题: Re: [OpenBMB/ChatDev] can not create django project which need sub folder structure. (Issue #343)

By the way, if you are interested in continuing to experiment, you can refer to part of the answer at #298https://github.com/OpenBMB/ChatDev/issues/298. You can also join our Discord community to discuss in real time with other developers.

― Reply to this email directly, view it on GitHubhttps://github.com/OpenBMB/ChatDev/issues/343#issuecomment-1930076000, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADDYYHPW3LVQT3MQKPRZUETYSJFILAVCNFSM6AAAAABCOI7KTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGA3TMMBQGA. You are receiving this because you authored the thread.Message ID: @.***>

vfyang commented 8 months ago

我的photomaker 已经上线,可以按自己照片生成头像。 Gradio (syncport.ai)http://aigc.syncport.ai/ http://aigc.syncport.ai 这里面模版有一定规律,可以像ChatDev一样生成一个在线设计师。

发件人: Alpha Liu @.> 日期: 星期二, 2024年2月6日 23:40 收件人: OpenBMB/ChatDev @.> 抄送: Zion Nations, 嘉楠神州 @.>, Author @.> 主题: Re: [OpenBMB/ChatDev] can not create django project which need sub folder structure. (Issue #343)

By the way, if you are interested in continuing to experiment, you can refer to part of the answer at #298https://github.com/OpenBMB/ChatDev/issues/298. You can also join our Discord community to discuss in real time with other developers.

― Reply to this email directly, view it on GitHubhttps://github.com/OpenBMB/ChatDev/issues/343#issuecomment-1930076000, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADDYYHPW3LVQT3MQKPRZUETYSJFILAVCNFSM6AAAAABCOI7KTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZQGA3TMMBQGA. You are receiving this because you authored the thread.Message ID: @.***>