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

Python install packages pip matplotlib

Python install packages pip matplotlib

UDK_developer
New Poster

Hello,

i tried to install the matlab lib on the virtuel environment builder. And it worked the inveronment successfully installed the matplotlib.

I added the matplotlib in the requirements.txt and setup.py

UDK_developer_2-1657631633599.png

UDK_developer_0-1657790525553.png

 

 

here is the open archive of the virtuel core snap. And on the virtuel control no error occurs. Besides that when i build the arm64 snap for the

real control, i always get the error page. To mention i also changed in the datalayer.py the return value to the control ones used. Afterwards i build the snap without errors.

UDK_developer_1-1657631158277.png

 

 

thank you for your service and quick replys.

best regards

UDK_developer

4 REPLIES 4

MauroRiboniMX
Contributor

Hi, 

So you cross compiled some python right? Many python libraries are difficult to "cross compile" because there is also some C behind. To include matplotlib give a look to: GitHub - mauringo/python-ai-toolkit. The example includes also ctrlX SDK. 

To successfully compile it for arm64 i use a native arm64 machine. You can use:

architectures:
- build-on: amd64
- build-on: arm64

Inside the snapcraft.yaml and the use snapcraft remote-build

 

Thank you for your answer,

i also tried to include an none-any python liberary and give it a trie. And in that case it worked 

the snap successfully builds. I've included the pyueye liberary for IDS_Kameras . 

UDK_developer_0-1658299926521.png

The webserver starts successfully with the liberary. However if i want to include the liberary in the webserver.py 

with 'from pyueye import ueye' the programm doesn't start anymore and i get the error page shown on the top 

 

Give a look inside the logbook. you can fin your program stOutput. you will find an error while including the library

Any news here or can this topic be closed?

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