Einswilli / KivymdStudio

Development studio for kivymd, This is not the official repository of KIVYMDSTUDIO. It is a small homemade project just for fun.
55 stars 23 forks source link

Setup issues #9

Open phifuh opened 1 year ago

phifuh commented 1 year ago
  1. The link is broken inside the readme file: link this gives a 404

  2. I tried forking the repo, created a venv with python 3.11 and ran the requirement.txt but I couldnt get the project running. There are a lot of unused imports and pyside2 seems not supported in 3.11. In the readme it´s saying "1. Install Python3.x", if 3.10 & 3.11 arent supported it should be added to the readme.

  3. After that I tried running the dockerfile. Once i tried running a container I got the error:

    
    qt.qpa.xcb: could not connect to display
    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.



Both docker and the venv were created on win 10 if that information is helpfull
Einswilli commented 1 year ago
  1. Okay thanks , it will be fixed .
  2. Use python 3.9
  3. run : docker run -it --rm --env DISPLAY=$DISPLAY -V /tmp/X11-unix:/tmp/X11-unix after running sudo xhost + to allow docker to use your os X server
Einswilli commented 1 year ago

if you are under windows try this : docker run -it --rm -e DISPLAY=host.docker.internal:0 -v /tmp/.X11-unix:/tmp/.X11-unix

Note :

Please note that you need to have the Windows Subsystem for Linux (WSL) enabled and Docker configured to use it. Also, make sure you have X11 installed and properly configured on your Windows 10 machine.