Poetry: Dependency problem when installing dynamic-rest 1.8.0 with django 2.0.7

Created on 29 Nov 2018  路  6Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] 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
Bug stale

Most helpful comment

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

All 6 comments

according to this, version 1.8 does not support django 2.0

but in release notes, it says it supports django 2.0, lol

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

Hi,
is there any plan to having this fixed? This is currently the only blocker for our using this otherwise amazing tool.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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.

Was this page helpful?
0 / 5 - 0 ratings