I have been playing around for a few days trying to run Couch Potato on FreeNas. The first lot of errors I was getting were related to the CouchPotato.log file missing, creating a empty file /logs/CouchPotato.log seemed to prevented this. The next error I was this:
Code: Select all
freenas:/usr/local/bin/.couchpotato# python2.6 /usr/local/bin/.couchpotato/CouchPotato.py Traceback (most recent call last): File "/usr/local/bin/.couchpotato/CouchPotato.py", line 41, in <module> from app.config.db import initDb File "/usr/local/bin/.couchpotato/app/config/db.py", line 16, in <module> engine = create_engine('sqlite:///%s' % path) File "/usr/local/bin/.couchpotato/library/sqlalchemy/engine/__init__.py", line 241, in create_engine return strategy.create(*args, **kwargs) File "/usr/local/bin/.couchpotato/library/sqlalchemy/engine/strategies.py", line 60, in create dbapi = dialect_cls.dbapi(**dbapi_args) File "/usr/local/bin/.couchpotato/library/sqlalchemy/dialects/sqlite/pysqlite.py", line 208, in dbapi raise e ImportError: No module named pysqlite2
This error was caused by a missing module, after hours on google I still couldn't find a way to install the python2.6 packages required by CP. All out of ideas at this point, I decided to do something silly and copy all the site-packages from python 2.5 into python 2.6. CP now looks like it is trying to start up but coming up with a odd error(code sec below), Just wondering if anyone knows what this error means or has any ideas how I could get it working.
Code: Select all
freenas:/usr/local/bin/.couchpotato# python2.6 /usr/local/bin/.couchpotato/CouchPotato.py [27/Jul/2010:19:52:03] ENGINE Listening for SIGHUP. [27/Jul/2010:19:52:03] ENGINE Listening for SIGTERM. [27/Jul/2010:19:52:03] ENGINE Listening for SIGUSR1. [27/Jul/2010:19:52:03] ENGINE Bus STARTING [27/Jul/2010:19:52:03] ENGINE Started monitor thread '_TimeoutMonitor'. [27/Jul/2010:19:52:04] ENGINE Error in 'start' listener <bound method Updater.start of <app.config.updater.Updater object at 0x2923d90c>> Traceback (most recent call last): File "/usr/local/bin/.couchpotato/cherrypy/process/wspbus.py", line 176, in publish output.append(listener(*args, **kwargs)) File "/usr/local/bin/.couchpotato/app/config/updater.py", line 43, in start self.checkForUpdate() File "/usr/local/bin/.couchpotato/app/config/updater.py", line 86, in checkForUpdate update = self.checkForUpdateUnix() File "/usr/local/bin/.couchpotato/app/config/updater.py", line 96, in checkForUpdateUnix data = urllib2.urlopen(self.url, timeout = self.timeout) TypeError: urlopen() got an unexpected keyword argument 'timeout' [27/Jul/2010:19:52:04] ENGINE Serving on 0.0.0.0:5000 [27/Jul/2010:19:52:04] ENGINE Shutting down due to error in start listener: Traceback (most recent call last): File "/usr/local/bin/.couchpotato/cherrypy/process/wspbus.py", line 213, in start self.publish('start') File "/usr/local/bin/.couchpotato/cherrypy/process/wspbus.py", line 193, in publish raise exc ChannelFailures: TypeError("urlopen() got an unexpected keyword argument 'timeout'",) [27/Jul/2010:19:52:04] ENGINE Bus STOPPING [27/Jul/2010:19:52:04] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5000)) shut down [27/Jul/2010:19:52:04] ENGINE Stopped thread '_TimeoutMonitor'. [27/Jul/2010:19:52:19] ENGINE Bus STOPPED [27/Jul/2010:19:52:19] ENGINE Bus EXITING [27/Jul/2010:19:52:19] ENGINE Bus EXITED