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 Code:
import B Code:
import A Exception TypeError: "'NoneType' object is not callable" in Appreciate any hints, ideas and even solutions... BR Walter |
The next release of Vizard should prevent this exception from occurring. Either way, it would be best if you could prevent the circular import. Can you place the status field in the B module?
|
Hi farshizzo,
thanks for this idea. From a conceptual viewpoint, the status variable belongs to module A, as the status is updated there. Module B only references the status, and was designed to only be an optional module. Being practical, I agree that this should solve the problem. Thank you. BR Walter |
All times are GMT -7. The time now is 12:22 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC