Skip to content

Issue while setting up in windows 10 #651

Closed

Description

@sameer1001

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,

Activity

  1. ananyo2012 commented on Mar 22, 2020

    @ananyo2012
    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

  2. palnabarun commented on Jun 5, 2020

    @palnabarun
    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.

  3. self-assigned this
    on Jun 5, 2020
  4. ananyo2012 commented on Oct 17, 2024

    @ananyo2012
    Contributor

    dockerized setup works in windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions