<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: qooxdoo 0.6.3 released</title>
	<atom:link href="http://news.qooxdoo.org/qooxdoo-063-released/feed" rel="self" type="application/rss+xml" />
	<link>http://news.qooxdoo.org/qooxdoo-063-released</link>
	<description>The qooxdoo news section</description>
	<pubDate>Wed, 19 Nov 2008 12:02:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Sebastian Werner</title>
		<link>http://news.qooxdoo.org/qooxdoo-063-released#comment-971</link>
		<dc:creator>Sebastian Werner</dc:creator>
		<pubDate>Fri, 15 Dec 2006 17:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://news.qooxdoo.org/qooxdoo-063-released#comment-971</guid>
		<description>Thank you Larry, I've fixed this in SVN. Revision: 5280.</description>
		<content:encoded><![CDATA[<p>Thank you Larry, I&#8217;ve fixed this in SVN. Revision: 5280.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larry zhu</title>
		<link>http://news.qooxdoo.org/qooxdoo-063-released#comment-968</link>
		<dc:creator>larry zhu</dc:creator>
		<pubDate>Fri, 15 Dec 2006 16:14:49 +0000</pubDate>
		<guid isPermaLink="false">http://news.qooxdoo.org/qooxdoo-063-released#comment-968</guid>
		<description>Hi everyone, 

I met a problem at the beginning to use QOOXDOO. I am using Windows XP+sp2 with cygwin.
After unzip the sdk.tar ball, I went to /cygdrive/d/qooxdoo/qooxdoo-0.6.3-sdk/frontend/ and typed make source.

But I got the following error message.

----------------------------------------------------------------------------
  * Indexing files...
  * Could not read cache from ..\framework\.cache\qx.OO-entry.pcl
make[1]: *** [generate-data-source] Error 1
make[1]: Leaving directory `/cygdrive/d/qooxdoo/qooxdoo-0.6.3-sdk/frontend/
api'
make: *** [source] Error 2


Finally, I checked the source code "filetool.py".
There are two functions "storeCache" and "readCache". 

cPickle dump a object to a file with the binary protocol, which was opened in text mode.
And load a object from a file, which was opened in text mode. 

I made a very small change in them. Then the error was never occur again.

def storeCache(cachePath, data):
  try:
    cPickle.dump(data, open(cachePath, 'wb'), 2)					#original code: cPickle.dump(data, open(cachePath, 'w'), 2)
  except EOFError or PickleError or PicklingError:
    print "  * Could not store cache to %s" % cachePath
    sys.exit(1)

def readCache(cachePath):
  try:
    return cPickle.load(open(cachePath, 'rb'))							#original code: return cPickle.load(open(cachePath, 'r'))
  except EOFError or PickleError or PicklingError:
    print "  * Could not read cache from %s" % cachePath
    sys.exit(1)


Best regards,
Larry</description>
		<content:encoded><![CDATA[<p>Hi everyone, </p>
<p>I met a problem at the beginning to use QOOXDOO. I am using Windows XP+sp2 with cygwin.<br />
After unzip the sdk.tar ball, I went to /cygdrive/d/qooxdoo/qooxdoo-0.6.3-sdk/frontend/ and typed make source.</p>
<p>But I got the following error message.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
  * Indexing files&#8230;<br />
  * Could not read cache from ..\framework\.cache\qx.OO-entry.pcl<br />
make[1]: *** [generate-data-source] Error 1<br />
make[1]: Leaving directory `/cygdrive/d/qooxdoo/qooxdoo-0.6.3-sdk/frontend/<br />
api&#8217;<br />
make: *** [source] Error 2</p>
<p>Finally, I checked the source code &#8220;filetool.py&#8221;.<br />
There are two functions &#8220;storeCache&#8221; and &#8220;readCache&#8221;. </p>
<p>cPickle dump a object to a file with the binary protocol, which was opened in text mode.<br />
And load a object from a file, which was opened in text mode. </p>
<p>I made a very small change in them. Then the error was never occur again.</p>
<p>def storeCache(cachePath, data):<br />
  try:<br />
    cPickle.dump(data, open(cachePath, &#8216;wb&#8217;), 2)					#original code: cPickle.dump(data, open(cachePath, &#8216;w&#8217;), 2)<br />
  except EOFError or PickleError or PicklingError:<br />
    print &#8221;  * Could not store cache to %s&#8221; % cachePath<br />
    sys.exit(1)</p>
<p>def readCache(cachePath):<br />
  try:<br />
    return cPickle.load(open(cachePath, &#8216;rb&#8217;))							#original code: return cPickle.load(open(cachePath, &#8216;r&#8217;))<br />
  except EOFError or PickleError or PicklingError:<br />
    print &#8221;  * Could not read cache from %s&#8221; % cachePath<br />
    sys.exit(1)</p>
<p>Best regards,<br />
Larry</p>
]]></content:encoded>
	</item>
</channel>
</rss>
