Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on Raspberry Pi. #4

Open
openedhardware opened this issue Aug 28, 2016 · 0 comments
Open

Failed to build on Raspberry Pi. #4

openedhardware opened this issue Aug 28, 2016 · 0 comments

Comments

@openedhardware
Copy link

Hi, man.

Thanks for your awesome dashboard!

By the way I have been trying to build on my Ubuntu & Raspberry Pi and still have not any luck to succeed.

After installing all dependencies, I just typed ./manage.py db_rebuild and failed.

I had installed postgresql and created role for my current user(default user name of Raspberry Pi is "pi").

But it says:
```
(venv) postgres@raspberry:/home/pi/work/oem_rf/dashboard$ ./manage.py db_rebuild
Traceback (most recent call last):
File "./manage.py", line 162, in
manager.run()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/fl ask_script/init.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/fl ask_script/init.py", line 383, in handle
res = handle(_args, *_config)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/fl ask_script/commands.py", line 216, in call
return self.run(_args, *_kwargs)
File "./manage.py", line 42, in db_rebuild
db.reflect()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/fl ask_sqlalchemy/init.py", line 911, in reflect
self._execute_for_all_tables(app, bind, 'reflect', skip_tables=True)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/fl ask_sqlalchemy/init.py", line 887, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), *_extra)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/sql/schema.py", line 3521, in reflect
with bind.connect() as conn:
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 2005, in connect
return self._connection_cls(self, *_kwargs)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 72, in init
if connection is not None else engine.raw_connection()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 2091, in raw_connection
self.pool.unique_connection, _connection)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 2065, in _wrap_pool_connect
e, dialect, self)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 1395, in _handle_dbapi_exception_noconnection
exc_info
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/util/compat.py", line 199, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/base.py", line 2061, in _wrap_pool_connect
return fn()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 279, in unique_connection
return _ConnectionFairy._checkout(self)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 644, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 439, in checkout
rec = pool._do_get()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 964, in _do_get
self._dec_overflow()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 961, in _do_get
return self._create_connection()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 284, in _create_connection
return _ConnectionRecord(self)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 410, in init
self.connection = self.**connect()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/pool.py", line 538, in __connect
connection = self.__pool._creator()
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/strategies.py", line 89, in connect
return dialect.connect(_cargs, _cparams)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/sq lalchemy/engine/default.py", line 377, in connect
return self.dbapi.connect(_cargs, _cparams)
File "/home/pi/work/oem_rf/dashboard/venv/local/lib/python2.7/site-packages/ps ycopg2/__init
.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: database "d b_dev" does not exist

```

I am eager to hear from you soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant