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

Process /usr/lib/hamster-time-tracker/hamster-service exited with status 1 #165

Closed
nchevobbe opened this issue Jun 17, 2014 · 11 comments
Closed

Comments

@nchevobbe
Copy link

Hi,

I tried to install the 1.0.4 version on a fresh ubuntu 14.04 install, but when launching hamster i got this error :

Traceback (most recent call last):
  File "/usr/bin/hamster", line 374, in <module>
    hamster_client.today()
  File "/usr/bin/hamster", line 136, in today
    app = today.DailyView()
  File "/usr/lib/python2.7/dist-packages/hamster/today.py", line 90, in __init__
    self.create_hamster_window()
  File "/usr/lib/python2.7/dist-packages/hamster/today.py", line 148, in create_hamster_window
    self.new_name = widgets.ActivityEntry()
  File "/usr/lib/python2.7/dist-packages/hamster/widgets/activityentry.py", line 103, in __init__
    self.populate_suggestions()
  File "/usr/lib/python2.7/dist-packages/hamster/widgets/activityentry.py", line 234, in populate_suggestions
    self.activities = runtime.storage.get_activities(fact.activity)
  File "/usr/lib/python2.7/dist-packages/hamster/client.py", line 137, in get_activities
    return self._to_dict(('name', 'category'), self.conn.GetActivities(search))
  File "/usr/lib/python2.7/dist-packages/hamster/client.py", line 88, in conn
    '/org/gnome/Hamster'),
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/hamster-time-tracker/hamster-service exited with status 1

Does anyone knows what's wrong ?

Thank you

@tstriker
Copy link
Contributor

you could try running hamster-service from the terminal and check it out

@nchevobbe
Copy link
Author

Running /usr/lib/hamster-time-tracker/hamster-service give me :

Traceback (most recent call last):
  File "/usr/lib/hamster-time-tracker/hamster-service", line 20, in <module>
    from hamster import db
  File "/usr/lib/python2.7/dist-packages/hamster/db.py", line 53, in <module>
    class Storage(storage.Storage):
AttributeError: 'module' object has no attribute 'Storage'

Thank you

@tstriker
Copy link
Contributor

humm, not sure, looks like hamster wasn't installed properly

did you install hamster 1.04 from a PPA or following these instructions? https://github.com/projecthamster/hamster/tree/hamster_stable

if from PPA, then i'd suggest to uninstall that and installing from the stable branch, and if that works, then file a bug against the PPA

@nchevobbe
Copy link
Author

I did installed it from the stable branch, but i previously attempted from the Ubuntu App Store
I tried to uninstall/reinstall just now

sudo rm -rf /usr/lib/hamster-time-tracker/
sudo rm -rf /usr/bin/hamster

Downloaded the hamster stable master zip ( https://github.com/projecthamster/hamster/archive/hamster_stable.zip ) and installed it :

sudo  apt-get install git-core gettext intltool python-gconf
./waf configure build --prefix=/usr
sudo ./waf install

Got the same errors than previously

@tstriker
Copy link
Contributor

grabbing straws right now, but could you maybe paste the output of this guy?

ls -la /usr/lib/python2.7/dist-packages/hamster/

@nchevobbe
Copy link
Author

Here it is :

total 352
drwxr-xr-x  5 root root  4096 juin  17 14:57 .
drwxr-xr-x 71 root root  4096 juin  17 08:02 ..
-rw-r--r--  1 root root  2392 janv. 24 03:00 about.py
-rw-r--r--  1 root root 10968 janv. 24 03:00 client.py
-rw-r--r--  1 root root 12732 juin  17 08:33 client.pyc
-rw-r--r--  1 root root 10049 janv. 24 03:00 configuration.py
-rw-r--r--  1 root root 10564 juin  17 08:33 configuration.pyc
-rw-r--r--  1 root root 39722 janv. 24 03:00 db.py
-rw-r--r--  1 root root 32171 juin  17 08:33 db.pyc
-rw-r--r--  1 root root   142 juin  17 14:56 defs.py
-rw-r--r--  1 root root   335 juin  17 08:33 defs.pyc
-rw-r--r--  1 root root 10850 janv. 24 03:00 edit_activity.py
-rw-r--r--  1 root root  3896 janv. 24 03:00 external.py
-rw-r--r--  1 root root  3229 juin  17 08:33 external.pyc
-rw-r--r--  1 root root  5532 janv. 24 03:00 idle.py
-rw-r--r--  1 root root     1 janv. 24 03:00 __init__.py
-rw-r--r--  1 root root   139 juin  17 08:33 __init__.pyc
drwxr-xr-x  2 root root  4096 juin  17 08:33 lib
-rw-r--r--  1 root root  6439 janv. 24 03:00 overview_activities.py
-rw-r--r--  1 root root 16327 janv. 24 03:00 overview.py
-rw-r--r--  1 root root  9018 janv. 24 03:00 overview_totals.py
-rw-r--r--  1 root root 28055 janv. 24 03:00 preferences.py
-rw-r--r--  1 root root 12525 janv. 24 03:00 reports.py
-rw-r--r--  1 root root 11929 juin  17 08:33 reports.pyc
-rw-r--r--  1 root root 19729 janv. 24 03:00 stats.py
drwxr-xr-x  2 root root  4096 juin  17 08:33 storage
-rw-r--r--  1 root root  5104 janv. 24 03:00 storage.py
-rw-r--r--  1 root root 18473 janv. 24 03:00 today.py
-rw-r--r--  1 root root 18428 juin  17 08:33 today.pyc
drwxr-xr-x  2 root root  4096 juin  17 08:33 widgets

And if it can help :

ls -la /usr/lib/python2.7/dist-packages/hamster/storage/

total 60
drwxr-xr-x 2 root root  4096 juin  17 08:33 .
drwxr-xr-x 5 root root  4096 juin  17 14:57 ..
-rw-r--r-- 1 root root 40447 mars  23 04:22 db.py
-rw-r--r-- 1 root root     0 mars  23 04:22 __init__.py
-rw-r--r-- 1 root root   147 juin  17 08:33 __init__.pyc
-rw-r--r-- 1 root root  5112 mars  23 04:22 storage.py

I'm under a 64 bits architectures if that matters
Thank you for helping me

@tstriker
Copy link
Contributor

ah, here's the thing - the /hamster/storage folder is not there in the stable branch - that's a thing the master branch. so it seems you have the two guys battling there.

rm -Rf /usr/lib/python2.7/dist-packages/hamster

and then reinstall.

@nchevobbe
Copy link
Author

Hurray, it works
Thank you, i was missing the app so bad

@abraxxa
Copy link

abraxxa commented Apr 28, 2018

For me just removing the storage directory worked.

@sabrefm1-zz
Copy link

im currently running 18.04 as well but wasnt able to get the inidicator on the top tray working

@elbenfreund
Copy link
Contributor

Thank you for your feedback, it is much appreciated.

Project hamster and its various sub-components is currently undergoing some major changes. We prepare the introduction of a rewritten codebase for most of the underlying functionality. A direct consequence of this is that it is unlikely that any open/new bugs within the current/old codebase will be fixed (unless someone steps up and offers to do so) as most resources currently available will be invested in making the rewrite prime time ready.

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