Hi,
I’m trying to create dev-env for redash-8.0.0 by the link.
At the latest step (Creating Database Tables) get error:

./manage.py database create_tables
Traceback (most recent call last):
  File "./manage.py", line 6, in <module>
    from redash.cli import manager
  File "/Users/javid/redash-8.0.0/redash/__init__.py", line 5, in <module>
    import urlparse
ModuleNotFoundError: No module named 'urlparse'
(redash8) Javids-MacBook-Pro:redash-8.0.0 javid$ pip install urlparse
ERROR: Could not find a version that satisfies the requirement urlparse
ERROR: No matching distribution found for urlparse

Appears to be an environment error, ensure that you have a python 2.7 env.

Thanks. After changing python version(2.7) another issue:
> ./manage.py database create_tables

sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
 (Background on this error at: http://sqlalche.me/e/e3q8)

Point it to your postgres database with setting REDASH_DATABASE_URL, from: https://redash.io/help/open-source/admin-guide/env-vars-settings

Actually I would suggest to setup 9.x beta version instead of 8.x, as the page you linked https://redash.io/help/open-source/dev-guide/setup/ is also for 9.x version I believe as they were using celery not RQ in 8.x version.

Ok.
So it needs to install Python(3), Postgres(>=9.6), Redis(>=3) and Node.js (Latest).

Appears to be an environment error, ensure that you have a python 2.7 env.
So for Redash-8.x → Python 2.7, for Redash-9.x → Python 3 ?
Python 3.6 or can be used latest one?

…as they were using celery not RQ in 8.x version
RQ → Redis Queue? Sos Redis Queue is replaced by Celery?
Celery also uses Redis as Queue. :face_with_monocle:

You are right on the env. If you are using >= 3.6, you should be fine. Here’s what I meant by RQ

hmm. you mean RQ - a library.

On Development Guide:

Processes

  • Web server: ./manage.py runserver --debugger --reload
  • RQ: ./manage.py rq worker
  • RQ Scheduler: ./manage.py rq scheduler
  • Frontend watch process to rebuild changes: npm run watch

So, RQ and RQ Scheduler - it is about Redis Queue or library? or both

Let me clarify, you say that on 8.x => RQ and RQ Schedule,
but on 9.x => Celery (Replaces RQ and RQ Schedule)?

./manage.py rq worker
./manage.py rq scheduler

These are for RQ, the library, which internally uses Redis.

Let me clarify, you say that on 8.x => RQ and RQ Schedule ,
but on 9.x => Celery (Replaces RQ and RQ Schedule) ?

The exact opposite, read: redash/CHANGELOG.md at v9.0.0-beta · getredash/redash · GitHub

1 Like

Thanks. Now it is clear.

I’ve installed redash 9.0.0 successfully.

after running * ./manage.py runserver --debugger --reload
have an access to http://localhost:5000 and
after npm install run to http://localhost:8080/.

but here is log-in page in both screens, not an installation-page(initial page - admin registration).

so which email/password is needed to be used to enter to the system?
maybe there is some scripts to run to create admin user?
by the way, on postgres/users table no rows.

So no one who can help to start to use it normally(development env)?