Francesco Mancuso
unread,Feb 10, 2023, 1:18:58 AM2/10/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Contest Management System (support)
Hi, a few days ago I did a clean installation of the CMS (stable version) on an AWS EC2 with Ubuntu 22.04.
I followed all the steps described in the guide, but I get an error when running the "cmsInitDB" command.
The error I get is the following:
"postgres@aws:~$ cmsInitDB
2023-02-09 21:13:03,103 - INFO [<unknown>] Using configuration file /usr/local/etc/cms.conf.
Traceback (most recent call last):
File "/usr/local/bin/cmsInitDB", line 4, in <module>
import('pkg_resources').run_script('cms==1.4rc1', 'cmsInitDB')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 656, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1453, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.10/dist-packages/cms-1.4rc1-py3.10.egg/EGG-INFO/scripts/cmsInitDB", line 46, in <module>
from cms.db import test_db_connection, init_db
File "/usr/local/lib/python3.10/dist-packages/cms-1.4rc1-py3.10.egg/cms/db/init.py", line 103, in <module>
from .base import Base
File "/usr/local/lib/python3.10/dist-packages/cms-1.4rc1-py3.10.egg/cms/db/base.py", line 82, in <module>
class Base(object):
File "/usr/local/lib/python3.10/dist-packages/sqlalchemy/orm/decl_api.py", line 1691, in decorate
return self.generate_base(**kw) # type: ignore
TypeError: registry.generate_base() got an unexpected keyword argument 'bind'"
How can I fix it? Thanks