everpad icon indicating copy to clipboard operation
everpad copied to clipboard

Everpad not working in Ubuntu 13.10

Open alexandrev opened this issue 11 years ago • 42 comments

Everpad is not working in my Ubuntu 13.10 installation. When I start everpad-provider nothing happend. I also tried everpad-provider --verbose but no log traces shows up.

Anyone has tested this application in the new Ubuntu 13.10 version? How can i get more information about the error I am facing?

Thank you very much for your support.

alexandrev avatar Oct 13 '13 21:10 alexandrev

I'm assuming that you compiled Everpad from source because I don't see a deb in the PPA. After you run everpad-provider, try to run "ps -e | grep ever" and see if the process is running.

int0x191f2 avatar Oct 14 '13 14:10 int0x191f2

The process was running. After I removed the .everpad folder of my home, when I running everpad-provider --verbose I can see this:

everpad-provider --verbose Traceback (most recent call last): File "/usr/bin/everpad-provider", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2805, in working_set.require(requires) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 696, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: PySide

I'm using the compiled version of the raring repository.

I hope all that new info can help to solve the problem.

alexandrev avatar Oct 14 '13 14:10 alexandrev

It looks like pyside is missing. Try a "sudo pip install pyside"

int0x191f2 avatar Oct 14 '13 15:10 int0x191f2

ppa is not aviable

bluesky8318 avatar Oct 19 '13 14:10 bluesky8318

Same Issue here, and I got the debug information as follow:

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/everpad/provider/daemon.py", line 54, in on_remove_authenticated session.query(models.Note).delete( File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1107, in query return self._query_cls(entities, self, **kwargs) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 115, in init self._set_entities(entities) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 124, in _set_entities self._set_entity_selectables(self._entities) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 157, in _set_entity_selectables ent.setup_entity(*d[entity]) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2861, in setup_entity self._with_polymorphic = ext_info.with_polymorphic_mappers File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in get obj.dict[self.name] = result = self.fget(obj) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1458, in _with_polymorphic_mappers configure_mappers() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2153, in configure_mappers mapper._post_configure_properties() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1275, in _post_configure_properties prop.init() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/interfaces.py", line 231, in init self.do_init() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/properties.py", line 1028, in do_init self._setup_join_conditions() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/properties.py", line 1102, in _setup_join_conditions can_be_synced_fn=self._columns_are_mapped File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/relationships.py", line 122, in init self._determine_direction() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/relationships.py", line 686, in _determine_direction "via the foreign_keys argument." % self.prop) sqlalchemy.exc.ArgumentError: Can't determine relationship direction for relationship 'Note.conflict_parent' - foreign key columns within the join condition are present in both the parent and the child's mapped tables. Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.

metalbrick avatar Oct 19 '13 18:10 metalbrick

This is similar to #300

trivoallan avatar Oct 20 '13 10:10 trivoallan

the provider runs Ok (for me),

I have problem whit everpad-lens

non-root$ everpad-lens Traceback (most recent call last): File "/usr/bin/everpad-lens", line 9, in 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 from singlet.lens import SingleScopeLens, ListViewCategory File "/usr/lib/python2.7/dist-packages/singlet/lens/init.py", line 1, in from singlet.lens.base import ( File "/usr/lib/python2.7/dist-packages/singlet/lens/base.py", line 140, in 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'

arpagon avatar Oct 22 '13 21:10 arpagon

@arpagon Are you using Ubuntu 13.10 ? Do you install by package or compile yourself ?

metalbrick avatar Oct 23 '13 03:10 metalbrick

@metalbrick I get the same output as arpagon and I'm running it from the raring packages in the PPA.

Cybolic avatar Oct 24 '13 10:10 Cybolic

Same error as alexandrev. I compiled it from source (after cloning from github repo.) https://launchpad.net/~khurshid-alam/+archive/experimental-build/+files/everpad_2.5.6ubuntu1_i386.deb.

I even tried to install python-pyside. But that didn't help. Downgrading python-sqlalchemy to 0.7.9 did not help either. Please fix it as soon as possible.

Here is the error:

Traceback (most recent call last):
  File "/usr/bin/everpad", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2805, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 696, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 594, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PySide

khurshid-alam avatar Oct 26 '13 10:10 khurshid-alam

Package for saucy pushed to ppa.

nvbn avatar Oct 27 '13 21:10 nvbn

I still get the error :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/everpad/pad/indicator.py", line 76, in update
    20, Note.ORDER_UPDATED_DESC, 1,
  File "/usr/lib/pymodules/python2.7/everpad/tools.py", line 32, in wrapper
    return getattr(self.__interface, name)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlalchemy.exc.InvalidRequestError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.7/everpad/provider/service.py", line 101, in find_notes
    qs = self.sq(Note).filter(and_(
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1107, in query
    return self._query_cls(entities, self, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 115, in __init__
    self._set_entities(entities)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 124, in _set_entities
    self._set_entity_selectables(self._entities)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 157, in _set_entity_selectables
    ent.setup_entity(*d[entity])
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2861, in setup_entity
    self._with_polymorphic = ext_info.with_polymorphic_mappers
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1458, in _with_polymorphic_mappers
    configure_mappers()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2150, in configure_mappers
    raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers.  Original exception was: Can't determine relationship direction for relationship 'Note.conflict_parent' - foreign key columns within the join condition are present in both the parent and the child's mapped tables.  Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.
$ aptitude show everpad | grep Version
Version : 2.5.6-0~saucy

trivoallan avatar Oct 28 '13 09:10 trivoallan

I can confirm trivoallan's output; I'm getting the exact same error with that package (amd64).

Cybolic avatar Oct 28 '13 11:10 Cybolic

Same error here, confirmed. Freshly installed Ubuntu 13.10 x64 in a VM.

BlackDex avatar Oct 28 '13 12:10 BlackDex

I have the same error as trivoallan and I'm on amd64

luisdavim avatar Oct 28 '13 19:10 luisdavim

I delete all the obsolete package files of everpad and PySide, and install directly from the ppa, still not get it work.

The everpad-provider gave no output at all, the debug information of everpad as follows:

Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/everpad/pad/indicator.py", line 76, in update 20, Note.ORDER_UPDATED_DESC, 1, File "/usr/lib/pymodules/python2.7/everpad/tools.py", line 32, in wrapper return getattr(self.*interface, name)(_args, _kwargs) File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call return self._proxy_method(_args, *_keywords) File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call *_keywords) File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlalchemy.exc.InvalidRequestError: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, *args, *keywords) File "/usr/lib/pymodules/python2.7/everpad/provider/service.py", line 101, in find_notes qs = self.sq(Note).filter(and( File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1107, in query return self._query_cls(entities, self, **kwargs) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 115, in init self._set_entities(entities) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 124, in _set_entities self._set_entity_selectables(self._entities) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 157, in _set_entity_selectables ent.setup_entity(*d[entity]) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2861, in setup_entity self._with_polymorphic = ext_info.with_polymorphic_mappers File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in get obj.dict[self.name] = result = self.fget(obj) File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1458, in _with_polymorphic_mappers configure_mappers() File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2150, in configure_mappers raise e InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers. Original exception was: Can't determine relationship direction for relationship 'Note.conflict_parent' - foreign key columns within the join condition are present in both the parent and the child's mapped tables. Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.

metalbrick avatar Oct 29 '13 02:10 metalbrick

The same error. Version: 2.5.6-0~saucy. Ubuntu 13.10 x64

iGhost avatar Oct 29 '13 08:10 iGhost

From syslog (starting everpad-provider) :

[ 396.414164] everpad-provide[3008]: segfault at 8 ip 00007fc069a65b34 sp 00007fff9e474860 error 4 in libdbus-1.so.3.7.4[7fc069a40000+44000]

[ 424.070214] everpad-provide[3030]: segfault at 2929000 ip 00007f867365116c sp 00007fff81fe4378 error 4 in libc-2.17.so[7f8673502000+1bd000]

ferencsarai avatar Oct 29 '13 08:10 ferencsarai

Just installed everpad from a ppa and this is what I got

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/everpad/pad/indicator.py", line 76, in update
    20, Note.ORDER_UPDATED_DESC, 1,
  File "/usr/lib/pymodules/python2.7/everpad/tools.py", line 32, in wrapper
    return getattr(self.__interface, name)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlalchemy.exc.InvalidRequestError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.7/everpad/provider/service.py", line 101, in find_notes
    qs = self.sq(Note).filter(and_(
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1107, in query
    return self._query_cls(entities, self, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 115, in __init__
    self._set_entities(entities)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 124, in _set_entities
    self._set_entity_selectables(self._entities)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 157, in _set_entity_selectables
    ent.setup_entity(*d[entity])
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2861, in setup_entity
    self._with_polymorphic = ext_info.with_polymorphic_mappers
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in __get__
    obj.__dict__[self.__name__] = result = self.fget(obj)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1458, in _with_polymorphic_mappers
    configure_mappers()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2150, in configure_mappers
    raise e
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers.  Original exception was: Can't determine relationship direction for relationship 'Note.conflict_parent' - foreign key columns within the join condition are present in both the parent and the child's mapped tables.  Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.

full terminal output http://slexy.org/view/s20nwCR9QK

strace if you need it http://slexy.org/view/s21jhZPS4j

Levan7 avatar Oct 29 '13 13:10 Levan7

I have installed python.pyside from repo (sudo apt-get install python-pyside) from repo AND manually installed python-sqlalchemy0.7.9. Now after installing from ppa it works in saucy. It can authorize & sync note from server. But everpad-lens doesn't work.

When I run everpad-lens in terminal I get following error:

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'

khurshid-alam avatar Oct 30 '13 08:10 khurshid-alam

I installed the everpad 2.5.6 version, and downgrade python-sqlalchemy and python-sqlalchemy-ext to 0.7.9 and it seems to work now.

BlackDex avatar Oct 30 '13 09:10 BlackDex

That did not do the trick for me :

trivoallan@trivoallan-Latitude-E6430:~/tmp$ aptitude show everpad python-sqlalchemy python-sqlalchemy-ext | grep Version
Version : 2.5.6-0~saucy
Version : 0.7.9-1
Version : 0.7.9-1
trivoallan@trivoallan-Latitude-E6430:~/tmp$ everpad
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/everpad/pad/indicator.py", line 76, in update
    20, Note.ORDER_UPDATED_DESC, 1,
  File "/usr/lib/pymodules/python2.7/everpad/tools.py", line 32, in wrapper
    return getattr(self.__interface, name)(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.sqlalchemy.exc.InvalidRequestError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/pymodules/python2.7/everpad/provider/service.py", line 101, in find_notes
    qs = self.sq(Note).filter(and_(
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1107, in query
    of objects which involve existing database queries,
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 115, in __init__
    entity_wrapper(self, ent)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 124, in _set_entities
    self._mapper_adapter_map = d = self._mapper_adapter_map.copy()
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 157, in _set_entity_selectables
    for m in m2.iterate_to_root():
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2861, in setup_entity
    for_update = {'read': 'read',
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 612, in __get__
    [self._il_addtl])
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 1458, in _with_polymorphic_mappers
    return result
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/mapper.py", line 2150, in configure_mappers
InvalidRequestError: One or more mappers failed to initialize - can't proceed with initialization of other mappers.  Original exception was: Can't determine relationship direction for relationship 'Note.conflict_parent' - foreign key columns within the join condition are present in both the parent and the child's mapped tables.  Ensure that only those columns referring to a parent column are marked as foreign, either via the foreign() annotation or via the foreign_keys argument.

trivoallan avatar Oct 30 '13 09:10 trivoallan

How can I downgrade sqlalchemy to the appropriate version?

mgaunard avatar Oct 30 '13 10:10 mgaunard

@mgaunard Download the deb from here https://launchpad.net/ubuntu/raring/i386/python-sqlalchemy/0.7.9-1

khurshid-alam avatar Oct 31 '13 11:10 khurshid-alam

khurshid-alam's advice worked, even without installing pyside. Lens still doesn't work, as described.

Cybolic avatar Oct 31 '13 12:10 Cybolic

khurshid-alam's advice did the trick for me also.

gperr1 avatar Oct 31 '13 13:10 gperr1

@khurshid-alam your workaround did the trick for me, thanks.

Then it seems the issue of everpad is to do with either the conflict between sqlalchemy and everpad or the latest sqlalchmey itself. Wonder if there anyone can figure out what cause the problem with everpad-lens.

metalbrick avatar Oct 31 '13 15:10 metalbrick

There is seems a more strict foreign key standards in sqlalchemy 0.8.* and that is a problem

iGhost avatar Nov 01 '13 12:11 iGhost

The problem is that everpad doesn't specify the relationships between its keys correctly. Apparently the everpad devs do not want to fix that so all we can do is rollback to an old version of sqlachemy that was more tolerant.

mgaunard avatar Nov 01 '13 18:11 mgaunard

@khurshid-alam did you get your everpad-lens problem fixed? I was able to load everpad, but not the lens.

brunodahora avatar Nov 01 '13 19:11 brunodahora