Closed saadcaffeine closed 3 years ago
Many thanks for reporting this issue. Unfortunately we can't reproduce this issue on our end. Can you please provide more information about your system? (OS, python and PostreSQL versions, etc) Also, can you confirm that the config SQLALCHEMY_DATABASE_URI
is set correctly to the database you created?
Linux raspberry 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
(env) pi@raspberry:~/bayanat$ pip --version
pip 21.2.4 from /home/pi/bayanat/env/lib/python3.7/site-packages/pip (python 3.7)
(env) pi@raspberry:~/bayanat$ flask --version
Python 3.7.3
Flask 2.0.1
Werkzeug 2.0.1
(env) pi@raspberry:~/bayanat$ psql --version
psql (PostgreSQL) 11.13 (Debian 11.13-0+deb10u1)
repeated reported steps to re-create the issue resulting in the same SQL error. unable to CREATE TABLE bulletin
(env) pi@raspberry:~/bayanat $ pip3 list
Package Version
------------------- ---------
alembic 1.7.4
amqp 2.6.1
anyjson 0.3.3
appnope 0.1.2
arrow 0.17.0
Babel 2.9.0
backcall 0.2.0
bcrypt 3.1.7
billiard 3.6.3.0
bleach 3.3.1
blinker 1.4
boto3 1.17.34
botocore 1.20.34
bouncer 0.1.12
cachelib 0.2.0
celery 4.4.7
certifi 2020.12.5
cffi 1.14.5
chardet 4.0.0
click 7.1.2
cryptography 3.3.2
decorator 4.4.2
dnspython 1.16.0
docutils 0.16
email-validator 1.1.2
Flask 2.0.1
Flask-Babel 2.0.0
Flask-BabelEx 0.9.4
flask-bouncer 0.3.0
Flask-Caching 1.9.0
Flask-DebugToolbar 0.11.0
Flask-Login 0.5.0
Flask-Mail 0.9.1
Flask-Migrate 2.7.0
Flask-Principal 0.4.0
Flask-Script 2.0.6
Flask-Security-Too 4.0.1
Flask-Session 0.3.2
flask-shell-ipython 0.4.1
Flask-SQLAlchemy 2.5.1
Flask-WTF 0.14.3
GeoAlchemy2 0.8.5
greenlet 1.1.0
idna 2.10
importlib-metadata 2.1.1
importlib-resources 5.3.0
ipython 7.9.0
ipython-genutils 0.2.0
itsdangerous 2.0.1
jedi 0.17.2
Jinja2 3.0.1
jmespath 0.10.0
kombu 4.6.11
Mako 1.1.4
MarkupSafe 2.0.1
more-itertools 7.2.0
numpy 1.21.2
oauthlib 3.1.0
packaging 21.0
pandas 1.3.2
parso 0.7.1
passlib 1.7.4
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.3.2
pip 21.3.1
prompt-toolkit 2.0.10
psycopg2-binary 2.8.6
ptyprocess 0.7.0
pycparser 2.20
pyexifinfo 0.4.0
Pygments 2.7.4
pyparsing 2.4.7
PyQRCode 1.2.1
python-dateutil 2.8.1
python-dotenv 0.15.0
python-editor 1.0.4
pytz 2021.1
redis 3.5.3
requests 2.25.1
s3transfer 0.3.6
setuptools 58.3.0
Shapely 1.7.1
shortuuid 1.0.1
six 1.15.0
speaklater 1.3
SQLAlchemy 1.4.26
text-unidecode 1.3
traitlets 4.3.3
urllib3 1.26.5
uWSGI 2.0.19.1
vine 1.3.0
wcwidth 0.2.5
webencodings 0.5.1
Werkzeug 2.0.1
wheel 0.37.0
WTForms 2.3.3
zipp 3.6.0
Many thanks for providing this information. We believe the issue to be caused by the PostgreSQL version you're using as it doesn't support generated columns: https://www.postgresql.org/docs/11/unsupported-features-sql-standard.html
If you can try to upgrade to a more recent version that would likely fix the issue you're having. Please let us know if the issue persist with newer versions.
Thank you for checking that, upgrading to PostgresSQL 14 resolves the issue.
Debian Buster main apt sources.list provides Postgresql 11 as the most recent version. APT-Sources: http://cdn-aws.deb.debian.org/debian buster/main amd64 Packages
The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at http://apt.postgresql.org/pub/repos/apt/
to add apt.postgresql.org as a source for apt packages:
sudo apt install postgresql-common gnupg
sudo sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
uninstall version 11 of PostgreSQL
sudo apt remove postgresql-11
and then install the latest version
sudo apt-get install postgresql
To Reproduce Steps to reproduce the behavior:
Follow Manual installation steps as at https://docs.bayanat.org/en/install Configure following configuration steps as at https://docs.bayanat.org/en/config