Skip to content

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

@johnwhalen

Description

@johnwhalen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions