PermissionError: [Errno 13] Permission denied: '.../0002_alter_captchastore_id.py'
See original GitHub issueWhy?
Operations to perform:
Apply all migrations: account, admin, auth, captcha, contenttypes, sessions
Running migrations:
No migrations to apply.
Your models in app(s): 'captcha' have changes that are not yet reflected in a migration, and so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
***:$ python manage.py makemigrations
Migrations for 'captcha':
/usr/local/lib/python3.9/site-packages/captcha/migrations/0002_alter_captchastore_id.py
- Alter field id on captchastore
Traceback (most recent call last):
File "/usr/src/app/manage.py", line 22, in <module>
main()
File "/usr/src/app/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/makemigrations.py", line 190, in handle
self.write_migration_files(changes)
File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/makemigrations.py", line 228, in write_migration_files
with open(writer.path, "w", encoding='utf-8') as fh:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.9/site-packages/captcha/migrations/0002_alter_captchastore_id.py'
django-simple-captcha==0.5.14
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
PermissionError: [Errno 13] Permission denied - Stack Overflow
This happens if you are trying to open a file, but your path is a folder. This can happen easily by mistake. To...
Read more >Python PermissionError: [errno 13] permission denied Solution
To fix this error, use the chmod or chown command to change the permissions of the file so that the right user and/or...
Read more >[Bug] - PermissionError: [Errno 13] Permission denied: · Issue ...
Using Ubuntu 20.04 LTS with no GUI only CLI. Updated to Chia 1.6.0 and for some reason when I try to plot I...
Read more >PermissionError: [Errno 13] Permission denied error solved
To solve the 'PermissionError: [Errno 13] Permission denied error', ... One way to solve the error is to specify the complete path to...
Read more >How to Solve Errno 13 Error in Python - Sabe.io
In this post, we'll learn how to fix this error by granting permission to the file. Fixing permission errors. First, create a file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing.
Okay I see, this is likely related to the new AutoField feature introduced with Django 3.2
You can probably safely ignore that warning.