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

rest-social-auth is missing in requirements files #120

Open
ovidiuc opened this issue Mar 11, 2020 · 4 comments
Open

rest-social-auth is missing in requirements files #120

ovidiuc opened this issue Mar 11, 2020 · 4 comments

Comments

@ovidiuc
Copy link

ovidiuc commented Mar 11, 2020

It's required to run the example project and it's not getting added when installing the requirements (tried them all).

@ovidiuc ovidiuc changed the title rest-social-auth is missing as dependency rest-social-auth is missing in requirements files Mar 11, 2020
@st4lk
Copy link
Owner

st4lk commented Mar 12, 2020

Hi @ovidiuc
Can you say, how do you run the example project?
I recommend to use make command - this is a single command that should start the example project, check readme.

For the example project, the idea is that rest_social_auth dependency will be taken from your cloned repository, not from pypi.

@ovidiuc
Copy link
Author

ovidiuc commented Mar 12, 2020

Ah, I see.

I couldn't use make in my convoluted setup anyway, as it would require to run it on Windows. There are options I see, but overkill for me wanting to just check out the example project.

I have a Debian virtual machine for development, but requires to be NAT for the rest of my setup so the IP used in the browser wouldn't be 127.0.0.1, as I see is required, but my VMs IP.

So I've just git cloned the project, made a virtualenv for it, installed all the requirements from the requirements files and tried to migrate. Got the error of missing package and installed it manually.

Apologies for not fully reading the instructions, if it works with make/docker, than this is only an issue for those that can't use it.

@st4lk
Copy link
Owner

st4lk commented Mar 12, 2020

If you want to run the example project in native environment (not in Docker) and you have make util, just run this:

make native-run-example

If you don't have the make util, use this command (copy-pasting it from Makefile):

PYTHONPATH='.' python example_project/manage.py runsslserver 0.0.0.0:8000

Probably I better add instructions above ^ to the README

@ovidiuc
Copy link
Author

ovidiuc commented Mar 12, 2020

Yes, that wasn't a problem for me, since I'm using runsslserver in my own project, so I know the command. Just the missing package was the issue.
I ran the example project fine for myself after installing it manually, I've just opened the issue in case others have the same problem.

Out of curiosity, I've tried running the make file with Docker, as per README, on a Debian Buster machine and got the following error at the end of the process:

Docker version 19.03.6
GNU Make 4.2.1

ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '//django_rest_social_auth/venv/lib/python3.7/site-packages/pytz-2019.3.dist-info'
Consider using the '--user' option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make: *** [Makefile:45: .install] Error 1
make[1]: *** [Makefile:22: run] Error 2

I've added locally --user option to the pip install commands in Makefile and now it dies with this error:

PYTHONPATH='.' python example_project/manage.py migrate
Traceback (most recent call last):
  File "example_project/manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
make: *** [Makefile:61: native-migrate] Error 1
make[1]: *** [Makefile:22: run] Error 2

Since I already got it working in my own environment, this is not an issue for me, but might be for others trying to use the Docker image. But it seems to be a problem other than the one in the title.

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