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

make install-for-dev is failing to install python modules #14

Closed
Ahmad-Wahid opened this issue Jul 20, 2023 · 6 comments · Fixed by #17
Closed

make install-for-dev is failing to install python modules #14

Ahmad-Wahid opened this issue Jul 20, 2023 · 6 comments · Fixed by #17

Comments

@Ahmad-Wahid
Copy link
Contributor

I tried to install the plugin for development using make, and I had this below issue which is not able to install some dependencies.

pip-compile -o requirements/test.txt requirements/test.in
  ERROR: Cannot install -r requirements/test.in (line 8) because these package versions have conflicting dependencies.
Traceback (most recent call last):
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 316, in _backjump
    name, candidate = broken_state.mapping.popitem()
KeyError: 'dictionary is empty'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 434, in resolve
    success = self._backjump(causes)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in _backjump
    raise ResolutionImpossible(causes)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('redis<4.4'), parent=LinkCandidate('https://files.pythonhosted.org/packages/6b/d1/05dcf84b58ad53ac21e17fc48045f1932a39ef3b41f115013e44abac2f8e/fakeredis-1.9.1-py3-none-any.whl (from https://pypi.org/simple/fakeredis/) (requires-python:>=3.7,<4.0)'))]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/bin/pip-compile", line 8, in <module>
    sys.exit(cli())
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/piptools/scripts/compile.py", line 630, in cli
    results = resolver.resolve(max_rounds=max_rounds)
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/piptools/resolver.py", line 604, in resolve
    is_resolved = self._do_resolve(
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/piptools/resolver.py", line 636, in _do_resolve
    resolver.resolve(
  File "/home/ubuntu/Projects/Seita/flexmeasures-openweathermap/venv/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve
    raise error from e
pip._internal.exceptions.DistributionNotFound: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
make[1]: *** [Makefile:36: freeze-deps] Error 1
make[1]: Leaving directory '/home/ubuntu/Projects/Seita/flexmeasures-openweathermap'
make: *** [Makefile:17: install-for-dev] Error 2
@Ahmad-Wahid
Copy link
Contributor Author

Ahmad-Wahid commented Jul 20, 2023

Because of this issue, github actions are also failing.

https://github.com/SeitaBV/flexmeasures-openweathermap/actions/runs/5615334934/job/15215416063

@nhoening
Copy link
Contributor

Let's try make upgrade-deps first

@Ahmad-Wahid
Copy link
Contributor Author

this would upgrade the dependencies but my concern is about install-for-dev.

@nhoening
Copy link
Contributor

Which installs dependencies...

@Ahmad-Wahid
Copy link
Contributor Author

yes.

@Ahmad-Wahid
Copy link
Contributor Author

Ahmad-Wahid commented Jul 25, 2023

The issue is raising because of fakeredis latest version which is 2.17.0. If we downgrade it to 2.16.0 then we can close this issue. @nhoening

@Ahmad-Wahid Ahmad-Wahid linked a pull request Jul 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants