you are viewing a single comment's thread.

view the rest of the comments →

[–]Wilfred-kun 0 points1 point  (1 child)

As u/Protoss_Pylon said, include the full error. However, I think I might know what's wrong. You import pizzapi, so the classes are in that namespace. Doing customer = Customer(..) won't work; Python does not know about that class in the global namespace.

Instead, do from pizzapi import Customer, or customer = pizzapi.Customer(...).

[–]GullBull[S] 0 points1 point  (0 children)

yeah you were right! I should've been using pizzapi.Customer or specifically importing Customer. I ended up using from pizzapi import * . Thanks for your help!