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.

Windows compatibility

See original GitHub issue

On PyPi the metadata states that this package is OS Independent. After spending half an hour reading the documentation and setting up a test installation I found out that django-q does not support Windows. After adding it to the django project setting, any management command issued fails with:

ImportError: No module named _curses

As it seems, this is due to the dependency on blessed. Please spare others the same frustration and update pypi metadata and/or add a note about operating support to your readme.

If you´d ever wanted to support windows I can recommend https://pypi.python.org/pypi/colorama for crossplatform colored terminal output. I can also recommend http://www.appveyor.com/ if you need travis like free windows ci/testing for the project.

Otherwise this looks like a great project. Thanks for making it open source.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:47 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
Koed00commented, Oct 10, 2015

Well I guess I’ll have to install windows somewhere. The sacrifices I make for open source ¯_(ツ)_/¯

0reactions
aragentumcommented, Oct 15, 2019

I’m developing project in a Docker container (because my project will use in production on linux server) and django-q works without problems. If you have the same case, you can run django-q separately in container:

Dockerfile

ARG APP_NAME=web
ARG WORKDIR=/usr/src/app
ARG REQUIREMENTS=${APP_NAME}/requirements/development.txt

FROM python:3.7
ARG APP_NAME
ARG WORKDIR
ARG REQUIREMENTS

WORKDIR ${WORKDIR}

COPY ./${APP_NAME} ./${APP_NAME}
COPY ./manage.py ./
COPY ./run.sh ./

RUN chmod +x ./run.sh
RUN pip install -r ${REQUIREMENTS}

run.sh

#!/bin/sh

set -e

until python manage.py migrate; do
  echo "Migration problems, possibly DB server is unavailable"
  sleep 5
done

# you can comment out the line below and change to docker-compose.yml
# tty: true, stdin_open: true, rename 'entrypoint' to 'command', after that you can
# just connect to container and type this command manually
python manage.py qcluster 

docker-compose.yml

version: "3.7"

services:
  dev-web:
    container_name: dev-web
    networks:
      - web-network
    build:
      context: .
      dockerfile: Dockerfile
    restart: always
    depends_on:
      - dev-db
    links:
      - dev-db
    entrypoint: ["./run.sh"]
#    tty: true
#    stdin_open: true
    ports:
      - "8000:8000"

  dev-db:
    container_name: dev-db
    networks:
      - web-network
    image: postgres:10.7
    restart: always
    environment:
      - POSTGRES_USER=django_web
      - POSTGRES_PASSWORD=django_web
      - POSTGRES_DB=django_web
    command: ["--autovacuum=off"]
    ports:
      - "5432:5432"

networks:
  web-network:

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make older apps or programs compatible with Windows 10
Select and hold (or right-click) the program file, select Properties, and then select the Compatibility tab. Select Run compatibility troubleshooter. If that ...
Read more >
How to change the Windows compatibility mode
In the Windows operating system, compatibility mode allows software to run as if it were doing so in an older version of Windows....
Read more >
How to Run Old Programs With Windows Compatibility Mode
How to Change Windows 10 Compatibility Mode Settings · Right-click (or press and hold) the program icon and select Properties from the drop-down ......
Read more >
Microsoft.Windows.Compatibility 7.0.0 - NuGet
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET...
Read more >
Windows Compatibility Mode - PCGamingWiki PCGW
From the drop-down menu, select Properties. Once the window is open, select the Compatibility tab. ... If using a shortcut, be sure that...
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