Scientific Computing with Python Projects - Budget App


anyone can help me with this problem? it says cannot import name create_spend_chart

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

got it, please check it again

Do you have a create_spend_chart function in budget.py?

Can you please link to your replit?

boilerplate-budget-app - Replit this is my replit, and yes i have

Have you updated the code? I get a different error when I run it:

Traceback (most recent call last):
  File "/home/runner/Jigs-stack-budget-app/main.py", line 22, in <module>
    print(create_spend_chart([food, clothing, auto]))
TypeError: create_spend_chart() missing 1 required positional argument: 'categories'

Is this the same as what you’re getting?

Edit: I’ll add, is create_spend_chart a class or a function?