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

Django Dependency for django-pyodbc-azure 2.1.0.0 #205

Open
Pineleaf opened this issue Apr 24, 2019 · 4 comments
Open

Django Dependency for django-pyodbc-azure 2.1.0.0 #205

Pineleaf opened this issue Apr 24, 2019 · 4 comments

Comments

@Pineleaf
Copy link

Just noticed that when trying to install version 2.1.0.0
conda install -c conda-forge django-pyodbc-azure
It tries to downgrade django below 2.1 because of a restriction in the meta.yaml run section on the version of django - is this a mistake?
This is a real pain when trying to use django-pyodbc-azure with Django 2.1

image

@nschonni
Copy link

Duplicate of #192

@Pineleaf
Copy link
Author

Really? That thread is about 2.2 if you try this package with 2.1 it tries to downgrade your django and doesnt if you use pip

@wusonghao
Copy link

Hi I am facing a same issue. When I try to install django-pyodbc-azure it tends to downgrade django to lower version 1.11.x which makes my application not workable. Is this meta.yaml constraint a mistake? I thought the first two number should match so 2.1.0.0 should support Django 2.1.x Thanks!

@FlipperPA
Copy link

FlipperPA commented May 19, 2019

A few things may be happening on this issue. I don't see a meta.yaml anywhere in the repository. Looks like a problem with conda-build, not this package.

If you're being downgraded to Django 1.11, it is likely that the Django install is being done on Python 2.x instead of Python 3.x. Django 1.11 was the last version to support Python 2.x. Check and make sure your venv is using Python 3.5 or higher (preferably 3.6 or higher!).

Can people having problems include all the command that are being run? If you install via pip in a fresh venv, you should be good:

$ python3 -m venv myvenv
$ . myvenv/bin/activate
$ pip install django-pyodbc-azure
Collecting django-pyodbc-azure
  Using cached https://files.pythonhosted.org/packages/18/ab/133c68bbea94839d8f3b8b4aea4f70e1c6b8ac929aba4adbadc458566a76/django_pyodbc_azure-2.1.0.0-py3-none-any.whl
Collecting Django<2.2,>=2.1.0 (from django-pyodbc-azure)
  Using cached https://files.pythonhosted.org/packages/a9/e4/fb8f473fe8ee659859cb712e25222243bbd55ece7c319301eeb60ccddc46/Django-2.1.8-py3-none-any.whl
Collecting pyodbc>=3.0 (from django-pyodbc-azure)
Collecting pytz (from Django<2.2,>=2.1.0->django-pyodbc-azure)
  Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl
Installing collected packages: pytz, Django, pyodbc, django-pyodbc-azure
Successfully installed **Django-2.1.8 django-pyodbc-azure-2.1.0.0** pyodbc-4.0.26 pytz-2019.1

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

4 participants