TypeError: resolve() got an unexpected keyword argument 'strict' in Django

531 views
Skip to first unread message

Abhishek Pandey

unread,
Apr 12, 2020, 6:58:57 PM4/12/20
to Django users
Hello Everyone!

I am a new Django learner. I followed some tutorials to install django but when i try to runserver an error message comes up. Whenever I hit this command: python manage.py runserver
the following error comes up.

Watching for file changes with StatReloader
Performing system checks...

Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    main()
  File "manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
    utility.execute()
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 60, in execute
    super().execute(*args, **options)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
    output = self.handle(*args, **options)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 95, in handle
    self.run(**options)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 102, in run
    autoreload.run_with_reloader(self.inner_run, **options)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 599, in run_with_reloader
    start_django(reloader, main_func, *args, **kwargs)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 584, in start_django
    reloader.run(django_main_thread)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 299, in run
    self.run_loop()
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 305, in run_loop
    next(ticker)
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 345, in tick
    for filepath, mtime in self.snapshot_files():
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 361, in snapshot_files
    for file in self.watched_files():
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 260, in watched_files
    yield from iter_all_python_module_files()
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 105, in iter_all_python_module_files
    return iter_modules_and_files(modules, frozenset(_error_files))
  File "/Users/Abhi/PycharmProjects/SearchProject/venv/lib/python3.6/site-packages/django/utils/autoreload.py", line 141, in iter_modules_and_files
    resolved_path = path.resolve(strict=True).absolute()
TypeError: resolve() got an unexpected keyword argument 'strict'



Can anyone help me out with this, please?

Ernest Thuku

unread,
Apr 12, 2020, 10:48:14 PM4/12/20
to Django users

Can you please provide more details...your views.. models etc

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/df96311a-d9ef-4dec-aca3-1b003f279c76%40googlegroups.com.

Abhishek Pandey

unread,
Apr 18, 2020, 6:57:42 PM4/18/20
to django...@googlegroups.com
I am not much aware of this because I had just started following the tutorial. Here is the image of my app and folders. I havent created anything else than this and made no changes in any file yet.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPsfuofTQ2F8C%2BhymMZfXdhqiAx%2BrbBYP4rch-qHm-DKhNKV_A%40mail.gmail.com.
20200418_184932.jpg

uday

unread,
May 14, 2020, 4:36:16 PM5/14/20
to Django users
Abhi,
Did you got any resolution for this issue. I did recent upgrade to Django 3.0.6 and started getting the same issue.
My pathlib library is also upto date.
Reply all
Reply to author
Forward
0 new messages