Placeholder since I still haven't figured out how to edit the first post in the issue queue.

Comments

mikeytown2’s picture

CentOS Instructions

Install Java, OpenSSL, SQLite, ImageMagick

yum install java openssl-devel sqlite ImageMagick

Install Python 2.5.5 http://blog.perplexedlabs.com/2008/11/10/setup-python-25-mod_wsgi-and-dj...
http://www.thrdcross.com/node/5

wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz 
tar fxz Python-2.5.5.tgz
cd Python-2.5.5
./configure --prefix=/opt/python2.5 --with-threads --enable-shared
make
make install
alias python='/opt/python2.5/bin/python'
ln -s /opt/python2.5/bin/python /usr/bin/python2.5
cat >> /etc/ld.so.conf.d/opt-python2.5.conf
/opt/python2.5/lib     (hit enter) (hit ctrl-d to return to shell)
ldconfig
cd ..

Install Pyinotify

wget http://peak.telecommunity.com/dist/ez_setup.py 
python ez_setup.py
easy_install pyinotify

File Conveyor (replace wimleers-fileconveyor-7a4a43a with the version github gives you)

wget http://github.com/wimleers/fileconveyor/tarball/master 
tar -xzf wimleers-fileconveyor-7a4a43a.tar.gz
mv wimleers-fileconveyor-7a4a43a/ /opt/fileconveyor

YUI Compressor

wget http://yuilibrary.com/downloads/yuicompressor/yuicompressor-2.4.2.zip 
unzip yuicompressor-2.4.2.zip
mv yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar /opt/fileconveyor/code/processors/yuicompressor.jar

Google Closure Compiler

wget http://closure-compiler.googlecode.com/files/compiler-latest.zip 
unzip compiler-latest.zip
mv compiler.jar /opt/fileconveyor/code/processors/compiler.jar

cssutils

wget http://cssutils.googlecode.com/files/cssutils-0.9.7a2-py2.5.egg 
easy_install cssutils-0.9.7a2-py2.5.egg

jpegtran

wget http://www.ijg.org/files/jpegsrc.v8.tar.gz 
tar -xzvf jpegsrc.v8.tar.gz
cd jpeg-8/
./configure
make
make install
cd ..

Pngcrush

wget http://sourceforge.net/projects/pmt/files/pngcrush/00-1.7.7/pngcrush-1.7.7.tar.gz/download 
tar -xzvf pngcrush-1.7.7.tar.gz
cd pngcrush-1.7.7
make
mv pngcrush /usr/bin/pngcrush
cd ..

gifsicle

wget http://www.lcdf.org/gifsicle/gifsicle-1.58.tar.gz 
tar -xzvf gifsicle-1.58.tar.gz
cd gifsicle-1.58
./configure
make
make install
cd ..
mikeytown2’s picture

ps there is a typo in code\INSTALL.txt on line 25

You must install version 0.8.0 or better (it has only been tested with 0.9.6
but the API has remained the same according to the documentation).

The newest version from what I can tell is 0.8.9
http://seb.dbzteam.org/pub/pyinotify/releases/

mikeytown2’s picture

I've opened a lot of issues over here: http://github.com/wimleers/fileconveyor/issues

wim leers’s picture

Status: Active » Fixed

Thanks mikeytown2!

#1: Thanks! Linked to this from INSTALL.txt: http://github.com/wimleers/fileconveyor/commit/c472b96acf8a91c31c47e8824...

#2: I say "0.8.0 or better", because the 0.8.x versions have the same API. So that is correct. Newer is better of course.

#3: Thanks :) I'll get back to those as soon as I find the time.

P.S.:

Placeholder since I still haven't figured out how to edit the first post in the issue queue.

Me neither. I don't think it's supported. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Peter Bowey’s picture

Version: 6.x-2.0-beta2 » 6.x-2.0
Component: Miscellaneous » File Conveyor mode
Assigned: Unassigned » Peter Bowey
Category: support » bug
Status: Closed (fixed) » Active
Issue tags: +fileconveyor

link_updater.py code fault with Python 2.6+

The /fileconveyor/code/processors file [link_updater.py] needs a change to work correctly with Python versions greater than 2.5+:

Line # 39 of link_updater.py needs to change from:

parser = CSSParser(log=None, loglevel=logging.critical)

to:

parser = CSSParser(log=None, loglevel=logging.CRITICAL)

I have tested this with and without the above change.
It works fine with the correct Python setLevel syntax, but gives ERROR with out the change!

wim leers’s picture

Status: Active » Fixed

Please report this at https://github.com/wimleers/fileconveyor. And preferably fork the code, make your changes, and do a pull request :)

Thanks!

Peter Bowey’s picture

Title: File Conveyor: CentOS install Guide for python 2.5.5 & pyinotify » File Conveyor: Mapping fileconveyor to several static assets
Category: bug » support
Status: Fixed » Needs work
Issue tags: +CSS, +JavaScript, +images, +parallel, +assets

Question: How can you achieve this concept:

* all CSS assets mapped to [say] static0.domain.com
* all JS assets mapped to [say] static1.domain.com
* all images mapped to [say] static2.domain.com
* all Flash mapped to [say] static3.domain.com

I tried several [logical] combination's as to what seem Logical (reading the code, doc's and thesis) - but (as yet) no good result achieved on parallel asset divisions.

The excellent [various] notes given do not speak [clearly] of the inner code design or code methods.
I have [therefore] resorted to hours of 'guess + trial work' to find the methods that yet work.

I [additionally] raise a note that those CSS assets that need to be re-queued for processing will [finally] miss out on having compression via the [yuicompressor] compression processor.

My testing indicates that all CSS assets that have survived the re-queue process of fileconveyor are eventually finalized as 'uncompressed' assets.

Please advise - as time permits.

wim leers’s picture

Thanks for creating an issue on GitHub! I've replied right there: https://github.com/wimleers/fileconveyor/issues/issue/39/#issue/39/comme....

wim leers’s picture

Title: File Conveyor: Mapping fileconveyor to several static assets » File Conveyor: CentOS install Guide for python 2.5.5 & pyinotify
Assigned: Peter Bowey » wim leers
Status: Needs work » Closed (fixed)
PedroMiguel’s picture

For people with error error: Setup script exited with error: command 'gcc' failed with exit status 1 when Install Pyinotify try:

yum install python-devel

Works for me...

airjoshb’s picture

I have installed python per the instructions here and file conveyor. I set up the config with my info and when I run the arbitrator.py, i get the following:

Traceback (most recent call last):
File "/opt/fileconveyor/code/arbitrator.py", line 9, in ?
import sqlite3
ImportError: No module named sqlite3

After doing some research it seems that maybe it is looking still to the old 2.4 v of python, how do I tell file conveyor to use the 2.5 install from above? Or is there another issue here that I am missing?

wim leers’s picture

python2.5 arbitrator.py

Type python in the terminal and then press the "tab" key. This will show you all Python versions installed.

airjoshb’s picture

Here is what comes up from python [tab]

python python2 python2.4 python2.5

airjoshb’s picture

wim leers’s picture

Then you can do what I said: python2.5 arbitrator.py. It should work just fine then.

stongo’s picture

I can't get file conveyor running on centOS
I get an error when starting arbitrator.py:

The transporter module 'ftp' could not be found

I tried configuring other transporters in config.xml and they all return the same error
Issue also reported here https://github.com/wimleers/fileconveyor/issues/104
Any help would be appreciated