Wie rufe ich Setup () -Methode aus dem Nicht-Main-Thread in der PY_TREES-Bibliothek auf?Python

Python-Programme
Anonymous
 Wie rufe ich Setup () -Methode aus dem Nicht-Main-Thread in der PY_TREES-Bibliothek auf?

Post by Anonymous »

Ich nenne setup ()

Code: Select all

ValueError: signal only works in main thread
Wie kann man damit umgehen, ohne setup () im Haupt -Thread zu übertragen?

Code: Select all

    File "/usr/src/***/***/***/behavior_trees/tree.py", line 40, in test_tree
behaviour_tree.setup(timeout=15.0)
│              └ 
└ 

File "/usr/local/lib/python3.8/site-packages/py_trees/trees.py", line 324, in setup
setup(
└ 
File "/usr/local/lib/python3.8/site-packages/py_trees/trees.py", line 109, in setup
signal.signal(
│      └ 
└ 
File "/usr/local/lib/python3.8/signal.py", line 47, in signal
handler = _signal.signal(_enum_to_int(signalnum), _enum_to_int(handler))
│       │      │            │           │            └ functools.partial(, original_signal_handler=)
│       │      │            │           └ 
│       │      │            └ 
│       │      └ 
│       └ 
└ 

ValueError: signal only works in main thread

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post