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

Issue while setting up in windows 10 #651

Open
sameer1001 opened this issue Mar 22, 2020 · 2 comments · May be fixed by #682
Open

Issue while setting up in windows 10 #651

sameer1001 opened this issue Mar 22, 2020 · 2 comments · May be fixed by #682
Assignees

Comments

@sameer1001
Copy link

Python version: 3.5
Windows 10 Pro, version: 1903

While running nox -- migrate --noinput for the first time, we are getting an issue saying
AttributeError: module 'os' has no attribute 'uname'

With quick googling, I could figure out that this is related to the package uwsgi==2.0.* in the requirements.txt

I removed this package from requirements.txt and tried running the command again and it worked.

Everything seems to work fine after this also. I am not sure about the purpose of this package, so I thought of putting this as an issue here.

Thanks,

@ananyo2012
Copy link
Contributor

uWSGI is used for interacting between server and django app. While django launches a test server when using locally that is not enough for running in production.

The solution will be to move it in a separate requirements file requirements-prod.txt until we have some better dependency management solution like pipenv

@palnabarun
Copy link
Member

@sameer1001 -- Thanks for filing this.

Last time I checked, none of the popular WSGI frameworks, viz, uWSGI or Gunicorn, support Windows due to the way they work. Ideally, uWSGI as a dependency should not be put in requirements.txt since it is not part of the application but is used to deploy WSGI applications.

@palnabarun palnabarun self-assigned this Jun 5, 2020
palnabarun added a commit to palnabarun/junction that referenced this issue Jun 5, 2020
uwsgi is installed by default using other means in the virtualenv
used by junction. There is no need to install uwsgi through the
application dependencies.

The support for uwsgi is flaky at best on Windows and works with
very limited functionality. Hence, this breaks development velocity
for people developing Junction on Windows.

Ref: pythonindia#651

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
@palnabarun palnabarun linked a pull request Jun 5, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants