python manage.py migrate (runtime error)

43 views
Skip to first unread message

aung thein Naing

unread,
Dec 22, 2020, 8:30:01 PM12/22/20
to RapidSMS Developers

Hello everyone,

Please help my issue. I doing like this, but migrate step in error. Screenshot from 2020-12-23 07-44-47.png
My OS is Ubuntu 20.10

pip install rapidsms

pip install django

django-admin.py startproject --template=https://github.com/rapidsms/rapidsms-project-template/zipball/release-0.21.1 --extension=py,rst start_rsms1

virtualenv start_rsms1-env

source start_rsms1-env/bin/activate

cd start_rsms1
pip install -U -r requirements/base.txt

python manage.py migrate

python manage.py runserver


------------------Error

/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django_tables2/tables.py:175: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
  attrs["base_columns"] = SortedDict(parent_columns)

/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django_tables2/tables.py:197: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9.
  attrs["base_columns"].update(SortedDict(cols))

/var/www/html/start_rsms1-env/lib/python3.8/site-packages/rapidsms/utils/modules.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/var/www/html/start_rsms1-env/lib/python3.8/site-packages/rapidsms/contrib/messagelog/models.py", line 12, in <module>
    class Message(models.Model):
RuntimeError: __class__ not set defining 'Message' as <class 'rapidsms.contrib.messagelog.models.Message'>. Was __classcell__ propagated to type.__new__?


regards,
atnScreenshot from 2020-12-23 07-44-47.png
Reply all
Reply to author
Forward
0 new messages