bhrigu123 / Instant-Lyrics

Shows lyrics of the currently playing Spotify song, or any song, instantly.
http://bhrigu.me/Instant-Lyrics/
195 stars 33 forks source link

attribute error #7

Open ranavita opened 7 years ago

ranavita commented 7 years ago

raceback (most recent call last): File "InstantLyrics.py", line 1, in from src.appIndicator import AppIndicator File "/home/ranavita/Downloads/Instant-Lyrics/src/appIndicator.py", line 2, in gi.require_version('Gtk', '3.0') AttributeError: 'module' object has no attribute 'require_version

ranavita commented 7 years ago

usr/bin/python3 oduleSpec(name='gi', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7f39a86130f0>, origin='/usr/lib/python3/dist-packages/gi/init.py', submodule_search_locations=['/usr/lib/python3/dist-packages/gi'])

'_gobject': <module '_gobject'>, 'version_info': (3, 20, 0), '_overridesdir': '/usr/lib/python3/dist-packages/gi/overrides', 'version': '3.20.0', 'spec': ModuleSpec(name='gi', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7fa2076290f0>, origin='/usr/lib/python3/dist-packages/gi/init.py', submodule_search_locations=['/usr/lib/python3/dist-packages/gi']), '_gi': <module 'gi._gi' from '/usr/lib/python3/dist-packages/gi/_gi.cpython-35m-x86_64-linux-gnu.so'>, 'check_version': <function check_version at 0x7fa20760c7b8>, 'importlib': <module 'importlib' from '/usr/lib/python3.5/importlib/init.py'>, 'types': <module 'types' from '/usr/lib/python3.5/types.py'>, 'path': ['/usr/lib/python3/dist-packages/gi'], 'os': <module 'os' from '/usr/lib/python3.5/os.py'>, 'builtins': {'abs': , 'int': <class 'int'>, 'classmethod': <class 'classmethod'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'len': , 'TypeError': <class 'TypeError'>, 'RuntimeError': <class 'RuntimeError'>, 'Exception': <class 'Exception'>, 'debug': True, 'min': , 'UserWarning': <class 'UserWarning'>, 'compile': , 'globals': , 'spec': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>), 'OSError': <class 'OSError'>, 'filter': <class 'filter'>, 'BufferError': <class 'BufferError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'delattr': , 'round': , 'FileExistsError': <class 'FileExistsError'>, 'chr': , 'BytesWarning': <class 'BytesWarning'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'package': '', 'all': , 'next': , 'sorted': , 'build_class': <built-in function build_class>, 'slice': <class 'slice'>, 'TabError': <class 'TabError'>, 'repr': , 'NameError': <class 'NameError'>, 'TimeoutError': <class 'TimeoutError'>, 'vars': , 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'copyright': Copyright (c) 2001-2016 Python Software Foundation. All Rights Reserved.

Copyright (c) 2000 BeOpen.com. All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'GeneratorExit': <class 'GeneratorExit'>, 'MemoryError': <class 'MemoryError'>, 'setattr': , 'UnicodeWarning': <class 'UnicodeWarning'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'tuple': <class 'tuple'>, 'open': , 'divmod': , 'bytes': <class 'bytes'>, 'property': <class 'property'>, 'license': Type license() to see the full license text, 'ReferenceError': <class 'ReferenceError'>, 'sum': , 'oct': , 'True': True, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'ValueError': <class 'ValueError'>, 'dict': <class 'dict'>, 'ImportWarning': <class 'ImportWarning'>, 'ResourceWarning': <class 'ResourceWarning'>, 'memoryview': <class 'memoryview'>, 'InterruptedError': <class 'InterruptedError'>, 'super': <class 'super'>, 'enumerate': <class 'enumerate'>, 'bin': , 'dir': , 'eval': , 'input': , 'doc': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the nil' object; Ellipsis represents...' in slices.", 'KeyError': <class 'KeyError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'bool': <class 'bool'>, 'help': Type help() for interactive help, or help(object) for help about object., 'range': <class 'range'>, 'None': None, 'issubclass': , 'FutureWarning': <class 'FutureWarning'>, 'callable': , 'NotImplemented': NotImplemented, 'SystemError': <class 'SystemError'>, 'IOError': <class 'OSError'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'ConnectionError': <class 'ConnectionError'>, 'list': <class 'list'>, 'ImportError': <class 'ImportError'>, 'import': , 'AttributeError': <class 'AttributeError'>, 'object': <class 'object'>, 'EnvironmentError': <class 'OSError'>, 'complex': <class 'complex'>, 'EOFError': <class 'EOFError'>, 'ArithmeticError': <class 'ArithmeticError'>, 'BlockingIOError': <class 'BlockingIOError'>, 'format': , 'SystemExit': <class 'SystemExit'>, 'AssertionError': <class 'AssertionError'>, 'pow': , 'print': , 'ProcessLookupError': <class 'ProcessLookupError'>, 'map': <class 'map'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'ascii': , 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'Warning': <class 'Warning'>, 'UnicodeError': <class 'UnicodeError'>, 'LookupError': <class 'LookupError'>, 'staticmethod': <class 'staticmethod'>, 'ord': , 'IsADirectoryError': <class 'IsADirectoryError'>, 'id': , 'StopIteration': <class 'StopIteration'>, 'OverflowError': <class 'OverflowError'>, 'NotImplementedError': <class 'NotImplementedError'>, 'SyntaxError': <class 'SyntaxError'>, 'bytearray': <class 'bytearray'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'IndexError': <class 'IndexError'>, 'zip': <class 'zip'>, 'IndentationError': <class 'IndentationError'>, 'False': False, 'type': <class 'type'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'NotADirectoryError': <class 'NotADirectoryError'>, 'set': <class 'set'>, 'any': , 'getattr': , 'exec': , 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'hasattr': , 'loader': <class '_frozen_importlib.BuiltinImporter'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, 'locals': , 'frozenset': <class 'frozenset'>, 'iter': , 'name': 'builtins', 'str': <class 'str'>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'RecursionError': <class 'RecursionError'>, 'ChildProcessError': <class 'ChildProcessError'>, 'max': , 'isinstance': , 'DeprecationWarning': <class 'DeprecationWarning'>, 'hex': , 'reversed': <class 'reversed'>, 'float': <class 'float'>, 'Ellipsis': Ellipsis, 'BaseException': <class 'BaseException'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'hash': , 'PermissionError': <class 'PermissionError'>}, 'PyGIDeprecationWarning': <class 'gi.PyGIDeprecationWarning'>, '_DummyStaticModule': <class 'gi._DummyStaticModule'>, 'loader': <_frozen_importlib_external.SourceFileLoader object at 0x7fa2076290f0>, 'sys': <module 'sys' (built-in)>, 'require_foreign': <function require_foreign at 0x7fa205ff9ae8>, 'PyGIWarning': <class 'gi.PyGIWarning'>, 'extend_path': <function extend_path at 0x7fa205ff9510>, 'name': 'gi', '_error': <module 'gi._error' from '/usr/lib/python3/dist-packages/gi/_error.py'>, 'package': 'gi', '_API': <capsule object "gi._API" at 0x7fa205fcf870>, 'require_version': <function require_version at 0x7fa205ff96a8>, '_static_binding_error': 'When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183', '_versions': {}, 'cached': '/usr/lib/python3/dist-packages/gi/pycache/init.cpython-35.pyc', 'doc': None, 'absolute_import': _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384), 'get_required_version': <function get_required_version at 0x7fa205ff9a60>, 'file': '/usr/lib/python3/dist-packages/gi/init.py', 'Repository': <class 'gi.Repository'>} (py27)

ranavita commented 7 years ago

I have installed anaconda python and activated the 2.7 at the moment

bhrigu123 commented 7 years ago

Hi, I don't have access to a linux machine at the moment. I'll see to it soon.