WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 32 votes, 4.38 average. Display Modes
  #1  
Old 05-16-2006, 01:48 PM
enkeli enkeli is offline
Member
 
Join Date: Mar 2006
Location: Isla Vista
Posts: 24
Exclamation

I just got an error even with the whrandom change...

Code:
rand = whrandom.whrandom()
Quote:
Traceback (most recent call last):
File "DecisonMaking.py", line 1114, in timer
viz.starttimer( TIMER_BLINK_CLOSE[ i ], rand.randrange( 3, 7 ) )
File "C:\Program Files\Vizard25\bin\lib\whrandom.py", line 115, in randrange
return istart + int(self.random() *
TypeError: 'int' object is not callable
Help?
Reply With Quote
  #2  
Old 05-16-2006, 05:04 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
The “TypeError: 'int' object is not callable” error message indicates that python expected a function in the place of an int object type. Perhaps there is a variable named int like in the following code.

Code:
import viz
viz.go()

int = 4
print int(1.1)
Reply With Quote
  #3  
Old 05-16-2006, 05:10 PM
enkeli enkeli is offline
Member
 
Join Date: Mar 2006
Location: Isla Vista
Posts: 24
In my code, there are no variables named "int"
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC