View Single Post
  #1  
Old 11-29-2012, 03: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