Dependency problem when installing dynamic-rest 1.8.0 with django 2.0.7
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: Linux Mint 19 Tara
- Poetry version: Poetry 0.12.10
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/gonvaled/914f5fda1b55c22a161741b566e7a555
Issue
I am not sure what is going on, since dynamic-rest 1.8.0
is supposed to be compatible with django 2.0.7:
» poetry add dynamic-rest==1.8.0
Updating dependencies
Resolving dependencies... (0.2s)
[SolverProblemError]
Because dynamic-rest (1.8.0) depends on Django (>=1.8,<2.0)
and poetry-demo depends on Django (^2.0.7), dynamic-rest is forbidden.
So, because poetry-demo depends on dynamic-rest (=1.8.0), version solving failed.
add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...
I am on python 3.6.5:
» python --version
Python 3.6.5
According to dynamic-rest sources, these are the requirements for python 3:
Django>=1.8,<2.1
djangorestframework>=3.1.0,<3.8
inflection==0.3.1
requests
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Problem with dependency resolution with django and ... - GitHub
When I execute the following command I get an error message that suggests that poetry somehow thinks it has to use the setup.py...
Read more >Django Project Install error (The conflict is caused by
This error says txt (line 8) and asgiref==3.2. 5 because these package versions have conflicting dependencies. The conflict is caused by: The ...
Read more >FAQ: Installation | Django documentation
Install Django (read the installation guide). ... See the table in the next question for the versions of Python that work with each...
Read more >dynamic-rest - PyPI
Overview. Dynamic REST (or DREST) extends the popular Django REST Framework (or DRF) with API features that empower simple RESTful APIs with the...
Read more >Release Notes - Django REST framework
Django, API, REST, Release Notes. ... pip install -U djangorestframework ... Updated PyYaml dependency for OpenAPI schema generation to pyyaml>=5.1 #6680 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, and afaik, that is used for python 2 (https://github.com/AltSchool/dynamic-rest/blob/master/setup.py):
The relevant file for python 3 should be the one I linked above, which has:
So, in theory this is compatible with Django 2.0 when using python3.
No idea what is going on.
@sdispater: could it be that
poetry
is making assumptions and usinginstall_requires.txt
if it exists, instead of relying on the execution ofsetup.py
?I have a related issue open in the other project: https://github.com/AltSchool/dynamic-rest/issues/264
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.