[IIAB] iiab problems

Tony Anderson tony_anderson at usa.net
Wed Aug 14 04:13:50 PDT 2013


Hi, all

I have narrowed the problem down to the use of gcc to build the 
backports.lzma.

After several hours of scrambling, I have managed to mess up the gcc
install beyond all hope of redemption.

My current strategy is to set up a CentOS 6.2 repository on the school 
server (still plenty of room!). I should be able to use yum to install gcc.

Looking forward:

What you installed I see as the base system (what CentOS calls the 
minimal system). The idea is that this system supports administration by 
ssh and is a functioning server.

Daniel Drake developed a method using usbmount to install additional 
packages and content from a removable device simply by mounting it.

This is how I would like to install and set up IIAB since that can be 
used at each of the deployments with minimal technical supervision.

In this context it would be good to have as much of the install done 
before creating the removable drive (e.g the lmza package built). I like 
the idea of using pip - I haven't been able to get it installed on the 
school server.

However, if this local repository concept works, the scripts can make 
full use of yum to install such packages.

I have read internet comments that suggest installing gcc on a server is 
not a good idea - it provides a lot of tools for hackers.

Anyway, the first priority is to get internet-in-a-box installed and 
running.

Thanks for your help on this. It is greatly appreciated.

Yours,

Tony

On 08/14/2013 02:27 AM, Braddock wrote:
> Already done committed and tested. :-)
>
> Joel Steres <joel.steres at ymobility.com> wrote:
>
>     I wonder if putting a version constraint on the package in the
>     requirements file would alleviate the upgrade requirements?
>
>
>     On Tue, Aug 13, 2013 at 4:11 PM, Braddock <braddock at braddock.com> wrote:
>
>         -----BEGIN PGP SIGNED MESSAGE-----
>         Hash: SHA1
>
>         Hi Tony,
>         I went ahead and installed XS 0.7 on CentOS 6.2 in a VirtualBox
>         machine from the ISO at
>         http://wiki.laptop.org/go/XS_Installing_Software
>
>         I was able to get iiab-server running with the following (as root):
>
>         yum install python-pip gcc python-devel xz-devel
>         pip install Internet-in-a-Box
>         pip install --upgrade SQLAlchemy
>         tar xvzf IIAB_QuickStart_Sampler_20130809.tgz
>         /etc/init.d/iptables stop
>
>         iiab-server
>
>         Browse to http://192.168.1.196:25000/iiab
>
>         That is mostly taken from the INSTALL.txt directions for Fedora.
>
>         The only weird extra thing was that I needed to upgrade SQLAlchemy
>         explicitly.
>
>         Of course you will need internet access to get gcc and the other
>         pre-requisites, which is needed to build both backports.lzma and
>         SQLAlchemy.
>
>         The only thing that doesn't work is Wikipedia. I'll look into that.
>         Apparently we are still Python 2.6 compatible.
>
>         - -braddock
>
>
>         On 08/13/2013 12:01 PM, Braddock wrote:
>
>             On 08/13/2013 04:42 AM, Tony Anderson wrote:
>
>                 I installed it on my Ubuntu laptop. The install seemed to go
>                 smoothly. Ho wever, when I run iiab-sever, I get
>
>             [...]
>
>                 ImportError: No module named flaskext.babel
>
>
>             Hi Tony, Thanks for catching this. It was a versioning issue
>             with
>             the latest version of the Flask-Babel dependency.
>
>             I have fixed it in version 0.4.9 and pushed it to PyPi just now.
>             It should work for you if you run:
>
>             sudo pip uninstall Internet-in-a-Box sudo pip install
>             Internet-in-a-Box
>
>
>                 The more important problem is on the schoolserver.
>
>
>             What version of CentOS is School Server 0.7 based on? Is
>             there an
>             ISO for XS 0.7 we could install to a virtual machine for testing
>             here?
>
>                 The schoolserver is not connected to the internet so yum
>                 is not
>                 useful.
>
>
>             Is it normal to install a school server without internet
>             access at
>             install time? There are several approaches we could work out if
>             that is the case. We could build a local repository of RPMs if
>             that is necessary, or make a python virtualenv with all of the
>             dependencies in one tarball.
>
>                 I need to set up the needed rpms and install. In
>                 addition, the
>                 XS-0.7 has python 2.6.
>
>
>             I have not tested with python 2.6 for several months, it is very
>             likely broken - but probably easy for us to fix.
>
>                 The catch is backports.lzma which requires gcc. D aniel
>                 did not
>                 include Are you using this to decompress files and could the
>                 lzma be replaced
>
>
>             backports.lzma is our most troublesome dependency,
>             unfortunately it
>             is necessary to read the ZIM file format that all the wikipedia
>             dumps from the Kiwix community are in. We have tried
>             alternatives
>             but nothing really cuts it.
>
>                 this in the build. Unfortunately, rpm reports missing
>                 dependencies. When I try to satisfy them, I am getting
>                 conflicting files
>
>
>             Sounds like you are in "dependency hell" independent of IIAB.
>
>             We will get you up and running one way or another.
>
>             -braddock
>
>
>                 I could possibly build a line Fedora and use yum. I am a
>                 little
>                 n ervous about the difference in dependencies between
>                 CentOS and
>                 Fedora. The other option is to plug the school server
>                 into the
>                 Internet. Currently my access is via wifi from the
>                 campground so
>                 I would need to log in (the provider gives a
>                 username/password
>                 to login via Google redirect with the connection
>                 expiring if it
>                 is not used for some period of time - download speed is
>                 good).
>
>                 My intent is to set up IIAB on the schoolserver as a wsgi
>                 service. This is what I am doing with the Django
>                 framework for
>                 the library. I would like to have a button (link) on the
>                 Browse
>                 Activity home page that does something like
>                 http://schoolserver/knowledge or http://schoolserver/iiab.
>                 Perhaps the setup could be simplified for this specific
>                 case.
>
>                 I installed x-sendfile and got no complaints. However,
>                 when I
>                 try these urls I am getting 404. I tried executing
>                 iiab-wsgi in
>                 /var/www/ but got
>
>                 [root at schoolserver html]# pyt hon iiab.wsgi Traceback (most
>                 recent call last): File "iiab.wsgi", line 4, in <module>
>                 import
>                 pkg_resources File
>                 "/usr/lib/python2.6/site-packages/pkg_resources.py
>                 <http://resources.py>", line 2655,
>                 in <module> working_set.require(__requires__) File
>                 "/usr/lib/python2.6/site-packages/pkg_resources.py
>                 <http://resources.py>", line 648, in
>                 requires needed =
>                 self.resolve(parse_requirements(requirements))
>                 File "/usr/lib/python2.6/site-packages/pkg_resources.py
>                 <http://resources.py>", line
>                 546, in resolve raise DistributionNotFound(req)
>                 pkg_resources.DistributionNotFound: backports.lzma
>
>                 The script is not run by wsgi.
>
>                 I installed /etc/iiab.conf as follows:
>
>                 [DEFAULT] knowledge_dir = /library/knowledge
>                 search_for_knowledge_dir = False
>
>                 I don't know if you can make anything of this mess, but
>                 I would
>                 appreciate any help you can give.
>
>
>                 Thanks,
>
>                 Tony
>
>
>
>
>
>
>         -----BEGIN PGP SIGNATURE-----
>         Version: GnuPG v1.4.11 (GNU/Linux)
>         Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
>         iQEcBAEBAgAGBQJSCr0EAAoJEHWLR/DQzlZuaD4IAJRF793OqGF7KMPwL+2BJVdK
>         AiLD5bqYX0TEeayMb4BGy/RohsbV4wGGtbOpVppry/ulfTxtV3n6AEvDkcoNJIJ0
>         gBsES5RTbrM1B0bdYGU5vIOnn+nAgPbMQWQ1VISSQ1ATZ/ju6Kqg57Al14FufdBK
>         6+cSUjRsJNagGUSz7MxTzte7Jvx8+GO1WFh35+oWf+FhRbpNLup7v8oo5Icn2PqK
>         9EaP30cwqTVXodA5Pfoo0m7wGrMuOZr20LpuKIft+bue+L+6LaaWa+A3QPVOwycO
>         MltxEEavTBg2MUdmSVHE3dBspkizRqHVfcGQS+vG5jLyhD9Mzd0GqbidfoNQh+Q=
>         =p8xr
>         -----END PGP SIGNATURE-----
>
>
>
> --
> Sent phone. Please excuse my brevity.




More information about the IIAB mailing list