[IIAB] New IIAB VEnv Approach

Braddock braddock at braddock.com
Fri Aug 16 20:14:50 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/16/2013 03:22 PM, Braddock wrote:
> To test: cd /home/root virtualenv iiab-venv iiab-server

I'm sorry Tony, that should read:

cd /home/root
. iiab-venv/bin/activate
iiab-server

> 
> Browse to http://localhost:25000/iiab
> 
> To get WSGI working:
> 
> Edit top of /var/www/iiab.wsgi to be: # WSGI interface file for
> Apache's mod_wsgi
> 
> # If you are using a virtualenv, set this path path_to_virtualenv =
> "/root/iiab-venv"
> 
> -----
> 
> 
> I hope this works for you.
> 
> -braddock
> 
> 
> On 08/16/2013 01:51 PM, Tony Anderson wrote:
> 
>> Hi,
> 
>> As I mentioned the gcc problem has been solved by installing
>> lzma built on the Ubuntu system. I ran the test and it ran
>> perfectly. Also the installs dependent on lzma accepted it.
> 
>> The reason for the install of the packages is that the 
>> internet-in-a-box assumes the install occurs online. I
>> downloaded the corresponding tar or zip files and installed each
>> separately.
> 
>> As a result, I have the latest of each package.
> 
>> SQLalchemy is 0.82, Flask-SQLalchemy is 1.0.
> 
>> Since both of these are Python packages, I can't see how this 
>> import error occurs.
> 
>> Ultimately, the way I got off the beaten path is not have being 
>> online. What I could do now is use yum with the CentOS
>> repository to install pip and retry the install. However, as you
>> mentioned, the state of the server is unknown due to all the
>> installs and re-installs.
> 
>> It looks like several of these packages are based on Django. Was 
>> there a particular reason you chose to go with Flask instead of 
>> Django?
> 
>> When I get back home (end of September), I plan to purchase
>> another box and use it to test the install process from scratch.
>> It may be that I won't be able to get iiab working until then.
> 
>> Thanks for your help and advice.
> 
>> Yours,
> 
>> Tony
> 
> 
> 
>> On 08/16/2013 09:44 PM, Braddock wrote: Hi Tony,
> 
>> On 08/16/2013 04:09 AM, Tony Anderson wrote:
>>>>> This has led to installing a dozen Python packages from
>>>>> tar and zip downloads using python setup.py install. (pip
>>>>> is not installed but probably could be now that I have the 
>>>>> repository set up.).
> 
>> I worry you are straying very far from the beaten path and
>> making a lot of extra work for yourself.
> 
>> pip as documented in our INSTALL.txt and my e-mail on usage
>> under XS 0.7 should be doing all of this legwork for you, and
>> ensure you are getting the proper versions.
> 
>> Without gcc and your rpm dependency hell this is difficult.  I'd
>>  really recommend figuring out how to fix that because your
>> platform is really broken.
> 
>> Even with broken gcc, I recommend you use pip to install all 
>> pre-requisites except SQLAlchemy and lzma (which require gcc).
>> A list of pre-requisites is in the IIAB repo file
>> requirements.txt:
> 
>> Flask>=0.10 Flask-Babel>=0.8 Flask-SQLAlchemy>=0.16 
>> Flask-AutoIndex Whoosh>=2.4.1 backports.lzma>=0.0.2
> 
>>>>> The penultimate problem is that webapp.py, top-views.py, 
>>>>> gutemberg.py, and zip-views.py import flaskext.babel. 
>>>>> Apparently Flask has changed to import flask_babel. I
>>>>> changed this and all is ok.
> 
>> This flask.babel import problem was fixed last week when you
>> first reported it.  pip install --upgrade Internet-in-a-Box
>> should correct it, or get the latest code from github.
> 
>>>>> [Fri Aug 16 21:39:57 2013] [error] [client 172.18.96.177] 
>>>>> from sqlalchemy import orm, event [Fri Aug 16 21:39:57
>>>>> 2013] [error] [client 172.18.96.177] ImportError: cannot
>>>>> import name event
> 
>> This is probably because CentOS 6.2 has a very old version of 
>> SQLAlchemy installed via RPM.  Again, pip will install a 
>> compatible version, but you won't be able to install it without 
>> gcc.
> 
>> A longer term alternative to using pip that removes the gcc 
>> requirement is for us to generate you CentoOS/XS0.7 specific
>> RPMs. This is what we are doing for XSCE, although there would be
>> extra work required because CentOS 6.2 is so far out of date
>> compared to Fedora 18.
> 
>> I'd be interested in more information why your attempt to
>> install IIAB on Ubuntu 12.04 failed.  That is our main
>> development platform and is pretty well tested.
> 
>> -bradodck
>>> .
>>> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSDuqqAAoJEHWLR/DQzlZuQZwH/1y0xWHaxqBrhpPa3msuqZ/x
E/413gSfCAKAL9GDApXjD88jHrWWqV6Yl4L4qt/s8InDHf4W8id0Fl9XtoKjycpJ
okb76Svtg+dMQWAYZf66qAzjVlhezr0MIau1hgyaSxpYcebFAM2gU6LdnG1C0u7G
dt6z6WIPVjbYLePL+WzcmQvObKYBvaPQW6Cxunfj9HZibVcbsvuj4PHsEbe1BmHx
Rxjne1ysYnk9v/dlTcscWOujWlqqCRgej6qc8QlHgAJwPrCizNkPyeYl53n9uvws
W9y6dDJTpwC722MBD/3+WsLzJduH9UPDuMw36Vzv9UzR4kuEhOnzf7q48HZqfDM=
=GJah
-----END PGP SIGNATURE-----



More information about the IIAB mailing list