<div dir="ltr">On Thu, Apr 23, 2015 at 3:49 PM, Adam Holt <span dir="ltr"><<a href="mailto:holt@laptop.org" target="_blank">holt@laptop.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Errors below: one Haiti volunteer is trying to download .epub books from IIAB's Gutenberg, He loaded Flask (Python web framework) thinking that would help but it did not. Are Tony's earlier tips below the best way forward?<br><br><div style="margin-left:40px">"The default is show html online. In knowledge/modules there is also
a directory of <span>epub</span>. I think I patched the code in iiab to default
to the <span>epub</span> file. This gets downloaded automatically by the Browse
activity to the Journal...The Gutenberg books
accessed from Rachel are the text versions...I set it up so that the <span>epub</span> versions are
downloaded."</div></div></blockquote><div class="gmail_quote"> <font color="black" face="arial" size="2"><font size="2"><br></font></font></div><div class="gmail_quote"><font color="black" face="arial" size="2"><font size="2">Volunteer has given me more details on the error below. He says "</font></font><font color="black" face="arial" size="2"><font size="2"><font color="black" face="arial" size="2">I <font size="2">had Mint 17.1
running on the laptop and on the box we have IIAB on...these
errors are from the laptop. We are using Firefox for the web browser...I added Flask after the
fact to the client but I had Flask running on the IIAB box. I will be
happy to look closer if you need anything.</font></font>" (And apologies this is not explicitly an XSCE question, but they may use that in future.)<br></font></font></div><div class="gmail_quote"><font color="black" face="arial" size="2"><font size="2"><br></font>
<h1>IOError</h1>
<div>
<div>IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/iiab/knowledge/modules/gutenberg-epub-images/91/pg91.epub'</div>
</div>
<h2>Traceback <i>(most recent call last)</i></h2>
<div>
<ul><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1836</i>,
in <code>__call__</code></h4>
<pre>return self.wsgi_app(environ, start_response)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1820</i>,
in <code>wsgi_app</code></h4>
<pre>response = self.make_response(self.handle_exception(e))</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1403</i>,
in <code>handle_exception</code></h4>
<pre>reraise(exc_type, exc_value, tb)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1817</i>,
in <code>wsgi_app</code></h4>
<pre>response = self.full_dispatch_request()</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1477</i>,
in <code>full_dispatch_request</code></h4>
<pre>rv = self.handle_user_exception(e)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1381</i>,
in <code>handle_user_exception</code></h4>
<pre>reraise(exc_type, exc_value, tb)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1475</i>,
in <code>full_dispatch_request</code></h4>
<pre>rv = self.dispatch_request()</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/app.py"</cite>,
line <i>1461</i>,
in <code>dispatch_request</code></h4>
<pre>return self.view_functions[rule.endpoint](**req.view_args)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/iiab/gutenberg_content_views.py"</cite>,
line <i>42</i>,
in <code>epub_ext</code></h4>
<pre>return epub(pgid)</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/iiab/gutenberg_content_views.py"</cite>,
line <i>37</i>,
in <code>epub</code></h4>
<pre>return send_file(epub_path, mimetype='application/epub+zip')</pre>
</div>
</li><li>
<div>
<h4>File <cite>"/usr/local/lib/python2.7/dist-packages/flask/helpers.py"</cite>,
line <i>520</i>,
in <code>send_file</code></h4>
<pre>file = open(filename, 'rb')</pre>
</div>
</li></ul>
<blockquote>IOError: [Errno 2] No such file or directory:
'/usr/local/lib/python2.7/dist-packages/iiab/knowledge/modules/gutenberg-epub-images/91/pg91.epub'<br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !</div></div>
</blockquote></div></font></div><font color="black" face="arial" size="2">
</font></div></div></div>