0
githubリポジトリからPythonベースのパッケージをインストールしようとしていますが、それはもともとDebianベースのLinuxディストリビューション用です。Pythonをインストールして使用する方法RPi3でPyGObject "Notify"(またはそれに相当するもの)
プログラムは、Python2を使用しているようだ、と次のように輸入が与えられている:
import argparse
import logging
import Queue
import collections
import ConfigParser
import os
import socket
import random
import gi
gi.require_version('Notify', '0.7')
from gi.repository import Notify
from multiprocessing import Process, Queue as MPQueue, Event
...
def notif(msg):
Notify.init("TheProg")
notice = Notify.Notification.new("Critical !", msg)
notice.set_urgency(2)
しかし、私はこれを取得プログラムを実行しようとすると:
$ python2 main.py -h
Traceback (most recent call last):
File "main.py", line 11, in <module>
gi.require_version('Notify', '0.7')
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 100, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Notify not available
私は」私は疲れていたと私は唯一の発見は、PyGObject API Referenceのいくつかの暗黙の参照です:
gir1.2-notify-0.7 (0.7.7-3)
Parent Project:
Desktop notification library (libnotify is a library for sending desktop notifications)
Description:
A library that sends desktop notifications to a notification daemon, as
defined in the Desktop Notifications spec. These notifications can be
used to inform the user about an event or display some form of
information without getting in the user’s way.
- 実行中の
pip2 search notify
は、何百もの一見無関係のものを返します。 apt search notify
と同じです。
Q:正しいNotify
のものを見つけてインストールするにはどうすればよいですか?