Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It gives me error on Linux Mint 17.2 #20

Open
coworkingon-es opened this issue Sep 29, 2015 · 6 comments
Open

It gives me error on Linux Mint 17.2 #20

coworkingon-es opened this issue Sep 29, 2015 · 6 comments

Comments

@coworkingon-es
Copy link

<----------------
@/home/maria/.local/share/cinnamon/applets/[email protected]/applet.js:22
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:180
Extension@/usr/share/cinnamon/js/ui/extension.js:138
loadExtension@/usr/share/cinnamon/js/ui/extension.js:468
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:207
---------------->
error t=2015-09-29T13:41:00.334Z [Applet "[email protected]"]: Error importing applet.js from [email protected]
error t=2015-09-29T13:41:00.335Z Could not load applet [email protected]

@jonbrett
Copy link
Member

Similar error was reported on Mint 17.1 (#14). Try following the steps there and let me know if they work for you.

@sietse
Copy link

sietse commented Dec 16, 2015

[I've written this post once and edited it thrice. When I wrote it I thought I had solved the problem and gotten a working Hamster + applet. When I edited it the first time it was because of Github formatting. The second edit was because I found out Hamster's systray indicator is not an applet. This third edit is because I installed cinnamon-applet and it worked, so probably these are the instractions you need.]

Preamble

Alright. I, too, tried to get the Hamster applet to work on Cinnamon 2.6.13 in Linux Mint 17.2, and found it didn't work out of the box. I have just now gotten it to work, and below are what I think were the relevant steps. Because I tried out a great many things, I've had to guess at what got it to work in the end. Therefore, the instructions may be unreliable. Sorry.

If the instructions don't work for you, give me a shout (reply to this comment) and I'll see if I have time to set up a vagrantbox and figure it out in a pristine environment, but for now I'm going to leave them like this.

In brief

I uninstalled everything hamster-related, including the Cinnamon applet. I installed from the git repo, branch hamster_stable (commit a5bda5a59abf dated 2015-09-11). That got me a working Hamster. Then I installed the master branch of the Hamster cinnamon-applet (commit 551ec9b5e161 dated 2015-01-25), and that worked.

Instructions wot I think might work

  1. Uninstall the hamster-applet that the package manager provided:

    sudo aptitude uninstall hamster-applet hamster-indicator
    

    It may not uninstall correctly: at one point I discovered a wrong version of some hamster python files (storage.Storage was giving problems), and I presume they were left there during of my many installs+uninstalls this evening. So to be on the safe side, run this:

    cd /usr/local/lib/python2.7/dist-packages/
    sudo rm -rf hamster
    
  2. Also uninstall Cinnamon's hamster panel applet, if you already installed it:

    Right-click on panel > Add applets to the panel > search for hamster > [right click] > Uninstall

  3. Kill any hamster processes that may be still running:

    killall --regex --interactive '*hamster*'
    
  4. Clone the Hamster time tracker repo, and update your repo to the 'hamster-stable' branch. I'm using Mercurial plus hg-git, and I don't feel like hiding it, so have some Mercurial commands with the git stuff in comments. Feel free to use git yourself. Just know that you don't have to. ;-)

    # git clone https://github.com/projecthamster/hamster 
    hg clone git+https://github.com/projecthamster/hamster 
    
    cd hamster
    
    # git checkout hamster-stable
    hg update hamster-stable
    

    (Reason for using Mercurial even on git repos: because I'm in love with querying history with user-friendly revets and formatting output with user-friendly templates and generally having user-friendly non-insane commands.)

  5. Now follow the instructions in the repo's README.textile to configure Hamster.

    ./waf configure
    

    This also checks whether all required packages are available. Things I found myself having to install (there may have been more, I can't remember):

    sudo aptitude install gnome-doc-utils python-wnck
    

    Don't bother installing docbook2xml, I couldn't find it and it runs fine without it. For the rest, just keep running ./waf configure, googling the missing bits, and installing them. Repeat until you have everything (except docbook2xml).

  6. Once ./waf configure goes all green, build and install Hamster.

    ./waf build --prefix=/usr/local
    sudo ./waf install
    
  7. Now hamster should work. Try running hamster from the command line. I got a nice window.

  8. Next, install the Hamster Cinnamon applet following the instructions in its README.textile. This makes it available for adding to the panel. Instructions:

    cd ~/lib
    hg clone git+https://github.com/projecthamster/cinnamon-applet hamster-cinnamon-applet
    cd ~/.local/share/cinnamon/applets/
    ln -s ~/lib/hamster-cinnamon-applet [email protected]
    

    I hope you do, too!

  9. Add the Hamster Cinnamon applet to your panel:

    Right-click on panel > Add applets to the panel > Installed applets tab > search for hamster > [right click] > Add to panel

    I seem to recall my first attempt to add the applet to the panel failed, and the second one succeeded, and I did nothing in between? If you get that sort of problem, try rebooting in between, or restarting Cinnamon (Alt+F2 > restart) or somesuch.

    I hope this works for you, too!

Notes and observations

  • I tried building and installing the master branch of Hamster (8c739feccb9, dated 2015-11-04), but the resulting window seemd to be missing controls.

  • At some point I ran

    cd /usr/share/glib-2.0/schemas
    glib-compile-schemas .
    

    That's from Issue #18. I don't think it was necessary, in the end; this is why it's not in the instructions. But it may have helped, so I'm mentioning it here.

  • Unless I'm very wrong, I'm only seeing 'info'-level warnings in Looking Glass. Didn't see a single warning or error or trace, even while the hamster cinnamon panel applet was failing to activate. Tried googling Looking Glass and log levels, got nowhere.

@plutocrat
Copy link

plutocrat commented Jul 29, 2016

Hi,
Also having problems with this on Cinnamon 2.8.8 / Mint 17.3
When I try to add the app I get

error t=2016-07-29T04:18:30.422Z Schema "org.cinnamon.hamster-applet" not found.
error t=2016-07-29T04:18:30.422Z [Applet "[email protected]"]: Failed to evaluate 'main' function on applet: [email protected]/29
error t=2016-07-29T04:18:30.422Z Could not load applet [email protected]

I've followed the very detailed setup instructions above using ./waf configure until all the dependencies are satisfied. (Needed the following if that helps anyone avoid some googling.
sudo apt-get install libglib2.0-dev libdbus-glib-1-dev docbook-utils gnome-doc-utils xsltproc )
Used /waf build --prefix=/usr rather than /usr/local, but that shouldn't affect anything should it?
Hamster seems to run OK, but I don't have much control over starting and stopping tasks without the cinnamon applet.

@ghost
Copy link

ghost commented May 15, 2017

@coworkingon-es did not give any news regarding this issue.

For @plutocrat "Failed to evaluate 'main' function on applet: [email protected]/29"

We now know it's was due to shema rebuild issue who should be solved now.

@plutocrat
Copy link

Thanks. I actually struggled with this version of Hamster, as it seemed to have removed several features from the interface. I'm currently running Linux Mint 18.1 with the version of hamster supplied in the standard Ubuntu repositories, which does what I need.

@elbenfreund
Copy link
Contributor

As this Issue documents the cinnamon applet is now maintained by the Mint Linux team.
As such this repository is kept around for historical and migration reasons.
Contributors are encouraged to head over there and no work will be done on this
repository at all.
Thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants