You are not logged in.

#1 2016-06-21 17:52:56

whoops
Member
Registered: 2009-03-19
Posts: 891

[solved]onboard 1.2.0-3 (hunspell) broken?

Onboard fails to start:

Traceback (most recent call last):
  File "/usr/bin/onboard", line 35, in <module>
    from Onboard.OnboardGtk import OnboardGtk as Onboard
  File "/usr/lib/python3.5/site-packages/Onboard/OnboardGtk.py", line 46, in <module>
    from Onboard.Keyboard        import Keyboard
  File "/usr/lib/python3.5/site-packages/Onboard/Keyboard.py", line 59, in <module>
    from Onboard.WordSuggestions       import WordSuggestions
  File "/usr/lib/python3.5/site-packages/Onboard/WordSuggestions.py", line 35, in <module>
    import Onboard.pypredict as pypredict
  File "/usr/lib/python3.5/site-packages/Onboard/pypredict/__init__.py", line 25, in <module>
    from pypredict.lm_wrapper import *
  File "/usr/lib/python3.5/site-packages/Onboard/pypredict/__init__.py", line 25, in <module>
    from pypredict.lm_wrapper import *
  File "/usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py", line 27, in <module>
    import pypredict.lm as lm
ImportError: /usr/lib/python3.5/site-packages/Onboard/pypredict/lm.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN19_CachedDynamicModelI16NGramTrieRecencyI8TrieNodeI14TrieNodeKNBaseI11RecencyNodeEE14BeforeLastNodeI20BeforeLastNodeKNBaseIS3_E8LastNodeIS3_EESA_EE14DEFAULT_LAMBDAE

Here's the dependencies upgrades since the last working onboard version has been recompiled:

[2016-04-09 11:34] [ALPM] upgraded onboard (1.1.2-3 -> 1.2.0-2)
[2016-04-09 23:12] [ALPM] upgraded python-gobject (3.18.2-1 -> 3.20.0-1)
[2016-04-09 23:12] [ALPM] upgraded dconf (0.24.0-1 -> 0.26.0-1)
[2016-04-09 23:12] [ALPM] upgraded gsettings-desktop-schemas (3.18.1-1 -> 3.20.0-1)
[2016-04-09 23:12] [ALPM] upgraded gtk3 (3.18.9-1 -> 3.20.2-1)
[2016-04-09 23:13] [ALPM] upgraded libcanberra (0.30-5 -> 0.30-6)
[2016-04-09 23:13] [ALPM] upgraded libcanberra-pulse (0.30-5 -> 0.30-6)
[2016-04-13 12:01] [ALPM] upgraded gtk3 (3.20.2-1 -> 3.20.3-1)
[2016-04-27 14:14] [ALPM] upgraded desktop-file-utils (0.22-1 -> 0.22-2)
[2016-04-28 01:07] [ALPM] upgraded gtk3 (3.20.3-1 -> 3.20.3-3)
[2016-04-30 09:22] [ALPM] upgraded librsvg (2:2.40.15-1 -> 2:2.40.15-2)
[2016-04-30 09:22] [ALPM] upgraded gtk3 (3.20.3-3 -> 3.20.3-4)
[2016-05-10 19:04] [ALPM] upgraded gtk3 (3.20.3-4 -> 3.20.4-1)
[2016-05-10 19:04] [ALPM] upgraded iso-codes (3.67-1 -> 3.68-1)
[2016-05-11 12:31] [ALPM] upgraded gtk3 (3.20.4-1 -> 3.20.4-2)
[2016-05-21 11:31] [ALPM] upgraded gtk3 (3.20.4-2 -> 3.20.5-2)
[2016-05-24 00:21] [ALPM] upgraded gtk3 (3.20.5-2 -> 3.20.6-1)
[2016-05-28 00:35] [ALPM] upgraded gsettings-desktop-schemas (3.20.0-1 -> 3.21.2-1)
[2016-06-11 00:06] [ALPM] upgraded librsvg (2:2.40.15-2 -> 2:2.40.16-1)
[2016-06-17 09:17] [ALPM] upgraded python-gobject (3.20.0-1 -> 3.20.0-2)
[2016-06-21 12:59] [ALPM] upgraded hunspell (1.3.4-1 -> 1.4.1-1)
[2016-06-21 12:59] [ALPM] upgraded onboard (1.2.0-2 -> 1.2.0-3)

Recompiling onboard didn't help.
Downgrading hunspell and recompiling onboard didn't help either.
Downgrading both hunspell and onboard fixed it.


Tried deleting configs - that didn't change anything. Not sure if I found all of them though.

Does this sound like an archlinux bug or upstream or did I break it somehow?

Last edited by whoops (2016-12-16 15:36:59)

Offline

#2 2016-06-22 05:55:42

Areeraj
Member
Registered: 2016-06-22
Posts: 2

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Hi, same thing for me, found no solution except downgrading those packages.
m

Offline

#3 2016-06-22 16:15:57

steelcowboy
Member
From: California, USA
Registered: 2014-09-04
Posts: 48

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

I went straight to the downgrade before capturing the entire traceback, only the last line (which is the same). Opened a bug report, just copy/pasted the OP's error into a file and attached. Hope this is resolved soon!

Offline

#4 2016-06-22 17:50:22

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Oh... so that means it's arch, not upstream, I guess? I can never tell -.-

( Just in case anyone is wondering why "opening links from external programs suddenly isn't working any more": downgrade of hunspell breaks firefox, possibly more. Already open instances work fine safe for that "isolation" though. )

Offline

#5 2016-06-22 17:54:18

steelcowboy
Member
From: California, USA
Registered: 2014-09-04
Posts: 48

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Yeah, it should be Arch because as far as I know any time a package has a x.xx-x release the -x part is it being repackaged or patched by the maintainers

Offline

#6 2016-06-22 19:43:52

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Oh... I thought upstream onboard and/or hunspell might just not be compatible with the new libraries (pygobject or something) since recompiling seemed to break it rather than fix it...

Offline

#7 2016-06-24 14:25:37

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Just commented out 2 lines and deleted a few words to make a very crappy workaround (because I have no idea what I'm doing):

#diff -Naur /usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py.bak /usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py 
--- /usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py.bak	2016-06-24 16:12:26.959054389 +0200
+++ /usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py	2016-06-24 16:14:42.889607467 +0200
@@ -24,8 +24,8 @@
 import codecs
 from math import log
 
-import pypredict.lm as lm
-from pypredict.lm import overlay, linint, loglinint  # exported symbols
+#import pypredict.lm as lm
+#from pypredict.lm import overlay, linint, loglinint  # exported symbols
 
 class _BaseModel:
 
@@ -184,7 +184,7 @@
         return changes
 
 
-class LanguageModel(_BaseModel, lm.LanguageModel):
+class LanguageModel():
     """
     Abstract class representing the base class of all models.
     Keep this for access to class constants.
@@ -192,19 +192,19 @@
     def __init__(self):
         raise NotImplementedError()
 
-class UnigramModel(_BaseModel, lm.UnigramModel):
+class UnigramModel():
     pass
 
 
-class DynamicModel(_BaseModel, lm.DynamicModel):
+class DynamicModel():
     pass
 
 
-class DynamicModelKN(_BaseModel, lm.DynamicModelKN):
+class DynamicModelKN():
     pass
 
 
-class CachedDynamicModel(_BaseModel, lm.CachedDynamicModel):
+class CachedDynamicModel():
     pass

( Onboard runs fine now except for the hunspell feature  but not exit properly; might need to be killed with -9 )

Last edited by whoops (2016-06-24 14:34:14)

Offline

#8 2016-06-24 15:51:35

thebonaestest
Member
Registered: 2016-03-20
Posts: 7

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

I was having the same problem, I made the modifications you suggested to /usr/lib/python3.5/site-packages/Onboard/pypredict/lm_wrapper.py, onboard is working great now.
Thanks for the solution! (Even if it is kind of sketch)

Offline

#9 2016-06-28 07:48:34

Leonardo19
Member
Registered: 2010-04-04
Posts: 4

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

It helped me too, thanks!

Offline

#10 2016-06-29 20:07:05

steelcowboy
Member
From: California, USA
Registered: 2014-09-04
Posts: 48

Re: [solved]onboard 1.2.0-3 (hunspell) broken?

Onboard 1.2.0-4 fixes the issue

Offline

Board footer

Powered by FluxBB