[Sugar-devel] [NETWORK] Sugar Network 0.7 development release

James Cameron quozl at laptop.org
Fri Nov 30 05:06:26 EST 2012


On Fri, Nov 30, 2012 at 09:05:46AM +0000, Aleksey Lim wrote:
> http://wiki.sugarlabs.org/go/Activities/Sugar_Network#Dependencies
> 
> The problem is that gevent-1.0 is not yet released, you have to
> install it manually from upstream site,
> https://github.com/SiteSupport/gevent/downloads (with deleting
> python-gevent)

Thanks!  Some progress, but hit snag.

# rpm -e python-gevent
# yum install -y python-devel
# wget https://github.com/downloads/SiteSupport/gevent/gevent-1.0rc1.tar.gz
# tar xfz gevent-1.0rc1.tar.gz
# cd gevent-1.0rc1
# python setup.py install

# wget http://pypi.python.org/packages/source/g/greenlet/greenlet-0.3.2.zip
# unzip greenlet-0.3.2.zip
# cd greenlet-0.3.2
# rpm -e python-greenlet
# python setup.py install

# python -c 'import gevent' && echo ok

Started activity, response was: "Sugar Network failed to start."

Log file is:

** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
2012-11-30 10:02:59,247 INFO root: Start sugar-network-client
2012-11-30 10:02:59,265 INFO active_document.volume: Opening '/home/olpc/.sugar/default/network/db' volume
2012-11-30 10:02:59,334 DEBUG resources.volume: Publish event: {'mountpoint': '~', 'event': 'mount', 'private': True, 'name': 'Home'}
2012-11-30 10:02:59,338 INFO root: Listening for IPC requests on 5001 port
2012-11-30 10:02:59,436 INFO root: Proceed delayed start
Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 160, in <module>
    main()
  File "/usr/bin/sugar-activity", line 155, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/usr/bin/sugar-activity", line 42, in create_activity_instance
    activity = constructor(handle)
  File "/home/olpc/Activities/SugarNetwork.activity/activity.py", line 104, in __init__
    gobject.io_add_watch(self._subscription.fileno(),
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/sugar_network/toolkit/http.py", line 228, in fileno
    return self._handshake()._fp.fp.fileno()
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/sugar_network/toolkit/http.py", line 260, in _handshake
    params={'cmd': 'subscribe'})
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/sugar_network/toolkit/http.py", line 116, in request
    **kwargs)
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/requests/safe_mode.py", line 38, in wrapped
    return function(method, url, **kwargs)
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/requests/api.py", line 50, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/requests/sessions.py", line 238, in request
    r.send(prefetch=prefetch)
  File "/home/olpc/Activities/SugarNetwork.activity/site-packages/requests/models.py", line 640, in send
    raise ConnectionError(sockerr)
requests.exceptions.ConnectionError: [Errno 111] Connection refused
Exited with status 1, pid 9059 data (None, <open file '<fdopen>', mode 'w' at 0xfdfc80>, dbus.ByteArray('b629535020362a0152ed50319df4e221fea0fcf9', variant_level=1))

-- 
James Cameron
http://quozl.linux.org.au/


More information about the Sugar-devel mailing list