question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PermissionError: [Errno 13] Permission denied: '.../0002_alter_captchastore_id.py'

See original GitHub issue

Why?

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:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mbicommented, Apr 17, 2021

Closing.

0reactions
mbicommented, Apr 14, 2021

Okay I see, this is likely related to the new AutoField feature introduced with Django 3.2

You can probably safely ignore that warning.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found