remarkableapp / Remarkable-Linux

MOVED TO https://github.com/jamiemcg/Remarkable
https://github.com/jamiemcg/Remarkable
MIT License
13 stars 2 forks source link

remarkable fails on launch #14

Closed yadayada closed 8 years ago

yadayada commented 8 years ago

I'm using version 1.62 on Debian stretch.

Recently, I get the following error when I try to run remarkable

/usr/lib/python3/dist-packages/remarkable/__init__.py:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk # pylint: disable=E0611
/usr/lib/python3/dist-packages/remarkable/RemarkableWindow.py:28: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit
*Spellchecking not enabled.
*To enable spellchecking install pygtkspellcheck
*https://pypi.python.org/pypi/pygtkspellcheck/
Traceback (most recent call last):
  File "/usr/bin/remarkable", line 66, in <module>
    remarkable.main()
  File "/usr/lib/python3/dist-packages/remarkable/__init__.py", line 48, in main
    window = RemarkableWindow.RemarkableWindow()
  File "/usr/lib/python3/dist-packages/remarkable_lib/Window.py", line 52, in __new__
    builder = get_builder('RemarkableWindow')
  File "/usr/lib/python3/dist-packages/remarkable_lib/helpers.py", line 48, in get_builder
    builder.add_from_file(ui_filename)
  File "/usr/lib/python3/dist-packages/remarkable_lib/Builder.py", line 86, in add_from_file
    Gtk.Builder.add_from_file(self, filename)
GLib.Error: gtk-builder-error-quark: /usr/share/remarkable/ui/RemarkableWindow.ui:835:58 Object with ID  not found (13)
FindHao commented 8 years ago

Got this problem too,after my upgrade from debian jessie to debian testing.

mcbridet commented 8 years ago

+1

garzaj commented 8 years ago

I have the same problem using Ubuntu Gnome 15.10

sitzmoebelchronograph commented 8 years ago

I can confirm this issue.

On my Debian stretch I sloved this by editing /usr/share/remarkable/ui/RemarkableWindow.ui I disabled all stuff from line 834 to 842 like this:

           <!--
                <child>
                  <object class="GtkMenuItem" id="mnu_about">
                    <property name="related_action"/>
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="label" translatable="yes">About</property>
                    <property name="use_underline">True</property>
                  </object>
                </child>
               -->

This will disable the "About" menu entry in remarkables "Help" menu. This will fix the start issue for me. Hope this will help you guys to fix your issues too

$ remarkable --version remarkable 1.62

mxmlnkn commented 8 years ago

I have the exact same problem with Debian sid. The only 3 hours old workaround by @sitzmoebelchronograph works, thank you. What a lucky coincidence :). My configuration:

dpkg -l python3 python dconf-gsettings-backend gsettings-backend \
gir1.2-glib-2.0 gir1.2-gtk-3.0 python3-markdown python3-bs4 \
gir1.2-webkit-3.0 yelp wkhtmltopdf python3-gi remarkable

+++-========================-=================-=============
ii  dconf-gsettings-backend: 0.24.0-2          amd64        
ii  gir1.2-glib-2.0:amd64    1.46.0-3          amd64        
ii  gir1.2-gtk-3.0:amd64     3.18.7-1          amd64        
ii  gir1.2-webkit-3.0:amd64  2.4.9-3           amd64        
un  gsettings-backend        <none>            <none>       
ii  python                   2.7.11-1          amd64        
ii  python3                  3.4.3-7           amd64        
ii  python3-bs4              4.4.1-1           all          
ii  python3-gi               3.18.2-2          amd64        
ii  python3-markdown         2.6.5-2           all          
ii  remarkable               1.62              all          
ii  wkhtmltopdf              0.12.2.4-1        amd64        
ii  yelp                     3.16.1-1          amd64        

The packages above are copy pasted from the dependencies of

apt-cache show -t sid remarkable

I installed this by using the debian package from here http://remarkableapp.github.io/linux/download.html and then

sudo dpkg -i remarkable_1.62_all.deb
sudo apt-get -f install -t sid
sitzmoebelchronograph commented 8 years ago

@mxmlnkn U'r welcome. For me it looks like an issue in remarkable code (missing reference for mnu_about), because I can't run actually remarkable .deb Package on older Debian Systems as "stretch"

@remarkableapp Did you think you able to fix this issue in near future?

docraddley commented 8 years ago

Fwiw, I only commented out line 835. This way you can still have "About" in "Help."

KevinHu-1024 commented 8 years ago

@sitzmoebelchronograph

Thank you, that's pretty nice!

But when I start it from terminal, it still report a error.(Finally it works, remain the error in terminal).

Wait for next offical's update.

/usr/lib/python3/dist-packages/remarkable/__init__.py:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk # pylint: disable=E0611
/usr/lib/python3/dist-packages/remarkable/RemarkableWindow.py:28: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit
*Spellchecking not enabled.
*To enable spellchecking install pygtkspellcheck
*https://pypi.python.org/pypi/pygtkspellcheck/
excieve commented 8 years ago

Same issue on Fedora 23 with Gnome 3.18.2, also "fixed" with a workaround by @sitzmoebelchronograph.

aaamourao commented 8 years ago

Same issue on Fedora 23 with Gnome 3! Thx,@sitzmoebelchronograph !!

yedamao commented 8 years ago

Same issue on ubuntu 16.04. Thanks @sitzmoebelchronograph . It works

anvius commented 8 years ago

Thanks @sitzmoebelchronograph . It works. Thanks @Zaiyin too. At the end, I commented the line #835. It works too.

TheInitializer commented 8 years ago

Having the same issue on Fedora 23 w/ Gnome

TheInitializer commented 8 years ago

@Zaiyin it worked! Thanks so much

iqbalhusen commented 8 years ago

+1 Thanks @sitzmoebelchronograph . It works.

verbal007 commented 8 years ago

Using Ubuntu GNOME 16.04 LTS and had same problem... but it's now fixed!! +1 Thanks @sitzmoebelchronograph

wangxinarhat commented 8 years ago

@Zaiyin it works

drvenom123 commented 8 years ago

I'm having the same issue on Xubuntu 16.04. Unfortunately, @sitzmoebelchronograph solution didn’t work for me. Any estimated time for a fix? Thanks.

NathanJPlummer commented 8 years ago

Confirming:

Linux Mint 18 based on Ubuntu 16.04. Only works with the workaround.

remarkableapp commented 8 years ago

Updated DEB and RPM available in this repository if you wish to test. Fixes #14 crash on launch.

Will be uploaded to site soon.

gwillem commented 8 years ago

Thanks, the 1.72 deb works awesome on Ubuntu 16.04

baddwin commented 6 years ago

I've just installed this on Fedora 28 from COPR of neteler/remarkable and still getting this issue and the workaround is not working any more

Traceback (most recent call last):
  File "/bin/remarkable", line 65, in <module>
    import remarkable
  File "/usr/lib/python3.6/site-packages/remarkable/__init__.py", line 30, in <module>
    from remarkable import RemarkableWindow
  File "/usr/lib/python3.6/site-packages/remarkable/RemarkableWindow.py", line 26, in <module>
    gi.require_version('GtkSource', '3.0')
  File "/usr/lib64/python3.6/site-packages/gi/__init__.py", line 130, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace GtkSource not available
NathanJPlummer commented 6 years ago

@baddwin

Just a guess, but maybe something went wrong with that build in the repository?

Maybe try the RPM direct from the Remarkable webpage