陳冠廷 CHEN, GUANTING Greetings & Welcome to Microsoft Q&A forum!
Based on the error message you provided, it seems like you are trying to use the
k4a module in your program, but it is not recognizing the
Device attribute. This error usually occurs when the module is not installed or not imported correctly.
To solve this issue, please make sure that you have installed the
k4a module correctly. You can install it using pip by running the following command in your terminal:
pip install k4a
Also, make sure that you have imported the module correctly in your code. You can import it using the following statement:
If you have already installed the module and imported it correctly, then the issue might be related to the version of the module. Please make sure that you have installed the latest version of the
If the issue still persists, please provide me with more information about your code and the environment you are working in, it helps us to provide better solution.