Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylint test fails, due poetry lock dependency issue #74

Closed
chadell opened this issue Jun 29, 2022 · 1 comment
Closed

Pylint test fails, due poetry lock dependency issue #74

chadell opened this issue Jun 29, 2022 · 1 comment

Comments

@chadell
Copy link
Contributor

chadell commented Jun 29, 2022

Environment

  • Python version:
  • Nautobot version:
  • nautobot-netbox-importer version: develop branch

Expected Behavior

Pylint test succeeds

Observed Behavior

Run poetry lock
Updating dependencies
Resolving dependencies...
  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
    - 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 <22.1.0 || >22.1.0,<22.3.0 || >22.3.0,<22.6.0 || >22.6.0
   and black (22.1.0) requires Python >=3.6.2, black is forbidden.
  And because black (22.3.0) requires Python >=3.6.2, black is forbidden.
  So, because black (22.6.0) requires Python >=3.6.2
   and nautobot-netbox-importer depends on black (*), version solving failed.
  at /opt/hostedtoolcache/Python/3.9.[13](https://github.com/nautobot/nautobot-plugin-netbox-importer/runs/7108475588?check_suite_focus=true#step:5:14)/x64/lib/python3.9/site-packages/poetry/puzzle/solver.py:241 in _solve
      [23](https://github.com/nautobot/nautobot-plugin-netbox-importer/runs/7108475588?check_suite_focus=true#step:5:24)7│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      [24](https://github.com/nautobot/nautobot-plugin-netbox-importer/runs/7108475588?check_suite_focus=true#step:5:25)0│         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"
    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-dependen](https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies)ci
   [ https://python-poetry.org/docs/dependency-specification/#using-environment-mar](https://python-poetry.org/docs/dependency-specification/#using-environment-markers)
Error: Process completed with exit code 1.

Steps to Reproduce

@glennmatthews
Copy link
Contributor

Fixed by #75.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants