Tkinter canvas create_line does not create line but instead returns 5 mysteriously

i am trying to create a 3d viewer using tkinter canvas. It uses create_line function for recreating lines to make the object appear 3d, when i had to test the code then i gave commands for making a rectangle, however the last line for creating the bottom line in picture does not work, when i changed from script to interactive mode and typed the command canvas.create_line(134,401,234,401) then it returns 5. Can anyone tell how to fix this?(i want to see the line on the canvas and stop getting 5 as return value for no reason)