<div dir="ltr">Thanks Braddock,<br><br><div><font size="2">IIAB drive is not mounted; it was copied to the laptop as they were trying to improve response time. I've asked your 5 questions and the response is:<br>
</font>
</div>
<div> <br><font color="black" face="arial" size="2"><font size="2">"It is in a directory off the personal directory called amat."<br>
</font>
<div> <br>
</div>
<div> <font size="2">amat@HIIAB ~ $ ls<br>
calibre-library Documents Music Videos<br>
Calibre Library Downloads Pictures<br>
Creole Books IIAB_QuickStart_Sampler_20130809.tgz Public<br>
Desktop knowledge Templates<br>
</font><br>
<font size="2">"I can
read books via a web browser I just cannot download."<br></font></div></font><br>
</div>
<div> <font size="2">amat@HIIAB /home $ mount<br>
<br>
/dev/sda1 on / type ext4 (rw,errors=remount-ro)<br>
proc on /proc type proc (rw,noexec,nosuid,nodev)<br>
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)<br>
none on /sys/fs/cgroup type tmpfs (rw)<br>
none on /sys/fs/fuse/connections type fusectl (rw)<br>
none on /sys/kernel/debug type debugfs (rw)<br>
none on /sys/kernel/security type securityfs (rw)<br>
udev on /dev type devtmpfs (rw,mode=0755)<br>
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)<br>
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)<br>
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)<br>
none on /run/shm type tmpfs (rw,nosuid,nodev)<br>
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)<br>
none on /sys/fs/pstore type pstore (rw)<br>
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)<br>
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=amat)<br>
<br>
amat@HIIAB /home $ pip freeze<br>
<br>Babel==1.3<br>
BeautifulSoup==3.2.1<br>
Flask==0.10.1<br>
Flask-AutoIndex==0.5<br>
Flask-Babel==0.9<br>
Flask-SQLAlchemy==2.0<br>
Flask-Silk==0.2<br>
Internet-in-a-Box==0.5.10<br>
Jinja2==2.7.3<br>
Mako==0.9.1<br>
MarkupSafe==0.18<br>
PAM==0.4.2<br>
Pillow==2.3.0<br>
SQLAlchemy==0.9.9<br>
Twisted-Core==13.2.0<br>
Twisted-Names==13.2.0<br>
Twisted-Web==13.2.0<br>
Werkzeug==0.10.4<br>
Whoosh==2.6.0<br>
apt-xapian-index==0.45<br>
apturl==0.4.1ubuntu4<br>
argparse==1.2.1<br>
backports.lzma==0.0.3<br>
ccsm==0.9.11.3<br>
chardet==2.0.1<br>
colorama==0.2.5<br>
command-not-found==0.3<br>
compizconfig-python==0.9.11.3<br>
configglue==1.1.2<br>
configobj==4.7.2<br>
debtagshw==0.1<br>
defer==1.0.6<br>
dirspec==13.10<br>
dnspython==1.11.1<br>
duplicity==0.6.23<br>
feedparser==5.1.3<br>
html5lib==0.999<br>
httplib2==0.8<br>
itsdangerous==0.24<br>
lockfile==0.8<br>
lxml==3.3.3<br>
oauthlib==0.6.1<br>
oneconf==0.3.7<br>
paramiko==1.10.1<br>
pexpect==3.1<br>
piston-mini-client==0.7.5<br>
protobuf==2.5.0<br>
pyOpenSSL==0.13<br>
pycrypto==2.6.1<br>
pycups==1.9.66<br>
pycurl==7.19.3<br>
pygobject==3.12.0<br>
pyinotify==0.9.4<br>
pyserial==2.6<br>
pysmbc==1.0.14.1<br>
python-apt==0.9.3.5ubuntu1<br>
python-debian==0.1.21-nmu2ubuntu2<br>
python-xlib==0.14<br>
pytz==2015.2<br>
pyxdg==0.25<br>
reportlab==3.0<br>
repoze.lru==0.6<br>
requests==2.2.1<br>
sessioninstaller==0.0.0<br>
six==1.5.2<br>
speaklater==1.3<br>
system-service==0.1.6<br>
uTidylib==0.2<br>
urllib3==1.7.1<br>
wsgiref==0.1.2<br>
zope.interface==4.0.5<br>
</font><font size="2"><br></font><font size="2"><br></font></div>On Fri, Apr 24, 2015 at 1:28 AM, Braddock Gaskill <span dir="ltr"><<a href="mailto:braddock@gmail.com" target="_blank">braddock@gmail.com</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">I'm looking at this problem but am a bit mystified and cannot reproduce it.<div><br></div><div>Questions and points:</div><div>1) Where is the "knowledge" dataset stored? Is it linked to in "/knowledge" or is it on a mounted drive? </div><div>2) Can I get the output of the 'mount' command? </div><div>3) I assume the "knowledge" dataset is NOT in <span style="color:rgb(0,0,0);font-family:arial">/usr/local/lib/python2.7/</span><span style="color:rgb(0,0,0);font-family:arial">dist-packages/iiab/knowledge/, and that that path is some sort of error?</span></div><div>4) I doubt this has anything to do with the version of flask the user installed, but would like to know exactly what they installed and whether it was using pip or apt-get. </div><div>5) The output from 'pip freeze' would be nice.</div><div><br></div><div>The code very clearly checks for the existence of the epub file before it attempts to send it. Yet somehow it is trying to send this strange "<span style="color:rgb(0,0,0);font-family:arial">/usr/local/lib/python2.7/</span><span style="color:rgb(0,0,0);font-family:arial">dist-packages/iiab/knowledge/</span><span style="color:rgb(0,0,0);font-family:arial">modules/gutenberg-epub-images/</span><span style="color:rgb(0,0,0);font-family:arial">91/pg91.epub" path which apparently does not exist. </span></div><span><font color="#888888"><div><span style="color:rgb(0,0,0);font-family:arial"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial">-braddock</span></div><div><span style="color:rgb(0,0,0);font-family:arial"><br></span></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 23, 2015 at 5:53 PM, Adam Holt <span dir="ltr"><<a href="mailto:holt@laptop.org" target="_blank">holt@laptop.org</a>></span> wrote:<br><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"><span>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></span><div class="gmail_extra"><div class="gmail_quote"><span><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></span><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"><div><div><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></div><div><div><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>
</div></div><blockquote><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'<br clear="all"><br></div></div><span><font color="#888888">-- <br><div><div dir="ltr">Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !<br clear="all"><br>-- <br><div><div dir="ltr">Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !</div></div>
</div></div>
</font></span></blockquote></div></font></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></div>