9
votes
Accepted
CS50w - list.py - AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
Postgresql creates a default user called postgres, so login as default user and create a new user
sudo -i -u postgres
createuser --interactive
Then enter your linux username and select Yes for ...
3
votes
CS50w - list.py - AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
For Windows users:
1- Create a new user on SQL Shell:
CREATE ROLE your_user_name LOGIN PASSWORD 'your_password' NOINHERIT CREATEDB;
2- Create a new database on SQL Shell:
Close the SQL shell and ...
1
vote
CS50w - list.py - AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
1- Create a new user on SQL Shell:
CREATE ROLE your_user_name LOGIN PASSWORD 'your_password' NOINHERIT CREATEDB;
2- Create a new database on SQL Shell:
Close the SQL shell and open it again, enter ...
1
vote
CS50w - list.py - AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'
the problem seems to be with the os module, I can run the code without any problem if I specify url='postgresql://localhost' in the code. I seem to struggle to get values of environment variables I ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
postgresql × 13flask × 4
cs50-web-programming-with-python × 4
flask-sqlalchemy × 4
cs50x × 3
sql × 3
project1 × 3
python × 2
sqlalchemy × 2
adminer × 2
finance × 1
lectures × 1
cs50-library × 1
cs50web × 1
database × 1
cs50-website × 1