[ckan-dev] Fwd: trying a production deployment gives error when running paster --plugin ckan db init --config tmpl-ckan : TypeError: __init__() takes exactly 1 argument (2 given

Kimpe Marc Marc.Kimpe at cronos.be
Thu Jun 30 11:12:23 UTC 2011



Begin forwarded message:

From: Kimpe Marc <Marc.Kimpe at cronos.be<mailto:Marc.Kimpe at cronos.be>>
Date: 30 Jun 2011 12:04:39 GMT+02:00
To: Kimpe Marc <Marc.Kimpe at cronos.be<mailto:Marc.Kimpe at cronos.be>>
Cc: "ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>" <ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>>
Subject: Re: trying a production deployment gives error when running paster --plugin ckan db init --config tmpl-ckan : TypeError: __init__() takes exactly 1 argument (2 given

Resending after subscription.

Thanks,

Marc


On 29 Jun 2011, at 15:30, Kimpe Marc wrote:

Hi,


In order to prepare for a new open data site, I'm trying to follow the
procedure in
http://packages.python.org/ckan/deployment.html
on a Ubuntu :
Linux tmpl-ckan 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50
UTC 2010 i686 GNU/Linux


I got to the stage were I try to initialize the database with
running :

paster --plugin ckan db init --config tmpl-ckan

However this gives me an error :

(pyenv)grizzzly at tmpl-ckan:~$ paster --plugin ckan db init --config
tmpl-ckan
/home/grizzzly/pyenv/lib/python2.6/site-packages/migrate-0.2.2-
py2.6.egg/migrate/versioning/unique_instance.py:19:
DeprecationWarning: object.__new__() takes no parameters
 instances[key] = super(UniqueInstance,cls).__new__(cls,*p,**k)
Traceback (most recent call last):
 File "/usr/bin/paster", line 18, in <module>
   command.run()
 File "/usr/lib/pymodules/python2.6/paste/script/command.py", line
84, in run
   invoke(command, command_name, options, args[1:])
 File "/usr/lib/pymodules/python2.6/paste/script/command.py", line
123, in invoke
   exit_code = runner.run(args)
 File "/usr/lib/pymodules/python2.6/paste/script/command.py", line
218, in run
   result = self.command()
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/ckan-1.4.1-
py2.6.egg/ckan/lib/cli.py", line 87, in command
   model.repo.init_db()
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/ckan-1.4.1-
py2.6.egg/ckan/model/__init__.py", line 70, in init_db
   self.upgrade_db()
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/ckan-1.4.1-
py2.6.egg/ckan/model/__init__.py", line 168, in upgrade_db
   import migrate.versioning.api as mig
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/api.py", line 5, in
<module>
   from migrate.versioning.repository import *
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/repository.py", line 8, in
<module>
   from migrate.versioning import script,exceptions,version
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/script/__init__.py", line
1, in <module>
   from py import *
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/script/py.py", line 2, in
<module>
   from logsql import LogsqlFile
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/script/logsql.py", line 2,
in <module>
   from migrate.versioning import logengine
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/logengine.py", line 260, in
<module>
   LogEngineStrategy()
 File "/home/grizzzly/pyenv/lib/python2.6/site-packages/
migrate-0.2.2-py2.6.egg/migrate/versioning/logengine.py", line 253, in
__init__
   super(LogEngineStrategy,self).__init__('logsql')
TypeError: __init__() takes exactly 1 argument (2 given)


Here are the versions PIP reports currently :

(pyenv)grizzzly at tmpl-ckan:~$ pip freeze
Warning: cannot find svn location for flup==1.0.3.dev-20110405
Babel==0.9.6
Beaker==1.5.4
Brlapi==0.5.5
CouchDB==0.6
FormAlchemy==1.4
FormEncode==1.2.2
Genshi==0.6
GnuPGInterface==0.3.2
Jinja2==2.5.5
Mako==0.3.4
MarkupSafe==0.9.2
PAM==0.4.2
PIL==1.1.7
Paste==1.7.4
PasteDeploy==1.3.3
PasteScript==1.7.3
PyUtilib==3.6.2498
Pygments==1.4
Pylons==0.9.7
Routes==1.12.3
SQLAlchemy==0.6.6
Sphinx==0.6.4
Tempita==0.5.1
Twisted-Core==10.1.0
Twisted-Names==10.1.0
Twisted-Web==10.1.0
WebError==0.10.3
WebHelpers==1.2
WebOb==1.0.8
WebTest==1.2.3
adium-theme-ubuntu==0.3
apt-xapian-index==0.39
apturl==0.4.1ubuntu7
argparse==1.1
autoneg==0.5
command-not-found==0.1
configglue==0.9pre1
decorator==3.3.1
distribute==0.6.14
docutils==0.7
## FIXME: could not find svn URL in dependency_links for this package:
flup==1.0.3.dev-20110405
gnome-app-install==0.4.7ubuntu2
httplib2==0.6.0
jockey==0.5.10
launchpadlib==1.6.1
lazr.restfulclient==0.9.20
lazr.uri==1.0.2
licenses==0.6
louis==2.0.0
lxml==2.2.4
mercurial==1.6.3
migrate==0.2.2
mod-python==3.3.1
nose==1.0.0
nvidia-common==0.0.0
oauth==1.0a
onboard==0.94.0
papyon==0.5.1
pexpect==2.3
protobuf==2.3.0
psutil==0.2.1
psycopg2==2.0.13
pyOpenSSL==0.10
pycrypto==2.0.1
pycups==1.9.51
pycurl==7.19.0
pyinotify==0.8.9
pyserial==2.3
pysmbc==1.0.8
python-apt==0.7.96.1ubuntu11
python-debian==0.1.16ubuntu1
python-openid==2.2.4
python-virtkey==0.60.0
pyutilib.R==3.0.5
pyutilib.autotest==1.4.6
pyutilib.common==3.0.5
pyutilib.component.app==3.1.6
pyutilib.component.config==3.3.2
pyutilib.component.core==4.3.1
pyutilib.component.doc==1.0.1
pyutilib.component.executables==3.4.1
pyutilib.component.loader==3.3.1
pyutilib.dev==1.15.2
pyutilib.enum==1.0.7
pyutilib.excel==3.0.6
pyutilib.math==3.0.6
pyutilib.misc==4.6
pyutilib.ply==3.0.6
pyutilib.pyro==3.3
pyutilib.services==3.3.1
pyutilib.subprocess==3.2.3
pyutilib.svn==1.0.1
pyutilib.th==5.0
pyutilib.virtualenv==2.5
pyutilib.workflow==2.2.4
pyxdg==0.19
rdflib==2.4.2
repoze.who==2.0b1
scgi==1.13
screen-resolution-extra==0.0.0
sessioninstaller==0.0.0
simplejson==2.1.1
speechd==0.3
speechd-config==0.0
sqlalchemy-migrate==0.6
system-service==0.1.6
ubuntu-sso-client==1.0.3
ubuntuone-storage-protocol==1.4.0
ufw==0.30.0-1ubuntu2
unattended-upgrades==0.1
unittest2==0.5.1
usb-creator==0.2.23
vdm==0.9
virtualenv==1.6.1
wadllib==1.1.4
wsgiref==0.1.2
xkit==0.0.0
zope.interface==3.6.1
(pyenv)grizzzly at tmpl-ckan:~$

Except for the database login the tmpl-ckan is the standard generated


What is wrong ?


Many thanks,

Marc




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110630/755091f2/attachment-0001.html>


More information about the ckan-dev mailing list