AttributeError in ubuntu 13.10

Bug #1248050 reported by nvbn
154
This bug affects 33 people
Affects Status Importance Assigned to Milestone
singlet
New
Undecided
Unassigned

Bug Description

When i try to import SingleScopeLens, i saw:
```
File "/home/nvbn/work/everpad/everpad/specific/unity/lens.py", line 3, in <module>
    from singlet.lens import SingleScopeLens, ListViewCategory
  File "/usr/lib/python2.7/dist-packages/singlet/lens/__init__.py", line 1, in <module>
    from singlet.lens.base import (
  File "/usr/lib/python2.7/dist-packages/singlet/lens/base.py", line 140, in <module>
    class SingleScopeLens(Lens):
  File "/usr/lib/python2.7/dist-packages/singlet/lens/base.py", line 57, in __new__
    if isinstance(a, Unity.Scope):
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 313, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 134, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Unity' object has no attribute 'Scope'
```

Revision history for this message
Alan Hughes (alan-m-hughes) wrote :

I echo this problem with the lens

Revision history for this message
Alexey Kulik (doctor-rover) wrote :

everpad-lens fails to start, producing the same output as in the bug description.

Revision history for this message
Giacomo (poderi1980) wrote :

I have the same output trying to run everpad-lens

Traceback (most recent call last):
  File "/usr/bin/everpad-lens", line 9, in <module>
    load_entry_point('everpad==2.5dev', 'console_scripts', 'everpad-lens')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2309, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2015, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/pymodules/python2.7/everpad/specific/unity/lens.py", line 3, in <module>
    from singlet.lens import SingleScopeLens, ListViewCategory
  File "/usr/lib/python2.7/dist-packages/singlet/lens/__init__.py", line 1, in <module>
    from singlet.lens.base import (
  File "/usr/lib/python2.7/dist-packages/singlet/lens/base.py", line 140, in <module>
    class SingleScopeLens(Lens):
  File "/usr/lib/python2.7/dist-packages/singlet/lens/base.py", line 57, in __new__
    if isinstance(a, Unity.Scope):
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 313, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 134, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Unity' object has no attribute 'Scope'

Revision history for this message
MIchal ThomaT (michal-thoma) wrote :

Anyone found solution - workaround?

Revision history for this message
SlavikZ (slavikz) wrote :

Ubuntu 13.10 Unity 7 API has a lot of changes compared to Unity 5 API. For example, there is no Lens at all in the new API, but only Scopes.

For those who unable to use everpad-lens with ubuntu 13.10+ - you may try to use my unity-scope-everpad ( https://github.com/SlavikZ/unity-scope-everpad ) as a everpad-lens replacement.

Revision history for this message
oz (zasymenko) wrote :

The solution from SlavikZ (slavikz) really works!! @SlavikZ : Thank you so much. You made my environment much friendly. Thank you again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.