Run this program on windows 10 #2486
-
I would love to try this program, is there any tip to execute it on windows 10? Sorry for this stupid question, but I have no idea on python and django. I have only xampp and knowledege of php and mysql. |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 16 replies
-
The simplest method would be to run it in a docker container (e.g. under docker desktop). The software stack assumes a Linux system, so following the docker setup guide should get you going. |
Beta Was this translation helpful? Give feedback.
-
That would mean to install some program to emulate linux from docker.com or you mean a virtualmachine? The virtualmachine I think is going to slow the entire computer... :( |
Beta Was this translation helpful? Give feedback.
-
Sorry but I didn't want to create another post because maybe I'm wrong. In the config.yaml says:
but in the instructions says:
So those folders doesn't exist inside Also says: but that file doesn't exist, but |
Beta Was this translation helpful? Give feedback.
-
I'm going here, but I don't know if the output messages have been correct since I see an error
|
Beta Was this translation helpful? Give feedback.
-
Another error:
|
Beta Was this translation helpful? Give feedback.
-
I think that |
Beta Was this translation helpful? Give feedback.
-
I have advanced a little... but now after:
|
Beta Was this translation helpful? Give feedback.
-
Everything working properly in WSL. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Does this not run on Docker Desktop? Either vi UI or CLI? I've been trying to install this for a week. I've tried docker via CLI and using the Docker-desktop UI, and bare-metal under cygwin with pip install. So after "docker pull inventree/inventree:stable", what's next to create container(s) from the image and start it up? There seems to be a chicken & egg problem -- the environment wants to be configured in yaml files that are INSIDE the container. But the containers won't start without the correct ENV vars -- should I pass in the docker run command? AND, your docs only cover running the docker-compose command which performs a ton of compiling/building -- I thought this being a docker image it's all pre-built with dependencies(??) This is so confusing. If I try bare metal, then it's an endless mire of python/pip issues with rust compiler... I don't even get to the invoke part. I get MUCH farther along in my cygwin environment than I do on RHEL 7 linux. I would much prefer to use docker, and I'd like to eventually run development, but start as simple as possible, which I think would be a production server. Can anyone point me to working docker recipe that covers start-to-finish on Win10 Docker desktop? Thank you. |
Beta Was this translation helpful? Give feedback.
-
@4jag yes this will definitely run on docker-desktop, under windows 10: To get a production server up and running, follow the installation instructions here. The simplest (and recommended) installation method is to use the provided docker-compose script. There are some other files you'll need to - make sure you read the "Required Files" section of the documentation link I posted above. Note that the InvenTree container cannot run by itself. It needs at minimum a database container, and also a proxy container for serving media / static files when in production. |
Beta Was this translation helpful? Give feedback.
-
Hi there @4jag
As I said I am using regular win10 pro 21h2 with the included python 3.9, cmd or powershell and the current docker desktop.
I am just following the instructions from here: https://inventree.readthedocs.io/en/latest/start/docker_dev/
--
My suggestion is that you use WSL to run Debian or Ubuntu as that makes a lot of things simpler.
As said above I am using windows 10
Von: 4jag ***@***.***>
Gesendet: Donnerstag, 10. März 2022 20:09
An: inventree/InvenTree ***@***.***>
Cc: Matthias Mair ***@***.***>; Mention ***@***.***>
Betreff: Re: [inventree/InvenTree] Run this program on windows 10 (Discussion #2486)
Matmair,
I explained that I'm using Cygwin, so all my compilers and Python environment are installed via Cygwin's package manager and pip. If you're "not sure what is different between in my environment", then you must have the same environment? Are you using Cygwin? If not, then can you say something about your environment? What shell do you use? CMD.EXE? Powershell? If you're using Linux, then how is the Inventree running on Docker-desktop on Windows? Is the image above not your system? If it is yours, then can you say something like: "I built the container on Linux using the steps in the docs; then moved it to a Windows computer ...",
or "I uploaded the image to hub.docker.com, then on Windows10 pulled it down via docker pull, and then via Docker Desktop UI I set these variables in the Volume and Container_path fields...",
or "I placed the docker compose script into ___ folder, I opened a terminal and ran the following docker commands that: ... ",
or "I built the image on Windows, in the Windows-Terminal using the command from the documentation. In order to have the necessary python I downloaded and installed Python for Windows, then used pip to get all the discrepancies. here are the steps...",
or "I installed Ubuntu into WSL2, so i wasn't relying on any Windows-install development software".
The variability of computer OSs is pretty great. Are you on a Mac?
?????
-
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Is there are any video installation proccess please? |
Beta Was this translation helpful? Give feedback.
The simplest method would be to run it in a docker container (e.g. under docker desktop). The software stack assumes a Linux system, so following the docker setup guide should get you going.