Results 1 to 9 of 9

Thread: botched installation of keepnote application

  1. #1
    grglsn NNTP User

    Default botched installation of keepnote application

    Hi everyone,

    I messed up something, and I need help in trying to fix it. As I am
    researching the best note taking programs, I stumbled across keepnote. I
    want a python based program instead of a java based program; hence this
    is better than evernote if it works well. But as I looked through, I did
    not know if the rpm was checked out for opensuse, so I decided to
    install the tarball instead. It is supposed to be platform independent,
    and I have done this for some other applications I needed, so it seemed
    like a good idea.

    The command I had used to install the tarball version was as follows. I
    simply navigated to the extracted directory where the setup.py script
    was, and typed (as root)

    python setup.py install

    This ran a script and created directorys in /usr/<something> in order to
    run keepnote.

    Well, I get a series of errors when I try to run keepnote and some of
    the gui
    doesn't function all that well. Here are the errors:

    Code:
    george@linux-o3ef:~/Documents> keepnote
    
    ==============================================
    KeepNote 0.7.8: Fri Nov  2 21:09:54 2012
    
    ** (process:2205): WARNING **: Trying to register gtype
    'GMountMountFlags' as
    enum when in fact it is of type 'GFlags'
    
    ** (process:2205): WARNING **: Trying to register gtype
    'GDriveStartFlags' as
    enum when in fact it is of type 'GFlags'
    
    ** (process:2205): WARNING **: Trying to register gtype
    'GSocketMsgFlags' as
    enum when in fact it is of type 'GFlags'
    enabling extension 'keepnote'
    enabling extension 'backup_tar'
    enabling extension 'new_file'
    enabling extension 'editor_insert_date'
    enabling extension 'command_basics'
    enabling extension 'export_html'
    enabling extension 'python_prompt'
    enabling extension 'notebook_http'
    
    (keepnote:2205): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion
    `G_IS_OBJECT (object)' failed
    
    (keepnote:2205): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion
    `G_IS_OBJECT (object)' failed

    However, rather than trying to troubleshoot all these errors which are a
    bit beyond my understanding, I did a package search on opensuse.org, and
    lo and behold, there was a keepnote rpm that was already set up and
    ready to run. It is not in the regular repositories, but it has been
    tested (to some degree).

    So I downloaded the rpm and went to install it instead of the tarball
    package (not knowing how to uninstall the version I installed from the
    tarball). However, since I ran the keepnote setup from the tarball
    before, it did something and put the keepnote from the tarball into my
    system instead of the rpm version.

    So here is the question. How do I uninstall keepnote that was installed
    from the tarball and make sure that when I issue the command 'keepnote',
    it runs what I installed from the rpm? I am uncertain about where and
    how program files are kept.

    I ran the "find" command as follows, and here are the directories where
    anything with "keepnote" is located:

    Code:
    george@linux-o3ef:~/Documents> find /usr -name keepnote
    /usr/local/lib/python2.7/site-packages/keepnote
    /usr/local/bin/keepnote
    /usr/lib/python2.7/site-packages/keepnote
    /usr/share/doc/packages/keepnote
    /usr/bin/keepnote
    Thanks in advance for your help.

    G.O.
    Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | ATI Radeon HD 3300 | 16GB
    Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | nVidia C61 GeForce
    7025 | 4GB
    Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | Intel HD Graphics 3000
    | 8GB
    learning openSUSE and loving it

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: botched installation of keepnote application

    Remove the files in /usr/local this directory is searched first and so
    your system never starts the version you installed with the rpm
    Code:
    su -
    rm -rf /usr/local/lib/python2.7/site-packages/keepnote
    rm /usr/local/bin/keepnote
    after that try to ru keepnote again (of course as normal user, exit the
    root shell before).

    --
    PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
    ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
    eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server

  3. #3
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: botched installation of keepnote application

    On Fri 02 Nov 2012 11:56:32 PM CDT, grglsn wrote:

    Code:
    george@linux-o3ef:~/Documents> find /usr -name keepnote
    /usr/local/lib/python2.7/site-packages/keepnote
    /usr/local/bin/keepnote
    /usr/lib/python2.7/site-packages/keepnote
    /usr/share/doc/packages/keepnote
    /usr/bin/keepnote
    Hi
    Since you didn't add the --prefix=/usr to your initial 'botched' (your
    words ) install, the files in /usr/local are the ones to remove,
    however running from the original tarball directory;
    Code:
    python setup.py uninstall
    Should remove the offending install.

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 5 days 1:08, 5 users, load average: 0.00, 0.01, 0.05
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


  4. #4
    Join Date
    Apr 2012
    Location
    Philippines
    Posts
    218

    Default Re: botched installation of keepnote application

    Martin Helm wrote:

    > Remove the files in /usr/local this directory is searched first and

    so
    > your system never starts the version you installed with the rpm
    >
    Code:
    > su -
    > rm -rf /usr/local/lib/python2.7/site-packages/keepnote
    > rm /usr/local/bin/keepnote
    >
    > after that try to ru keepnote again (of course as normal user, exit

    the
    > root shell before).
    >


    Excellent, thank you. That did get rid of the offending install. Just
    to make sure, I uninstalled the rpm and made sure everything was clean,
    and then reinstalled the rpm via zypper.

    Now when I try and run keepnote, this comes up:

    Code:
    george@linux-o3ef:~> keepnote
    
    ==============================================
    KeepNote 0.7.8: Sat Nov  3 09:09:36 2012
    
    ** (process:8725): WARNING **: Trying to register gtype
    'GMountMountFlags' as enum when in fact it is of type 'GFlags'
    
    ** (process:8725): WARNING **: Trying to register gtype
    'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
    
    ** (process:8725): WARNING **: Trying to register gtype
    'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
    Traceback (most recent call last):
    File "/usr/bin/keepnote", line 437, in <module>
    main(sys.argv)
    File "/usr/bin/keepnote", line 423, in main
    start_gui(argv, options, args, cmd_exec)
    File "/usr/bin/keepnote", line 270, in start_gui
    app = keepnote.gui.KeepNote(basedir)
    File "/usr/lib/python2.7/site-packages/keepnote/gui/__init__.py",
    line 430, in __init__
    self.app_options_dialog =
    keepnote.gui.dialog_app_options.ApplicationOptionsDialog(self)
    File "/usr/lib/python2.7/site-
    packages/keepnote/gui/dialog_app_options.py", line 882, in __init__
    self.add_default_sections()
    File "/usr/lib/python2.7/site-
    packages/keepnote/gui/dialog_app_options.py", line 944, in
    add_default_sections
    _("Language")),
    File "/usr/lib/python2.7/site-
    packages/keepnote/gui/dialog_app_options.py", line 372, in __init__
    for lang in keepnote.trans.get_langs():
    File "/usr/lib/python2.7/site-packages/keepnote/trans.py", line 146,
    in get_langs
    return os.listdir(localedir)
    OSError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-
    packages/keepnote/rc/locale'
    Any help on what I should do next? I downloaded the package from here:
    http://software.opensuse.org/package/keepnote

    It looks like the build succeeded, but I don't know that means they
    tested the application also.

    --
    G.O.
    Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | ATI Radeon HD 3300 |
    16GB
    Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | nVidia C61 GeForce
    7025 | 4GB
    Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | Intel HD Graphics
    3000 | 8GB
    learning openSUSE and loving it

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: botched installation of keepnote application

    Hi
    Have you installed the keepnote-lang rpm if you installed from user Lazy_Kents repository?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Apr 2012
    Location
    Philippines
    Posts
    218

    Default Re: botched installation of keepnote application

    malcolmlewis wrote:

    >
    > Hi
    > Have you installed the keepnote-lang rpm if you installed from user
    > Lazy_Kents repository?
    >
    >


    I haven't seen the keepnote-lang rpm in his repository. Where might I
    find that?

    --
    G.O.
    Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | 16GB
    Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | 4GB
    Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | 8GB
    learning openSUSE and loving it

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: botched installation of keepnote application

    Am 03.11.2012 07:01, schrieb golson765:
    > I haven't seen the keepnote-lang rpm in his repository. Where might I
    > find that?
    >

    Not sure about Lazy_Kent repo, but I installed keepnote from the science
    repo, run it and it starts.

    --
    PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GeForce GT 420
    ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.2 | HD 3000
    eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: botched installation of keepnote application

    On Sat 03 Nov 2012 06:01:43 AM CDT, golson765 wrote:

    malcolmlewis wrote:

    >
    > Hi
    > Have you installed the keepnote-lang rpm if you installed from user
    > Lazy_Kents repository?
    >
    >


    I haven't seen the keepnote-lang rpm in his repository. Where might I
    find that?

    Hi
    It's here...
    http://download.opensuse.org/reposit...E_12.2/noarch/

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 5 days 13:52, 5 users, load average: 0.04, 0.04, 0.05
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: botched installation of keepnote application

    On Sat 03 Nov 2012 12:49:56 PM CDT, Martin Helm wrote:

    Am 03.11.2012 07:01, schrieb golson765:
    > I haven't seen the keepnote-lang rpm in his repository. Where might I
    > find that?
    >

    Not sure about Lazy_Kent repo, but I installed keepnote from the science
    repo, run it and it starts.

    Hi
    Yes, they haven't split it out, it should be...

    --
    Cheers Malcolm °¿° (Linux Counter #276890)
    openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
    up 5 days 13:52, 5 users, load average: 0.02, 0.04, 0.05
    CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •