- edited description
setup.sh fails when no database is present
Issue #28
new
At the end of setup.sh, I get the following error.
no database, so I'll make a default one
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "db.py", line 17, in make
create_all()
File "streetsign_server/models.py", line 119, in create_all
t.create_table(True)
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 5264, in create_table
cls._schema.create_all(safe, **options)
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 4553, in create_all
self.create_table(safe, **table_options)
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 4471, in create_table
self.database.execute(self._create_table(safe=safe, **options))
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 2497, in execute
return self.execute_sql(sql, params, commit=commit)
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 2482, in execute_sql
cursor = self.cursor(commit)
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 2468, in cursor
self.connect()
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 2434, in connect
self._state.set_connection(self._connect())
File "/home/user/streetsign-server/.virtualenv/lib/python2.7/site-packages/peewee.py", line 2650, in _connect
**self.connect_params)
TypeError: 'threadlocals' is an invalid keyword argument for this function
the main user is 'admin' and the password is 'password'.
please change it!
I managed to get it working by removing "threadlocals=True" from line 60 in streetsign-server/models.py
Comments (1)
-
reporter - Log in to comment