FedStoa / moa

A Mastodon, Twitter, and Instagram Cross-poster
https://moa.party
MIT License
355 stars 19 forks source link

Error on creating database tables #148

Closed joenepraat closed 3 years ago

joenepraat commented 3 years ago

I followed the README, but I'm stuck on this line:

MOA_CONFIG=config.DevelopmentConfig /usr/local/bin/pipenv run python -m moa.models

Actually I had to do:

MOA_CONFIG=config.DevelopmentConfig pipenv run python -m moa.models

I get this error:

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/jeroen/moa/moa/models.py", line 255, in <module>
    config = getattr(importlib.import_module('config'), moa_config)
AttributeError: module 'config' has no attribute 'config.DevelopmentConfig'

System info:

Debian 10.6 Python 3.7.3 pipenv, version 2020.8.13 sqlite 3.27.2