slideflow
slideflow copied to clipboard
How do I run Slideflow studio from the docker container
I have followed the installation guide and pulled an image using:
docker pull jamesdolezal/slideflow:latest-torch
then I ran the command:
docker run -it --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
jamesdolezal/slideflow:latest-tf
after that I ran slideflow-studio inside the container, however I'm getting an error "ModuleNotFoundError: No module named 'tkinter'"
I'm using windows 11
I was able to resolve this with the following steps:
- Install vcxsrv on your WIN10 from sourceforge.net/projects/vcxsrv
- Start server, Keep everything default in it, don’t make changes. When you complete the display settings setup by clicking on next. VcXsrv icon will appear in the system tray, and, the Application will keep running in the background.
docker run -it --rm -e DISPLAY=host.docker.internal:0.0 -v /tmp/.X11-unix:/tmp/.X11-unix jamesdolezal/slideflow:latest-tfapt-get install python3-tkslideflow-studio
Thank you for finding and reporting a solution! We will add these steps into our documentation for others to see as well. We'll probably add a separate subpage within the documentation dedicated to setting up and using Docker. More to come.