WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-29-2012, 02:27 AM
fordprefect fordprefect is offline
Member
 
Join Date: Oct 2012
Location: Vienna, Austria, Europe
Posts: 39
Exception in module vizjoy

Dear all,

while modifying our scripts I ran into an exception from the vizjoy module. While it is not much of a problem because the exception is thrown when closing the simulation, I'd like to get rid of it because it could obscure a true error. The programming goes like this:

script.py
Code:
import A
   :
A.go()
module A.py
Code:
import B
import vizjoy
   :
status = True
   :
def go():
     :
  B.start()
  status = ...
     :
  viz.go()
module B.py
Code:
import A

def start():
  """does some inits and install callbacks"""

def react():
  if A.status:
    :
I found no way around this circular import of modules because I need access to the current value of A.status in Module B. I tried a getter-Method in A but this also throw me this exception:

Exception TypeError: "'NoneType' object is not callable" in <bound method _JoystickCleanup_.__del__ of <vizjoy._JoystickCleanup_ instance at 0x04787418>> ignored

Appreciate any hints, ideas and even solutions...
BR Walter
__________________
21 is only half the truth.
Reply With Quote
 

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
'module' object is not callable??? tokola Vizard 2 11-21-2012 10:48 AM
physics engine exception ad_astra Vizard 3 03-25-2009 11:31 AM
Free data table GUI module Gladsomebeast Vizard 1 12-23-2008 11:30 AM
Fading/lightening-Problem and viz.go in module Johannes Vizard 6 09-02-2005 04:28 PM
vhil module vadrian Vizard 2 01-27-2005 11:52 AM


All times are GMT -7. The time now is 08:21 AM.


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