Kegbot Home » Kegbot Forums
KegBB
Kegbot Kegerator Project Forums
- You are not logged in.
#1 June 2, 2010 18:45:33
- Jallen81
-
- From: Michigan
- Registered: 2009-11-23
- Posts: 23
- Profile Send e-mail
Errors
anyone else have a few errors since the 7.0 reorganization? My kegbot_master will not run anymore, i'm getting the following errors in kegbot_master.py:
kegbot_core.py will still run with the following errors though:
I'm assuming thats only because i have debug turned on. I was receiving errors in setup.py until i added the changes i recently outlined in issue 45 because of the link for httplib2.
Thanks in advance,
Jared
jared@KegBot:~/kegbot/kegbot-hg/pykeg/src/pykeg/bin$ ./kegbot_master.py start
2010-06-02 21:38:26,979 INFO (master) Starting apps
2010-06-02 21:38:26,979 INFO (master) Starting: kegboard_daemon
2010-06-02 21:38:26,979 INFO (master) Command: kegboard_daemon.py --daemon=True --kegboard_device=/dev/ttyUSB0 --log_to_file=True --log_to_stdout=False --logfile=/home/jared/kegbot/kegbot-hg/log/kegboard_daemon.log --pidfile=/home/jared/kegbot/kegbot-hg/pid/kegboard_daemon.pid
2010-06-02 21:38:27,218 ERROR (master) Error starting kegboard_daemon: 256
2010-06-02 21:38:27,219 ERROR (master) Output was:
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> Traceback (most recent call last):
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> File "/usr/local/bin/kegboard_daemon.py", line 5, in <module>
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> pkg_resources.run_script('kegbot==0.7.1pre1', 'kegboard_daemon.py')
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.12-py2.6.egg/pkg_resources.py", line 466, in run_script
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> self.require(requires)[0].run_script(script_name, ns)
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.12-py2.6.egg/pkg_resources.py", line 1199, in run_script
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> execfile(script_filename, namespace, namespace)
2010-06-02 21:38:27,219 ERROR (master) <kegboard_daemon> File "/usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/EGG-INFO/scripts/kegboard_daemon.py", line 48, in <module>
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> from pykeg.core.net import kegnet
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> File "/usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/core/net/kegnet.py", line 48, in <module>
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> from pykeg.core.net import kegnet_pb2
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> File "/usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/core/net/kegnet_pb2.py", line 10, in <module>
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> DESCRIPTOR = descriptor.FileDescriptor(
2010-06-02 21:38:27,220 ERROR (master) <kegboard_daemon> AttributeError: 'module' object has no attribute 'FileDescriptor'
kegbot_core.py will still run with the following errors though:
jared@KegBot:~/kegbot/kegbot-hg/pykeg/src/pykeg/bin$ ./kegbot_core.py
/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.2-py2.6-linux-i686.egg/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
/usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/external/google/__init__.py:1: UserWarning: Module socialregistration was already imported from /usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/external/socialregistration/__init__.pyc, but /usr/local/lib/python2.6/dist-packages/django_socialregistration-0.3.4-py2.6.egg is being added to sys.path
__import__('pkg_resources').declare_namespace(__name__)
/usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/external/google/__init__.py:1: UserWarning: Module django_extensions was already imported from /usr/local/lib/python2.6/dist-packages/kegbot-0.7.1pre1-py2.6.egg/pykeg/external/django_extensions/__init__.pyc, but /usr/local/lib/python2.6/dist-packages/django_extensions-0.5-py2.6.egg is being added to sys.path
__import__('pkg_resources').declare_namespace(__name__)
2010-06-02 21:39:34,596 INFO (tap-manager) Registering new tap: kegboard.flow0
2010-06-02 21:39:34,597 INFO (tap-manager) Registering new tap: kegboard.flow1
2010-06-02 21:39:34,597 INFO (main) Starting all service threads.
2010-06-02 21:39:34,597 INFO (main) starting thread "heartbeat-thread"
2010-06-02 21:39:34,598 INFO (main) starting thread "eventhub-thread"
2010-06-02 21:39:34,598 INFO (main) starting thread "alarmmanager-thread"
2010-06-02 21:39:34,598 INFO (main) starting thread "net-thread"
2010-06-02 21:39:34,598 INFO (net-thread) network thread started
2010-06-02 21:39:34,598 INFO (kegnet) Starting server on ('localhost', 9805)
2010-06-02 21:39:34,599 INFO (main) starting thread "watchdog-thread"
2010-06-02 21:39:34,599 INFO (main) starting thread "service-thread"
2010-06-02 21:39:34,599 INFO (main) All threads started.
I'm assuming thats only because i have debug turned on. I was receiving errors in setup.py until i added the changes i recently outlined in issue 45 because of the link for httplib2.
Thanks in advance,
Jared
Edited Jallen81 (June 2, 2010 18:45:33)
Offline
#2 June 3, 2010 01:02:33
- mike
-

- Registered: 2003-12-03
- Posts: 297
- Profile Send e-mail
Errors
Hi Jallen,
Looks like you have an old version of the protobuf module installed. Two ways to fix this:
- download protobuf-2.3.0 from source (code.google.com) and run "sudo python setup.py install" in the app directory.
- wait a day or two for me to test a repackaged version (the version in PyPi isn't packaged correctly)
There's a copy of v2.3.0 in pykeg/src/pykeg/external, but I might have broken the hack that adds this to the PYTHONPATH. The right thing to do is to fix the upstream packaging (http://code.google.com/p/protobuf/issues/detail?id=66) & get rid of the mirror and path hacks altogether. I have a pretty good idea of what is wrong & will try a fix.
I have fixes for both of these checked in; will spin a v0.7.1 package release soon. (Will fix the httplib2 issue as well). thanks,
mike
Jallen81
anyone else have a few errors since the 7.0 reorganization? My kegbot_master will not run anymore, i'm getting the following errors in kegbot_master.py:
Looks like you have an old version of the protobuf module installed. Two ways to fix this:
- download protobuf-2.3.0 from source (code.google.com) and run "sudo python setup.py install" in the app directory.
- wait a day or two for me to test a repackaged version (the version in PyPi isn't packaged correctly)
There's a copy of v2.3.0 in pykeg/src/pykeg/external, but I might have broken the hack that adds this to the PYTHONPATH. The right thing to do is to fix the upstream packaging (http://code.google.com/p/protobuf/issues/detail?id=66) & get rid of the mirror and path hacks altogether. I have a pretty good idea of what is wrong & will try a fix.
Jallen81
kegbot_core.py will still run with the following errors though:
I have fixes for both of these checked in; will spin a v0.7.1 package release soon. (Will fix the httplib2 issue as well). thanks,
mike
Edited mike (June 3, 2010 01:02:33)
Offline
#4 June 5, 2010 08:59:18
- mike
-

- Registered: 2003-12-03
- Posts: 297
- Profile Send e-mail
Errors
FWIW, I released kegbot v0.7.1 last night, which is mostly packaging fixes. It includes a pointer to a slightly repackaged version of protobuf-2.3.0 that I made to work correctly with pip/easy_install.
pip install -U kegbot
Edited mike (June 5, 2010 08:59:18)
Offline
