Exception installing pynotify and mutagen
  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    Re: http:// wiki.sourcefabric.org/display/CC/Installing+Airtime+%28v1.9. 0-beta2%29

    sudo pip install kombu poster pyinotify==0.9.2 mutagen==1.20

    Traceback (most recent call last):
    File "/usr/lib/python2.6/dist-packages/pip.py", line 252, in main
    self.run(options, args)
    File "/usr/lib/python2.6/dist-packages/pip.py", line 408, in run
    requirement_set.install_files(finder, force_root_egg_info=self.bundle)
    File "/usr/lib/python2.6/dist-packages/pip.py", line 1721, in install_files
    if req_to_install.check_if_exists():
    File "/usr/lib/python2.6/dist-packages/pip.py", line 1583, in check_if_exists
    dist = pkg_resources.get_distribution(self.req)
    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 292, in get_distribution
    if isinstance(dist,Requirement): dist = get_provider(dist)
    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 176, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 436, in find
    raise VersionConflict(dist,req) # XXX add more info
    VersionConflict: (pyinotify 0.8.9 (/usr/lib/pymodules/python2.6), Requirement.parse('pyinotify==0.9.2'))

    Storing complete log in ./pip-log.txt

    Ubuntu Lucid + latest updates

    Do you guys have a work around for this? Maybe removing the old versions somehow?

  • 3 Comments sorted by
  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    OK if I specify the required kombu and poster versions I get exceptions for each one. So how to remove the old versions?
  • I'm not at my linux box at the moment but I think I did:

    sudo dpkg -r python-mutagen


    sudo apt-get remove python-mutagen
  • Vote Up0Vote Down VerheekVerheek
    Posts: 158Member
    Thanks. I guess the dependency python-mutagen can be removed from http:// wiki.sourcefabric.org/display/CC/Installing+Airtime+Dev+Vers ion+%28Latest+Trunk%29 Otherwise it overwrites the newer version.

    I also did some searching and found out you need to update pip to have an uninstall option.

    sudo pip install -U pip

    Now I have version 1.0.1

    Then I did
    sudo pip uninstall kombu poster pyinotify mutagen

    sudo pip install kombu poster pyinotify==0.9.2 mutagen==1.20

    That was fine except that python-pyinotify was installed and so I had to also remove it with
    sudo apt-get remove python-pyinotify

    I could then go back and use
    sudo pip install pyinotify==0.9.2

    Now my
    sudo airtime-check-system
    is happy and my media-monit process is not giving this exception:

    -- 2011-07-01 08:18:10,284 ERROR - [MediaMonitor.py : <module>() : line 73] - Exception: 'AirtimeNotifier' object has no attribute 'coalesce_events'