Convert matlab code to python package, but encountered error on xcb when running.

1 vue (au cours des 30 derniers jours)
Sullivan
Sullivan le 19 Mar 2018
Modifié(e) : Sullivan le 20 Mar 2018
Hi everyone,
I have converted a piece of matlab code into a python package, following the instruction on https://www.mathworks.com/help/compiler_sdk/gs/create-a-python-application-with-matlab-code.html.
After that the package can be imported in python code. But when the actual function converted from matlab is called, the program will crash, with following error message:
python: <unknown>:0: <unknown>: Assertion `This application failed to start because it could not find or load the Qt platform plugin "xcb".
Available platform plugins are: linuxfb, minimal, offscreen, xcb.
Reinstalling the application may fix this problem.' failed.
------------------------------------------------------------------------
Assertion detected at Mon Mar 19 13:37:55 2018
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Current Graphics Driver: Unknown hardware
Current Visual : 0xad (class 4, depth 24)
Default Encoding : UTF-8
Deployed : true
GNU C Library : 2.23 stable
Host Name : bmw
MATLAB Architecture : glnxa64
MATLAB Entitlement ID: Unknown
MATLAB Root : /usr/local/MATLAB/R2017B
MATLAB Version : 9.3.0.713579 (R2017b)
OpenGL : hardware
Operating System : Linux 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64
Processor ID : x86 Family 6 Model 79 Stepping 1, GenuineIntel
Virtual Machine : Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Window System : The X.Org Foundation (70000000), display :56.0
I am appreciated if someone can give me advice to resolve this problem. I am using the following environment:
  • Ubuntu 16.04
  • matlab 2017b
  • python 3.5

Réponses (0)

Catégories

En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by