Coder Social home page Coder Social logo

Comments (8)

prusnak avatar prusnak commented on June 19, 2024

This looks like an issue with your setup, rather than issue with suez.

Did you run poetry install ?

from suez.

sipsorcery avatar sipsorcery commented on June 19, 2024

Did you run poetry install ?

Yes I installed poetry, as per the docs, and then ran poetry install .

from suez.

sipsorcery avatar sipsorcery commented on June 19, 2024

I fixed it by making these changes to pyproject.toml. I don't really know what I'm doing with Python configs though so not sure if it's the correct way or not.

[tool.poetry.dependencies]
python = ">=3.6.2,<4.0"
rich = "^10.2.2"
click = "^8.0.1"
dataclasses = {version = "^0.7", python = "~3.6.1"}

from suez.

prusnak avatar prusnak commented on June 19, 2024

Added in 300dfee

Can you please confirm the commit works for you?

from suez.

sipsorcery avatar sipsorcery commented on June 19, 2024

Added in 300dfee

Can you please confirm the commit works for you?

No it doesn't.

The python = ">=3.6.2,<4.0" line is what fixes it. The dataclasses line turns out not to be necessary, at least for me.

from suez.

prusnak avatar prusnak commented on June 19, 2024

python = "^3.6" is equivalent to python = ">=3.6.0,<4.0"
python = "~3.6" is equivalent to python = ">=3.6.0,<3.7.0"

It seems there is something weird with your setup, but since you were able to fix it, I am closing this issue. Thanks for the report.

from suez.

sipsorcery avatar sipsorcery commented on June 19, 2024

python = "^3.6" is equivalent to python = ">=3.6.0,<4.0"
python = "~3.6" is equivalent to python = ">=3.6.0,<3.7.0"

Beats me, I just did what poetry recommended, see below. I doubt it's my environment as the behaviour is identical on two separate machines. At least it's documented here now in case anyone else has the same issue.

$ poetry update

Updating dependencies
Resolving dependencies... (0.0s)

  SolverProblemError

  The current project's Python requirement (>=3.6,<4.0) is not compatible with some of the required packages Python requirement:
    - black requires Python >=3.6.2, so it will not be satisfied for Python >=3.6,<3.6.2
    - black requires Python >=3.6.2, so it will not be satisfied for Python >=3.6,<3.6.2

  Because no versions of black match >21.5b2,<21.6b0 || >21.6b0,<22.0
   and black (21.5b2) requires Python >=3.6.2, black is forbidden.
  So, because black (21.6b0) requires Python >=3.6.2
   and suez depends on black (^21.5b2), version solving failed.

  at ~/.poetry/lib/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For black, a possible solution would be to set the `python` property to ">=3.6.2,<4.0"
    For black, a possible solution would be to set the `python` property to ">=3.6.2,<4.0"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

from suez.

prusnak avatar prusnak commented on June 19, 2024

Makes sense, the error above is completely new and unrelated to dataclasses.

It is related to black and I fixed that in d078dee

Thanks!

from suez.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.