Kegbot / kegbot-server

Kegbot Server, the internet beer kegerator monitoring system.
https://docs.kegbot.org/projects/kegbot-server/
MIT License
194 stars 103 forks source link

AttrivuteError at / #145

Closed cantbeatl337 closed 11 years ago

cantbeatl337 commented 11 years ago

Mike, I posted on the forum you asked for the trace back on GitHub. I performed kb_upgrade, I am on the latest release and still getting the issue.

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/

Django Version: 1.5.1 Python Version: 2.7.4 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.humanize', 'django.contrib.markup', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'crispy_forms', 'djcelery', 'djkombu', 'bootstrap-pagination', 'imagekit', 'pykeg.contrib.soundserver', 'pykeg.core', 'pykeg.web', 'pykeg.web.api', 'pykeg.web.account', 'pykeg.web.kegadmin', 'pykeg.web.kegweb', 'pykeg.web.setup_wizard', 'pykeg.plugin', 'gunicorn', 'icanhaz', 'registration', 'socialregistration', 'socialregistration.contrib.facebook', 'south', 'django_nose', 'django.contrib.admin', 'pykeg.contrib.twitter.plugin', 'pykeg.contrib.foursquare.plugin', 'pykeg.contrib.untappd.plugin') Installed Middleware: ('django.middleware.cache.UpdateCacheMiddleware', 'django.middleware.gzip.GZipMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'pykeg.web.middleware.KegbotSiteMiddleware', 'pykeg.web.middleware.HttpHostMiddleware', 'pykeg.web.middleware.SiteActiveMiddleware', 'pykeg.web.api.middleware.ApiRequestMiddleware', 'pykeg.web.middleware.PrivacyMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.cache.FetchFromCacheMiddleware', 'pykeg.web.api.middleware.ApiResponseMiddleware')

Traceback: File "/usr/local/lib/python2.7/dist-packages/Django-1.5.1-py2.7.egg/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/Django-1.5.1-py2.7.egg/django/utils/decorators.py" in _wrapped_view
  2. response = view_func(request, _args, *_kwargs) File "/home/dpalmer/kegbot/pykeg/web/kegweb/views.py" in index
  3. context['initial_events'] = kbjson.dumps([protolib.ToDict(e, full=True) for e in events], File "/home/dpalmer/kegbot/pykeg/proto/protolib.py" in ToDict
  4. res = ToProto(obj, full) File "/home/dpalmer/kegbot/pykeg/proto/protolib.py" in ToProto
  5. return _CONVERSION_MAP[kind](obj, full) File "/home/dpalmer/kegbot/pykeg/proto/protolib.py" in SystemEventToProto
  6. ret.drink.MergeFrom(ToProto(record.drink, full=True)) File "/home/dpalmer/kegbot/pykeg/proto/protolib.py" in ToProto
  7. return _CONVERSION_MAP[kind](obj, full) File "/home/dpalmer/kegbot/pykeg/proto/protolib.py" in DrinkToProto
  8. ret.tick_time_series = drink.tick_time_series

Exception Type: AttributeError at / Exception Value: 'Drink' object has no attribute 'tick_time_series'

mik3y commented 11 years ago

Did you forget to run ./setup.py develop after updating the git sources?

https://kegbot.org/docs/server/upgrade-kegbot/#upgrade-procedure

cantbeatl337 commented 11 years ago

I did not forget. Just had a thought though, I was having some issues installing and I decided to run the whole thing through sudo, I have to run the server in sudo and I do all my updates with sudo because of this. On Aug 3, 2013 5:11 PM, "mike w" notifications@github.com wrote:

Did you forget to run ./setup.py develop after updating the git sources?

https://kegbot.org/docs/server/upgrade-kegbot/#upgrade-procedure

— Reply to this email directly or view it on GitHubhttps://github.com/Kegbot/kegbot-server/issues/145#issuecomment-22061749 .

mik3y commented 11 years ago

That's likely causing the problem. Your kegbot-api and kegbot-server installs are mismatched.

mik3y commented 11 years ago

Can't reproduce this. Please re-open if you have this problem from a fresh install.