deepethogram icon indicating copy to clipboard operation
deepethogram copied to clipboard

Can't open GUI - Error: _init_pyside_extension is not defined

Open stowerslab opened this issue 2 years ago • 5 comments

Hello,

When installing deepethogram I encountered one of the issues stated in the common installation problems section. The error name is '_init_pyside_extension is not defined'. I followed the steps mentioned there: pip uninstall pyside2, conda remove pyside2, pip uninstall deepethogram, pip install deepethogram. However, after doing that, I'm getting the same error when trying to start the GUI. Any idea of how can this be solved? Thank you!

stowerslab avatar Jun 01 '22 01:06 stowerslab

Hi there, what OS are you working on?

If you're comfortable with trying Docker, I just pushed some docker images. That should give a 100% reproducible environment, which should fix your issues.

jbohnslav avatar Jun 05 '22 15:06 jbohnslav

Hi @stowerslab, this suggestion from a previous comment helped me resolve this issue on Windows in case that's your os:

pip uninstall PySide2

conda uninstall pyside2

conda install -c conda-forge pyside2

felipe-parodi avatar Jun 23 '22 15:06 felipe-parodi

Hi @stowerslab, this suggestion from a previous comment helped me resolve this issue on Windows in case that's your os:

pip uninstall PySide2

conda uninstall pyside2

conda install -c conda-forge pyside2 had the same issue your fix worked thank you.

weertman avatar Jul 08 '22 00:07 weertman

Just coming here to confim I get the same error after following the installation instructions:

conda create --name deg python=3.7
conda activate deg
conda install -c conda-forge pyside2==5.13.2
pip install deepethogram

and running the following solves it

pip uninstall PySide2
conda uninstall pyside2
conda install -c conda-forge pyside2

My system is Windows 11, but I can confirm that an identical error happens on Windows 10

axellenoesen avatar Feb 23 '23 13:02 axellenoesen

@axellenoesen I get a similar error upon launching deepethogram

deepethogram
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

And it's solved with the same commands you shared, thanks! :D

ETedre avatar Mar 21 '23 16:03 ETedre