簡體   English   中英

dbus-python - 錯誤:[WinError 193] %1 不是有效的 Win32 應用程序

[英]dbus-python - error: [WinError 193] %1 is not a valid Win32 application

我正在嘗試通過 python notify2 模塊發送一個簡單的桌面通知。 這是代碼:

import notify2

notify2.init('app name')
n = notify2.Notification('Test','This is a test','C:/Users/meneu/Documents/test.PNG')
n.show()

Notify2 需要 dbus-python 模塊,但這就是問題所在。 當我嘗試通過 pip 安裝它時,它會拋出此錯誤:

creating C:\Users\meneu\AppData\Local\Temp\pip-req-build-4qrgk1t2\build
creating C:\Users\meneu\AppData\Local\Temp\pip-req-build-4qrgk1t2\build\temp.win-amd64-3.7
error: [WinError 193] %1 is not a valid Win32 application

我的系統是 64 位的,我認為這是問題所在。 有誰知道如何為 64 位安裝 dbus? 我正在使用 python 3.7。

我還嘗試了 GLib 和 Gtk3,但也引發了很多錯誤。

提前致謝。

AFAIK,Windows 沒有 DBus,因此 Windows 沒有 dbus-python。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM