justindujardin/pathy

smart-open and spacy incompatible beacause of pathy

Closed this issue ยท 2 comments

When installing with poetry on python 3.10 or 3.11, there is a dependency issue (see below) that can be solved by upgrading to smart-open 6.2 (master...blenzi:pathy:master). Is it possible ?

curl -sSL https://install.python-poetry.org | python3
# Add poetry to $PATH if needed
poetry new poetry-demo
cd poetry-demo
poetry add spacy smart-open
Because no versions of pathy match >0.3.5,<0.3.6 || >0.3.6,<0.4.0 || >0.4.0,<0.5.0 || >0.5.0,<0.5.1 || >0.5.1,<0.5.2 || >0.5.2,<0.6.0 || >0.6.0,<0.6.1 || >0.6.1,<0.6.2 || >0.6.2,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0
 and pathy (0.3.5) depends on smart-open (>=2.2.0,<4.0.0), pathy (>=0.3.5,<0.3.6 || >0.3.6,<0.4.0 || >0.4.0,<0.5.0 || >0.5.0,<0.5.1 || >0.5.1,<0.5.2 || >0.5.2,<0.6.0 || >0.6.0,<0.6.1 || >0.6.1,<0.6.2 || >0.6.2,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0).
And because pathy (0.3.6) depends on smart-open (>=2.2.0,<4.0.0)
 and pathy (0.4.0) depends on smart-open (>=2.2.0,<4.0.0), pathy (>=0.3.5,<0.5.0 || >0.5.0,<0.5.1 || >0.5.1,<0.5.2 || >0.5.2,<0.6.0 || >0.6.0,<0.6.1 || >0.6.1,<0.6.2 || >0.6.2,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0).
And because pathy (0.5.0) depends on smart-open (>=2.2.0,<4.0.0)
 and pathy (0.5.1) depends on smart-open (>=2.2.0,<4.0.0), pathy (>=0.3.5,<0.5.2 || >0.5.2,<0.6.0 || >0.6.0,<0.6.1 || >0.6.1,<0.6.2 || >0.6.2,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0).
And because pathy (0.5.2) depends on smart-open (>=2.2.0,<4.0.0)
 and pathy (0.6.0) depends on smart-open (>=5.0.0,<6.0.0), pathy (>=0.3.5,<0.6.1 || >0.6.1,<0.6.2 || >0.6.2,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
And because pathy (0.6.1) depends on smart-open (>=5.0.0,<6.0.0)
 and pathy (0.6.2) depends on smart-open (>=5.2.1,<6.0.0), pathy (>=0.3.5,<0.7.0 || >0.7.0,<0.7.1 || >0.7.1,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
And because pathy (0.7.0) depends on smart-open (>=5.2.1,<6.0.0)
 and pathy (0.7.1) depends on smart-open (>=5.2.1,<6.0.0), pathy (>=0.3.5,<0.8.0 || >0.8.0,<0.8.1 || >0.8.1,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
And because pathy (0.8.0) depends on smart-open (>=5.2.1,<6.0.0)
 and pathy (0.8.1) depends on smart-open (>=5.2.1,<6.0.0), pathy (>=0.3.5,<0.9.0 || >0.9.0,<0.10.0 || >0.10.0) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
And because pathy (0.9.0) depends on smart-open (>=5.2.1,<6.0.0)
 and pathy (0.10.0) depends on smart-open (>=5.2.1,<6.0.0), pathy (>=0.3.5) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
Because no versions of spacy match >3.4.3,<4.0.0
 and spacy (3.4.3) depends on pathy (>=0.3.5), spacy (>=3.4.3,<4.0.0) requires pathy (>=0.3.5).
Thus, spacy (>=3.4.3,<4.0.0) requires smart-open (>=2.2.0,<4.0.0 || >=5.0.0,<6.0.0).
So, because poetry-demo depends on both spacy (^3.4.3) and smart-open (^6.2.0), version solving failed.

๐ŸŽ‰ This issue has been resolved in version 0.10.1 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

Thanks for reporting this. I added the new major version of smart_open to the range. Let me know if this doesn't fix your problem.