Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665068 - media-video/griffith ImportError: cannot import name InstrumentationManager
Summary: media-video/griffith ImportError: cannot import name InstrumentationManager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-09-01 21:13 UTC by Petross404(Petros S)
Modified: 2019-02-19 17:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
validators.py (validators.py,3.66 KB, text/x-python)
2018-09-01 21:15 UTC, Petross404(Petros S)
Details
fix_griffith-0.13-validators.patch (fix_griffith-0.13-validators.patch,625 bytes, patch)
2018-09-01 21:39 UTC, Petross404(Petros S)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petross404(Petros S) 2018-09-01 21:13:25 UTC
Running :

> python2.7 /usr/bin/griffith

gave me this error:

Traceback (most recent call last):
  File "/usr/bin/griffith", line 86, in <module>
    import add
  File "/usr/lib64/griffith/add.py", line 31, in <module>
    import quick_filter
  File "/usr/lib64/griffith/quick_filter.py", line 25, in <module>
    import db
  File "/usr/lib64/griffith/db/__init__.py", line 30, in <module>
    from _objects import *
  File "/usr/lib64/griffith/db/_objects.py", line 33, in <module>
    import validators
  File "/usr/lib64/griffith/db/validators.py", line 26, in <module>
    from sqlalchemy.orm.interfaces import AttributeExtension, InstrumentationManager
ImportError: cannot import name InstrumentationManager


I solved it by downloading validators.py from here[1] and replacing this :
>/usr/lib64/griffith/db/validators.py

[1]http://bazaar.launchpad.net/~piotr/griffith/trunk/view/head:/lib/db/validators.py

Just for reference : https://bugs.launchpad.net/ubuntu/+source/griffith/+bug/1212397
Comment 1 Petross404(Petros S) 2018-09-01 21:15:32 UTC
Created attachment 545748 [details]
validators.py
Comment 2 Petross404(Petros S) 2018-09-01 21:39:33 UTC
Created attachment 545750 [details, diff]
fix_griffith-0.13-validators.patch

>>> Emerging (1 of 1) media-video/griffith-0.13-r2::gentoo
 * griffith-0.13.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                             [ ok ]
 * griffith-extra-artwork-0.9.4.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking griffith-0.13.tar.gz to /tmp/portage/media-video/griffith-0.13-r2/work
>>> Unpacking griffith-extra-artwork-0.9.4.tar.gz to /tmp/portage/media-video/griffith-0.13-r2/work
>>> Source unpacked in /tmp/portage/media-video/griffith-0.13-r2/work
 * Applying user patches from /etc/portage/patches//media-video/griffith-0.13-r2 ...
 *   fix_griffith-0.13-validators.patch ...                                                                                                                                                                     [ ok ]
 * Done with patching
>>> Preparing source in /tmp/portage/media-video/griffith-0.13-r2/work/griffith-0.13 ...
 * Applying 0.10-fix_lib_path.patch ...                                                                                                                                                                         [ ok ]
>>> Source prepared.


Fixed.
Comment 3 Larry the Git Cow gentoo-dev 2019-02-19 17:47:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a9a636ab45726aac3c466af1f447c02e369d81c

commit 8a9a636ab45726aac3c466af1f447c02e369d81c
Author:     Petros Siligkounas <petross404@gmail.com>
AuthorDate: 2019-02-17 21:16:59 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-02-19 17:46:54 +0000

    media-video/griffith: fixes cannot import name InstrumentationManager
    
    Closes: https://bugs.gentoo.org/665068
    Package-Manager: Portage-2.3.60, Repoman-2.3.12
    Signed-off-by: Πέτρος Σιλιγκούνας <petross404@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/9763
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../griffith/files/griffith-0.13-validators.patch       | 17 +++++++++++++++++
 media-video/griffith/griffith-0.13-r2.ebuild            |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)