Thanks Braddock, 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:
"It is in a directory off the personal directory called amat." amat@HIIAB ~ $ ls calibre-library Documents Music Videos Calibre Library Downloads Pictures Creole Books IIAB_QuickStart_Sampler_20130809.tgz Public Desktop knowledge Templates "I can read books via a web browser I just cannot download." amat@HIIAB /home $ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/cgroup type tmpfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) none on /sys/fs/pstore type pstore (rw) systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd) gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=amat) amat@HIIAB /home $ pip freeze Babel==1.3 BeautifulSoup==3.2.1 Flask==0.10.1 Flask-AutoIndex==0.5 Flask-Babel==0.9 Flask-SQLAlchemy==2.0 Flask-Silk==0.2 Internet-in-a-Box==0.5.10 Jinja2==2.7.3 Mako==0.9.1 MarkupSafe==0.18 PAM==0.4.2 Pillow==2.3.0 SQLAlchemy==0.9.9 Twisted-Core==13.2.0 Twisted-Names==13.2.0 Twisted-Web==13.2.0 Werkzeug==0.10.4 Whoosh==2.6.0 apt-xapian-index==0.45 apturl==0.4.1ubuntu4 argparse==1.2.1 backports.lzma==0.0.3 ccsm==0.9.11.3 chardet==2.0.1 colorama==0.2.5 command-not-found==0.3 compizconfig-python==0.9.11.3 configglue==1.1.2 configobj==4.7.2 debtagshw==0.1 defer==1.0.6 dirspec==13.10 dnspython==1.11.1 duplicity==0.6.23 feedparser==5.1.3 html5lib==0.999 httplib2==0.8 itsdangerous==0.24 lockfile==0.8 lxml==3.3.3 oauthlib==0.6.1 oneconf==0.3.7 paramiko==1.10.1 pexpect==3.1 piston-mini-client==0.7.5 protobuf==2.5.0 pyOpenSSL==0.13 pycrypto==2.6.1 pycups==1.9.66 pycurl==7.19.3 pygobject==3.12.0 pyinotify==0.9.4 pyserial==2.6 pysmbc==1.0.14.1 python-apt==0.9.3.5ubuntu1 python-debian==0.1.21-nmu2ubuntu2 python-xlib==0.14 pytz==2015.2 pyxdg==0.25 reportlab==3.0 repoze.lru==0.6 requests==2.2.1 sessioninstaller==0.0.0 six==1.5.2 speaklater==1.3 system-service==0.1.6 uTidylib==0.2 urllib3==1.7.1 wsgiref==0.1.2 zope.interface==4.0.5 On Fri, Apr 24, 2015 at 1:28 AM, Braddock Gaskill <bradd...@gmail.com> wrote: > I'm looking at this problem but am a bit mystified and cannot reproduce it. > > Questions and points: > 1) Where is the "knowledge" dataset stored? Is it linked to in > "/knowledge" or is it on a mounted drive? > 2) Can I get the output of the 'mount' command? > 3) I assume the "knowledge" dataset is NOT in > /usr/local/lib/python2.7/dist-packages/iiab/knowledge/, > and that that path is some sort of error? > 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. > 5) The output from 'pip freeze' would be nice. > > 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 " > /usr/local/lib/python2.7/dist-packages/iiab/knowledge/ > modules/gutenberg-epub-images/91/pg91.epub" path which apparently does > not exist. > > -braddock > > > On Thu, Apr 23, 2015 at 5:53 PM, Adam Holt <h...@laptop.org> wrote: > >> On Thu, Apr 23, 2015 at 3:49 PM, Adam Holt <h...@laptop.org> wrote: >> >>> 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? >>> >>> "The default is show html online. In knowledge/modules there is also a >>> directory of epub. I think I patched the code in iiab to default to the >>> epub 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 epub versions are downloaded." >>> >> >> Volunteer has given me more details on the error below. He says "I 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." (And >> apologies this is not explicitly an XSCE question, but they may use that in >> future.) >> >> IOError >> IOError: [Errno 2] No such file or directory: >> '/usr/local/lib/python2.7/dist-packages/iiab/knowledge/modules/gutenberg-epub-images/91/pg91.epub' >> Traceback *(most recent call last)* >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1836*, in __call__ >> >> return self.wsgi_app(environ, start_response) >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1820*, in wsgi_app >> >> response = self.make_response(self.handle_exception(e)) >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1403*, in handle_exception >> >> reraise(exc_type, exc_value, tb) >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1817*, in wsgi_app >> >> response = self.full_dispatch_request() >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1477*, in full_dispatch_request >> >> rv = self.handle_user_exception(e) >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1381*, in handle_user_exception >> >> reraise(exc_type, exc_value, tb) >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1475*, in full_dispatch_request >> >> rv = self.dispatch_request() >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line >> *1461*, in dispatch_request >> >> return self.view_functions[rule.endpoint](**req.view_args) >> >> - File >> "/usr/local/lib/python2.7/dist-packages/iiab/gutenberg_content_views.py", >> line *42*, in epub_ext >> >> return epub(pgid) >> >> - File >> "/usr/local/lib/python2.7/dist-packages/iiab/gutenberg_content_views.py", >> line *37*, in epub >> >> return send_file(epub_path, mimetype='application/epub+zip') >> >> - File "/usr/local/lib/python2.7/dist-packages/flask/helpers.py", >> line *520*, in send_file >> >> file = open(filename, 'rb') >> >> >> IOError: [Errno 2] No such file or directory: >> '/usr/local/lib/python2.7/dist-packages/iiab/knowledge/modules/gutenberg-epub-images/91/pg91.epub' >> >> -- >> Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org ! >> >> -- >> Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org ! >> >>
_______________________________________________ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel