Python Forum
error 'ring' is not a callable object
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error 'ring' is not a callable object
#2
(May-02-2017, 04:45 AM)JakeWitten Wrote:
    ring = ring(pos=s,axis=v,radius=1.0,color=color.red)

You're getting one ring, and then an error, because the first time through the loop you call ring()... and then overwrite the "ring" function by assigning something to the variable. Rename your variable (or just don't assign ring()'s output, since you don't use it anyway), and it might work.
Reply


Messages In This Thread
RE: error 'ring' is not a callable object - by nilamo - May-02-2017, 05:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting an error"Line 7: TypeError: 'int' object is not callable" JTNA 4 7,242 Apr-03-2019, 01:58 PM
Last Post: JTNA
  Integer object error Zatoichi 2 3,740 Feb-18-2018, 07:25 AM
Last Post: Zatoichi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020