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.

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).

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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
gonvaledcommented, Nov 29, 2018

according to this, version 1.8 does not support django 2.0

Yes, and afaik, that is used for python 2 (https://github.com/AltSchool/dynamic-rest/blob/master/setup.py):

    install_requires=open('install_requires.txt'
                          if sys.version_info.major == 2
                          else 'install_requires_python3.txt').readlines(),

The relevant file for python 3 should be the one I linked above, which has:

Django>=1.8,<2.1
djangorestframework>=3.1.0,<3.8
inflection==0.3.1
requests

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 using install_requires.txt if it exists, instead of relying on the execution of setup.py?

I have a related issue open in the other project: https://github.com/AltSchool/dynamic-rest/issues/264

0reactions
stale[bot]commented, Nov 20, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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