smarthome test suite fails to execute - google-smart-home

I am trying to run the Google Smarthome automated tests on my service. I test retrieves my service's devices and traits correctly. However, when I start the test nothing happens. No timeouts, no errors, nothing.
In my web browser developer's view I see the following error from Google's test suite app. Could it be causing the test to fail to start? Is this a problem on my end or Google's?
ERROR a.split is not a function
Yh # app_compiled.js?523e…-6feac3eecc6b:18199
Zh.handleError # app_compiled.js?523e…-6feac3eecc6b:18199
next # app_compiled.js?523e…-6feac3eecc6b:18335
f # app_compiled.js?523e…-6feac3eecc6b:18316
g.ht # app_compiled.js?523e…-6feac3eecc6b:18293
g.next # app_compiled.js?523e…-6feac3eecc6b:18292
g.ba # app_compiled.js?523e…-6feac3eecc6b:18290
g.next # app_compiled.js?523e…-6feac3eecc6b:18290
g.next # app_compiled.js?523e…-6feac3eecc6b:18295
Ln.emit # app_compiled.js?523e…-6feac3eecc6b:18315
(anonymous) # app_compiled.js?523e…-6feac3eecc6b:18320
u.vb # app_compiled.js?523e…-6feac3eecc6b:18086
p.run # app_compiled.js?523e…-6feac3eecc6b:18078
Nn.Aa # app_compiled.js?523e…-6feac3eecc6b:18319
Nj # app_compiled.js?523e…-6feac3eecc6b:18320
u.handleError # app_compiled.js?523e…-6feac3eecc6b:18086
p.Zo # app_compiled.js?523e…-6feac3eecc6b:18079
t.gi # app_compiled.js?523e…-6feac3eecc6b:18088
p # app_compiled.js?523e…-6feac3eecc6b:18115
q # app_compiled.js?523e…-6feac3eecc6b:18115
load (async)
ia # app_compiled.js?523e…-6feac3eecc6b:18108
u.Xg # app_compiled.js?523e…-6feac3eecc6b:18086
mi # app_compiled.js?523e…-6feac3eecc6b:18169
u.Xg # app_compiled.js?523e…-6feac3eecc6b:18086
mi # app_compiled.js?523e…-6feac3eecc6b:18083
u.Xg # app_compiled.js?523e…-6feac3eecc6b:18086
p.Xg # app_compiled.js?523e…-6feac3eecc6b:18080
p.Es # app_compiled.js?523e…-6feac3eecc6b:18081
(anonymous) # app_compiled.js?523e…-6feac3eecc6b:18111
(anonymous) # app_compiled.js?523e…-6feac3eecc6b:18977
Show 36 more frames

To follow up here - the issue I had was I used the recommended definition for how to availableThermostatModes in the Sync request, which is a JSON area of strings.
Instead, I was asked to implement the deprecated representation format, which is a comma separated string. Once switching to the deprecated format the suite ran.
See: https://developers.google.com/assistant/smarthome/traits/temperaturesetting
for the 2 formats. Again, I had to use the deprecated format (Not the latest recommended format).

Related

Error: Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'?

I'm getting this error on every render. The stack trace below started with a mouse §click. The problem is I have no clue how to approach this. What I gather from this trace is:
It seems to happen inside React
Apparently it happens while React is reconciling the virtual DOM and the real DOM?
Somehow React Navigation has hooked into this process and is complaining.
And here it ends for me.
What am I using:
Expo Go SDK 46
React Native Web 0.18.7
Reactflow 11.2.0
So how do I go about debugging this? BTW I did wrap everything in a navigation container.
console.<computed> # index.js:1
error # react-native-logs.fx.ts:34
overrideMethod # react_devtools_backend.js:4026
i # VM8448:10
t.onCommitFiberRoot.t.onCommitFiberRoot # VM8448:10
onCommitRoot # react-dom.development.js:4875
commitRootImpl # react-dom.development.js:26709
commitRoot # react-dom.development.js:26517
performSyncWorkOnRoot # react-dom.development.js:25956
flushSyncCallbacks # react-dom.development.js:11982
flushSyncCallbacksOnlyInLegacyMode # react-dom.development.js:11961
scheduleUpdateOnFiber # react-dom.development.js:25326
dispatchReducerAction # react-dom.development.js:17269
listener # index.js:138
(anonymous) # index.js:18
setState # index.js:17
(anonymous) # index.ts:21
setNodes # slice.ts:120
(anonymous) # SlideEditorCanvas.tsx:139
(anonymous) # index.js:2308
call # dispatch.js:57
emit # zoom.js:219
start # zoom.js:198
mousedowned # zoom.js:283
(anonymous) # on.js:3

List of Python library in Sagemaker SKlearnProcessor

Is there a way to list the Python library in Sagemaker SKlearnProcessor?
Could not find the list from official doc. ,
https://sagemaker.readthedocs.io/en/stable/amazon_sagemaker_processing.html#data-pre-processing-and-model-evaluation-with-scikit-learn
I couldn't find the list of installed packages.
As a workaround, you can use the Github example, and change the preprocessing.py to print the list of installed libraries.
You can try os.system('pip freeze') and check CloudWatch logs for that job.
I have tried that with sagemaker-scikit-learn:0.20.0-cpu-py3 and here is the full list:
bcrypt==3.2.0
boto3==1.17.36
botocore==1.20.36
brotlipy==0.7.0
certifi==2020.6.20
cffi # file:///tmp/build/80754af9/cffi_1613246939562/work
chardet # file:///tmp/build/80754af9/chardet_1607706768982/work
click==7.1.2
conda==4.9.2
conda-package-handling # file:///tmp/build/80754af9/conda-package-handling_1603018138503/work
cryptography # file:///tmp/build/80754af9/cryptography_1615530759576/work
Flask==1.1.1
gevent==21.1.2
greenlet==1.0.0
gunicorn==20.0.4
idna # file:///home/linux1/recipes/ci/idna_1610986105248/work
inotify-simple==1.2.1
itsdangerous==1.1.0
Jinja2==2.11.3
jmespath==0.10.0
MarkupSafe==1.1.1
mlio==0.1.3
numpy==1.20.1
pandas==0.25.3
paramiko==2.7.2
protobuf==3.15.6
psutil==5.8.0
pyarrow==0.14.1
pycosat==0.6.3
pycparser # file:///tmp/build/80754af9/pycparser_1594388511720/work
PyNaCl==1.4.0
pyOpenSSL # file:///tmp/build/80754af9/pyopenssl_1608057966937/work
PySocks # file:///tmp/build/80754af9/pysocks_1594394576006/work
python-dateutil==2.8.1
pytz # file:///home/conda/feedstock_root/build_artifacts/pytz_1612179539967/work
requests # file:///tmp/build/80754af9/requests_1608241421344/work
retrying==1.3.3
ruamel-yaml-conda # file:///tmp/build/80754af9/ruamel_yaml_1616016701961/work
s3transfer==0.3.6
sagemaker-containers==2.8.6.post2
sagemaker-sklearn-container # file:///sagemaker_sklearn_container-1.0-py2.py3-none-any.whl
sagemaker-training==3.7.3
scikit-learn==0.20.0
scipy==1.6.2
six # file:///tmp/build/80754af9/six_1605205313296/work
tqdm # file:///tmp/build/80754af9/tqdm_1615925068909/work
typing==3.7.4.3
urllib3 # file:///tmp/build/80754af9/urllib3_1615837158687/work
Werkzeug==1.0.1
zope.event==4.5.0
zope.interface==5.3.0
Note: you can install additional libraries using os.system('pip install ..')

Cannot read property 'func' of undefined

I'm getting the following 2 errors with my React Native project, using Expo in the Simulator.
Can anyone shed any light on what I should be looking to fix? I've seen a couple of people with similar 'undefined' issues but I was unable to a gain a solution from them. I'm not even sure which file I should be looking at! ExceptionsManager.js is a file inside 'node_modules/react-native' so does that mean anything? Any ideas?
Many thanks.
Cannot read property 'func' of undefined - ExceptionsManager.js:65
handleException # ExceptionsManager.js:65
handleError # InitializeCore.js:106
reportFatalError # error-guard.js:46
guardedLoadModule # require.js:133
_require # require.js:118
(anonymous) # config.json:1
executeApplicationScript # debuggerWorker.js:40
(anonymous) # debuggerWorker.js:65
Module AppRegistry is not a registered callable module (calling runApplication) - ExceptionsManager.js:65
handleException # ExceptionsManager.js:65
handleError # InitializeCore.js:106
reportFatalError # error-guard.js:46
__guard # MessageQueue.js:267
callFunctionReturnFlushedQueue # MessageQueue.js:115
(anonymous) # debuggerWorker.js:72

How to configure este to work with react-toolbox?

As recomended in este wiki, I would like to use react-toolbox to create components in material design. I have installed react-toolbox with npm. I got this error while trying to use button.
ERROR in ./~/css-loader!./~/postcss-loader!./~/react-toolbox/lib/button/theme.css
Module build failed: Error: No PostCSS Config found in: /home/alenka/Documents/bakalárka/esteDir/este/node_modules/react-toolbox/lib/button
at Error (native)
at /home/alenka/Documents/bakalárka/esteDir/este/node_modules/postcss-load-config/index.js:51:26
# ./~/react-toolbox/lib/button/theme.css 4:14-100 13:2-17:4 14:20-106
# ./~/react-toolbox/lib/button/index.js
# ./src/browser/home/HomePage.js
# ./src/browser/app/routeConfig.js
# ./src/browser/app/Root.js
# ./src/browser/main.js
# ./src/browser/index.js
# multi webpack-hot-middleware/client?path=http://192.168.1.41:8080/__webpack_hmr ./src/browser/index.js
ERROR in ./~/css-loader!./~/postcss-loader!./~/react-toolbox/lib/ripple/theme.css
Module build failed: Error: No PostCSS Config found in: /home/alenka/Documents/bakalárka/esteDir/este/node_modules/react-toolbox/lib/ripple
at Error (native)
at /home/alenka/Documents/bakalárka/esteDir/este/node_modules/postcss-load-config/index.js:51:26
# ./~/react-toolbox/lib/ripple/theme.css 4:14-100 13:2-17:4 14:20-106
# ./~/react-toolbox/lib/ripple/index.js
# ./~/react-toolbox/lib/button/index.js
# ./src/browser/home/HomePage.js
# ./src/browser/app/routeConfig.js
# ./src/browser/app/Root.js
# ./src/browser/main.js
# ./src/browser/index.js
# multi webpack-hot-middleware/client?path=http://192.168.1.41:8080/__webpack_hmr ./src/browser/index.js
Could anybody help me please?

I am getting few errors on angularjs app which I am not sure why it's coming?

Hi I was working on angular app after few changes I am getting an error which I am not sure why it's coming.
error : TypeError: a is not a function
at angular.min.js:70
at m.promise.then.u (angular.min.js:97)
at m.promise.then.u (angular.min.js:97)
at angular.min.js:98
at h.$get.h.$eval (angular.min.js:108)
at h.$get.h.$digest (angular.min.js:106)
at h.$get.h.$apply (angular.min.js:109)
at f (angular.min.js:71)
at F (angular.min.js:75)
at XMLHttpRequest.x.onreadystatechange (angular.min.js:76)(anonymous function) # angular.min.js:89$get # angular.min.js:66m.promise.then.u # angular.min.js:97m.promise.then.u # angular.min.js:97(anonymous function) # angular.min.js:98$get.h.$eval # angular.min.js:108$get.h.$digest # angular.min.js:106$get.h.$apply # angular.min.js:109f # angular.min.js:71F # angular.min.js:75x.onreadystatechange # angular.min.js:76XMLHttpRequest.send (async)b # angular.min.js:77z # angular.min.js:72$get.f # angular.min.js:70m.promise.then.u # angular.min.js:97m.promise.then.u # angular.min.js:97(anonymous function) # angular.min.js:98$get.h.$eval # angular.min.js:108$get.h.$digest # angular.min.js:106$get.h.$apply # angular.min.js:109(anonymous function) # angular.min.js:18d # angular.min.js:34c # angular.min.js:17$b # angular.min.js:18Wc # angular.min.js:17(anonymous function) # angular.min.js:209v.Callbacks.l # jquery.min.js:2v.Callbacks.c.fireWith # jquery.min.js:2v.extend.ready # jquery.min.js:2A # jquery.min.js:2
I am not sure why this is coming and I am getting such 15 errors. It is not breaking my app but I am seeing this on chrome console.
I have changed from min.js to .js got this error :
TypeError: fn is not a function at angular.js:7946
at wrappedCallback (angular.js:11319)
at wrappedCallback (angular.js:11319)
at angular.js:11405
at Scope.$eval (angular.js:12412)
at Scope.$digest (angular.js:12224)
at Scope.$apply (angular.js:12516)
at done (angular.js:8204)
at completeRequest (angular.js:8412)
at XMLHttpRequest.xhr.onreadystatechange (angular.js:8351)(anonymous function) # angular.js:9778
As you cant place code in plunker I can only guess.
Are you passing any parameter to callback function? Usually it happens when you pass something like
.success($scope.message = "Task completed")
to in-build angular functions. In above case when the Ajax call completes, it is being invoked as a function, thus causing the error. It should have been as
.success(function () {
$scope.message = "Task completed";
})
In your case you may be assigning "a" to some variable.

Resources