Hi All, I need some help. My Django 3.1.4 on debian Linux with Python 3.6 is not behaving properly. Seems there is some issue with few of the packages.
Issue is same, trying to replicate from all three way to show so that I could get some help. Here are some of the observations, need your help 1. Super User creation through command line throwing exception as Traceback (most recent call last): File "manage.py", line 22, in <module> main() File "manage.py", line 18, in main 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 330, in run_from_argv self.execute(*args, **cmd_options) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute return super().execute(*args, **options) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py", line 371, in execute output = self.handle(*args, **options) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 157, in handle validate_password(password2, self.UserModel(**fake_user_data)) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/password_validation.py", line 44, in validate_password password_validators = get_default_password_validators() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/password_validation.py", line 19, in get_default_password_validators return get_password_validators(settings.AUTH_PASSWORD_VALIDATORS) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/password_validation.py", line 30, in get_password_validators validators.append(klass(**validator.get('OPTIONS', {}))) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/auth/password_validation.py", line 174, in __init__ with gzip.open(password_list_path, 'rt', encoding='utf-8') as f: File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/gzip.py", line 57, in open raise TypeError("filename must be a str or bytes object, or a file") TypeError: filename must be a str or bytes object, or a file 2. Admin page on the local host is throwing an exception TypeError at /admin/login/ expected str, bytes or os.PathLike object, not PosixPath Request Method: GET Request URL: http://127.0.0.1:8000/admin/login/?next=/admin/ Django Version: 3.1.4 Exception Type: TypeError Exception Value: expected str, bytes or os.PathLike object, not PosixPath Exception Location: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py, line 78, in join Python Executable: /usr/local/bin/python3 3. command shell for creating user is throwing exception during save() call /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/gzip.py in open(filename, mode, compresslevel, encoding, errors, newline) * 55* binary_file = GzipFile(None, gz_mode, compresslevel, filename) * 56* else: ---> 57 raise TypeError("filename must be a str or bytes object, or a file") * 58* * 59* if "t" in mode: TypeError: filename must be a str or bytes object, or a file -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAANDXNt40ssFQqCaO2DHWwvVcrS-dG4FdaYR9L0NJ_wCrU--WQ%40mail.gmail.com.