Replit django cron-tab throwing error ModuleNotFoundError: No module named 'django-chrontab' when already installed

Question: how do i fix this?I have already done the pip install.

Repl link/Link to where the bug appears:
https://replit.com/@shrisanka/NeatElderlyLinks

Screenshots, links, or other helpful context:

python manage.py crontab add
Traceback (most recent call last):
  File "/home/runner/NeatElderlyLinks/manage.py", line 22, in <module>
    main()
  File "/home/runner/NeatElderlyLinks/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/runner/NeatElderlyLinks/.pythonlibs/lib/python3.10/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/home/runner/NeatElderlyLinks/.pythonlibs/lib/python3.10/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/home/runner/NeatElderlyLinks/.pythonlibs/lib/python3.10/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/runner/NeatElderlyLinks/.pythonlibs/lib/python3.10/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
  File "/home/runner/NeatElderlyLinks/.pythonlibs/lib/python3.10/site-packages/django/apps/config.py", line 193, in create
    import_module(entry)
  File "/nix/store/1gc9wvzsy15pclrqfspii166p52lmh5i-python3-3.10.13/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django-chrontab'

Typo not chrontab but crontab sorry folks a newbie!!! fixed

1 Like

Please mark the post as the solution just in case anyone in the future has the same error.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.