140 try:
141 #resolved_path = path.resolve(strict=True).absolute()
142 resolved_path = path.resolve().absolute()
143 except FileNotFoundError:
144 # The module could have been removed, don't fail loudly if this
145 # is the case.
146 continue
147 except ValueError as e:
148 # Network filesystems may return null bytes in file paths.
149 logger.debug('"%s" raised when resolving path: "%s"' % (str(e), path))
150 continue
151 results.add(resolved_path)
152 return frozenset(results)
153
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py" line 142 of 605 --23%-- col 13
--It seems to me as if there is a mismatch of some in-built functionality. Can't say for exact though. Did you follow the migration rules from one version to another ?Regards,AmiteshOn Thursday, 30 July, 2020, 03:22:51 pm IST, Thierry DECKER <mail@thierry-decker.com> wrote:The resolve() method dose not have the strict parameter anymore.Regards--Le jeu. 30 juil. 2020 à 11:25, Mira <mirathebot@gmail.com> a écrit :--Hi All,I recently upgraded Django from 2.2 to 3 on my MacOS10.13.I am using Python 3.6 and My Application was working fine with Django 2.2 but now i am getting below error.Any help related with this topic would be greatly appreciated.$>python3 manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv
self.execute(*args, **cmd_options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 60, in execute
super().execute(*args, **options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute
output = self.handle(*args, **options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 95, in handle
self.run(**options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 102, in run
autoreload.run_with_reloader(self.inner_run, **options)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 599, in run_with_reloader
start_django(reloader, main_func, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 584, in start_django
reloader.run(django_main_thread)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 299, in run
self.run_loop()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 305, in run_loop
next(ticker)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 345, in tick
for filepath, mtime in self.snapshot_files():
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 361, in snapshot_files
for file in self.watched_files():
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py", line 260, in watched_files
yield from iter_all_python_module_files()
File "/Library/Frameworks/Python.framework/Versions/3.6/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 "/Library/Frameworks/Python.framework/Versions/3.6/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'
udaysingh@udays-MacBook-Pro:~/Django/dreamProj>
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/CAANDXNtvg9sP5OqLktcECco1MhpV0%3DcMgYCKvAF0TLXAH9bpog%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP0vuur1YSp4ptXz%2BnLYAR7adzKLT%2BDRgSXmvvoWa-7DcR2PuQ%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1904970444.6768150.1596106045425%40mail.yahoo.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAANDXNuRDTSv0EBj_%3Dc5-UFF-PORAewuMf9VmFAwRsaUp6YVpA%40mail.gmail.com.
No comments:
Post a Comment