How to install Pulp package on Appdaemon?

Hi all,

i want to use the PuLP package in appdeamon. I am running my HA on a Synology NAS, and installed it in Virtual Machine Manager. i use the appdaemon add-on.

Following the instructions i should simply add the pulp package in the configuration tab of appdaemon. At first glance this seems to work, as at restart the log says pulp is correctly installed.

However, when i run a small test code, i get errors like
“2025-02-04 15:48:39.462515 INFO Testen_van_solver: Error while testing PuLP: [Errno 2] No such file or directory: ‘/usr/lib/python3.11/site-packages/pulp/solverdir/cbc/linux/64/cbc’”

I checked chatGPT for some guidance. It says pulp isn’t installed in the directory. When opening the terminal and ssh package (user interface) i cannot even find this directory.
Therefore, i am stuck.

Being a newbie both in appdeamon as well as python i am struggling…
Can anyone help in getting pulp installed correctly?
thanks!

I’ve been struggling quite a bit. With the assistance of chatgpt (to add some knowledge to my skills) i came to the conclusion that the solver is looked for in a directory that doesn’t exist. I wasn’t able to create this.

Possibly because i am operating App daemon as an add-on a home assistance which is in turn running on a virtual machine on a synology NAS. Therefore it is in a container with limited permissions (?)

In the end i decided to check another solver. I downloaded pyomo.
This worked at once.

So if anyone encounters similar problems - check pyomo.