Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows notification not works #87

Closed
johnfelipe opened this issue Jun 22, 2022 · 5 comments
Closed

windows notification not works #87

johnfelipe opened this issue Jun 22, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@johnfelipe
Copy link
Contributor

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>

SNAG-0002

pls view this video better

https://drive.google.com/file/d/1_qiqDl4-JSEqBO27RXy1D14oBOfinP1V/view?usp=drivesdk

how can solve this?

@johnfelipe johnfelipe added the bug Something isn't working label Jun 22, 2022
@caronc
Copy link
Owner

caronc commented Jun 26, 2022

There are a couple of things going on here i think.

  1. 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
  2. With respect to the title: windows notification not works, you'll need to do 2 things:
    1. You need to have the pywin32 installed:
      pip install pywin32
    2. 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 called APPRISE_DENY_SERVICES and make it equal something like: dbus,gnome,macosx,syslog (basically what was already there with windows:// dropped from it.

@johnfelipe
Copy link
Contributor Author

I will try soon and feedback to u

@johnfelipe
Copy link
Contributor Author

johnfelipe commented Jun 29, 2022

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?

@caronc
Copy link
Owner

caronc commented Jul 1, 2022

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

@caronc caronc transferred this issue from caronc/apprise Jul 3, 2022
@caronc
Copy link
Owner

caronc commented Feb 26, 2023

Closing off stale ticket

@caronc caronc closed this as completed Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants