cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Python SDK Samples Not Working

Python SDK Samples Not Working

mvial
Member

So I'm just getting started with the SDK and wanted to go through the snap process to see how it works. However when I install the snaps for the python sample projects none work as intended. They are not showing up on the datalayer. Not sure what I'm doing wrong. I'm currently working on a virtual control X core, and something else I have noticed is that unlike the introduction videos and many of the online examples my dashboard does not contain an automation tab (see attached image). the .yaml files are unchanged except that the base has been switched to a core20. 

mvial_0-1702485594953.png

Maybe the command address needs to be changed?

 

8 REPLIES 8

Sgilk
Contributor

If you check your logbook, I'm guessing you'll see a similar message.

Sgilk_0-1702494367920.png

You are building these apps on SDK version 2.4 and running them on ctrlX OS version 1.20. There are incompatabilities in the libraries used across these versions. To fix this, you can build the apps on SDK version 1.20, or create a virtual CORE on image 2.4.

See this post for option 1. If you have no preference, I'd suggest creating a new virtual CORE on the latest image.

That's the thing I'm not seeing any log messages regarding the apps, but regardless having the versions match are important I'll try that.

In your logbook settings, try enabling these options.

Sgilk_0-1702498449154.png

 

I can see! That was incredibly helpful thanks, and yes I am seeing those exact messages you mentioned. I would like to use an updated virtual core do you know where I can find the latest image?

@mvial ,

No problem!

Here is an article with instructions on accessing the Collaboration Rooms.

CodeShepherd
Community Moderator
Community Moderator

@mvial As an additional hint, the latest image for the ctrlX COREvirtual is part of the ctrlX WORKS installation. Just create a new one.

@CodeShepherd @Sgilk Ok so I tried making a new virtual core but the only versions I have found availble was the one I was using 1.20 so instead I switched to using the earlier version of the SDK and that seems to work better but looking at the logs, the program seems to be having access issues interacting with the datalayer.

mvial_0-1702561107434.png

 

 

I changed some of the permisions in the datalayer access settings and rebuilt and installed the snap and everything seems to be working now thanks guys!

mvial_0-1702566627641.png

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist