Read the statement by Michael Teeuw here.
MMM-PythonPrint customisation
-
@sdetweil yeah, I am deliberately keeping all the module paths in the default place, but it still doesn’t like it.
But if I go into the docker container, it doesn’t seem to have access to Python, so maybe that’s the problem.
It is all rather confusing. (More so from your end, no doubt) -
@RobCee this.file(filename) will prepend the file system path to the module folder
I just pushed a fix to do the same in the module, instead of the __dirname prefix
-
@sdetweil But if I exec into a bash console in the docker container, it doesn’t seem to have access to Python, so maybe that’s the problem.
It is all rather confusing. (More so from your end, no doubt) -
@RobCee you had to install python in the container if it wasn’t as part of the instance
-
@sdetweil I have just had that lightbulb switch on in my head…
-
@RobCee i don’t think the image has python installed
-
@sdetweil you are correct. It doesn’t have python installed with it.
My next challenge is to work out how to get that up and running.Once I have it running I will get back to you on your module.
-
@RobCee short term while u are execed in, install python as usual
if you are using https://gitlab.com/khassel/magicmirror
he doesn’t provide a mechanism to add system components like python
-
@sdetweil that works, but the setup refreshes itself by default, so it wouldn’t last too long.
I will work it through. Thanks -
@RobCee while its challenging, its possible
I might open an issue of the docker image to allow a folder/file with additional packages to install at startup…
seems a waste to do it every refresh time tho
long ago and far away (2015) I had a product to install in an image, 1.5 GIG of product, and didn’t want to make a separate image for the different versions…
so I figured out how to install and capture that as a tarfile, and then
untar it as part of the startup…then the start script passed that as a parm to startup, so I could change the product on the fly, using the same tiny image…