Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PermissionError: [Errno 13] #1

Open
wasare opened this issue Jul 22, 2020 · 1 comment
Open

PermissionError: [Errno 13] #1

wasare opened this issue Jul 22, 2020 · 1 comment

Comments

@wasare
Copy link

wasare commented Jul 22, 2020

When i try run manager.py makemigrations i got:

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/user_unique_email/migrations/0003_auto_20200722_1204.py

Installled with

pip3 install django-user-unique-email (as root)

Running as regular user:
$ python3 manager makemigrations

The workaround was reinstall the package as regular user and run makemigrations again.

@misli
Copy link
Owner

misli commented Jul 22, 2020

Hi Wanderson,
thank You for reporting this issue. It is because the migration user_unique_email/migrations/0001_initial.py doesn't exactly correspond to the User model provided by django.contrib.auth from the particular Django version you use.
I'll try to find a way to make the initial migration more generic to work with any Django version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants