apprise-api
apprise-api copied to clipboard
windows notification not works
in my windows run this
WINDOWS
Microsoft Windows [Versión 10.0.19044.1706]
(c) Microsoft Corporation. Todos los derechos reservados.
C:\WINDOWS\system32>C:\Python310\python.exe -m pip install --upgrade pip
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Requirement already satisfied: pip in c:\python310\lib\site-packages (22.0.4)
Collecting pip
Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Installing collected packages: pip
Attempting uninstall: pip
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Successfully installed pip-22.1.2
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
C:\WINDOWS\system32>pip install pywin32
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
Requirement already satisfied: pywin32 in c:\python310\lib\site-packages (304)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
WARNING: Ignoring invalid distribution -ip (c:\python310\lib\site-packages)
C:\WINDOWS\system32>

pls view this video better
https://drive.google.com/file/d/1_qiqDl4-JSEqBO27RXy1D14oBOfinP1V/view?usp=drivesdk
how can solve this?
There are a couple of things going on here i think.
- This line here doesn't really relate to your problem at hand; the problem is that you need the library
> C:\WINDOWS\system32>C:\Python310\python.exe -m pip install --upgrade pip - With respect to the title: windows notification not works, you'll need to do 2 things:
- You need to have the pywin32 installed:
pip install pywin32 - You will need to make sure that you enable
windows://notifications as it is disabled by default. See here. Basically you just need need to update the file i shared with you, or if you're using a docker container, you need to just create an environment variable calledAPPRISE_DENY_SERVICESand make it equal something like:dbus,gnome,macosx,syslog(basically what was already there withwindows://dropped from it.
- You need to have the pywin32 installed:
I will try soon and feedback to u
here, that how can review in docker installation?
my windows is ip 192.168.0.20 and apprice is 192.168.0.44 how can deploy in that network schemma?
I don't have a windows PC to test on, but i'm not sure if a docker container (hosting a Linux foundation) can access the windows libraries through the API (which was why they're disabled by default). I'll leave your ticket open incase someone else is attempting to do what you're doing. But it seems like a lot of overhead to run an AppriseAPI service to notify the same machine it's running on. That said, it should still be able to be done... you just need to make sure you deploy your container with the correct environment -e APPRISE_DENY_SERVICES=dbus,gnome,macosx,syslog
Closing off stale ticket