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

main.py ... from _crew_ import [projectname] or from _[projectname].crew import [Projectname] #4

Open
johnwhalen opened this issue Oct 20, 2024 · 1 comment

Comments

@johnwhalen
Copy link

johnwhalen commented Oct 20, 2024

Hi @tylerprogramming, in your third video (https://github.com/tylerprogramming/ai/tree/main/crewai_series/day_03) you mentioned you could start the main.py with:

import sys
from crew import [Projectanme]

rather than using the default from create crewai:

import sys
from [projectname].crew import [Projectname]

but I get a pylance error about resolving "crew" in the above statement. Is there anything else you change to make that work?
What are the consequences of leaving it?

Thank you for your thoughtfulness in producing these videos!

@tylerprogramming
Copy link
Owner

hey @johnwhalen I just took the recent update, and tested again yeah I had to remove the [projectname] before it:

import sys
from crew import TestCrew

I just did crewai create crew test, and then it created the test crew. I just removed the 'test.' from the second line above where it did say 'test.crew'.

would you mind copying the error here? I can see if something else may have happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants