wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

Arbitrator not finding transporters when Django is installed #31

Closed synesthete closed 13 years ago

synesthete commented 13 years ago

I am having trouble with the transporters being reported as not found.

2010-09-30 16:11:10,046 - Arbitrator - ERROR - The Transporter module 'transporters.transporter_cf' could not be found. Consult the log file for details

The log shows:

2010-09-30 15:58:13,585 - Arbitrator - WARNING - Arbitrator is initializing. 2010-09-30 15:58:13,585 - Arbitrator - INFO - Loading config file. 2010-09-30 15:58:13,587 - Arbitrator.Config - INFO - Parsing sources. 2010-09-30 15:58:13,587 - Arbitrator.Config - INFO - Parsing servers. 2010-09-30 15:58:13,587 - Arbitrator.Config - INFO - Parsing rules. 2010-09-30 15:58:13,587 - Arbitrator - WARNING - Loaded config file. 2010-09-30 15:58:13,971 - Arbitrator - ERROR - The Transporter module 'transporters.transporter_cf' could not be found.

I am on Dreamhost, if that helps or hinders. Have a python virtualenv running 2.5.2 and have installed pyinotify 0.9.0 . .pyc files are being generated for the transporters I have tried...ftp and cf.

Any insight or ideas on things to check would be most welcome.

jdrusch commented 13 years ago

I just posted this on an already closed issue, but here it is again:

I encountered this problem and tracked it down to a more recent version of django being installed on the system.

I changed 1 line in arbitrator.py to fix:

Remove: sys.path.append(os.path.abspath(os.path.join(sys.path[0], 'dependencies'))) And replace with: sys.path.insert(1,os.path.abspath(os.path.join(sys.path[0], 'dependencies')))

wimleers commented 13 years ago

Aha, so you inserted File Conveyor's dependencies directory before Django in sys.path. That makes sense! Will commit your changes right away.