You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rye init -p 3.11 test1success: Initialized project in /Users/s/tmp/FFKn/test1
$ cd test1
$ rye pin cpython@3.11pinned 3.11.1 in /Users/s/tmp/FFKn/test1/.python-version
$ rye add flaskAdded flask~=2.3.2 as regular dependency
$ rye syncDownloading cpython@3.11.1success: Downloaded cpython@3.11.1Initializing new virtualenv in /Users/s/tmp/FFKn/test1/.venvPython version: cpython@3.11.1Generating production lockfile: /Users/s/tmp/FFKn/test1/requirements.lockTraceback (most recent call last): File "/Users/s/.rye/self/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "/Users/s/.rye/self/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/Users/s/.rye/self/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 439, in resolve raise ResolutionImpossible(self.state.backtrack_causes)pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=RequiresPythonRequirement('>=3.11'), parent=EditableCandidate('file:///.'))]The above exception was the direct cause of the following exception:Traceback (most recent call last): File "/Users/s/.rye/self/bin/pip-compile", line 8, in <module> sys.exit(cli()) File "/Users/s/.rye/self/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/Users/s/.rye/self/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/Users/s/.rye/self/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Users/s/.rye/self/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/Users/s/.rye/self/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/Users/s/.rye/self/lib/python3.10/site-packages/piptools/scripts/compile.py", line 592, in cli results = resolver.resolve(max_rounds=max_rounds) File "/Users/s/.rye/self/lib/python3.10/site-packages/piptools/resolver.py", line 593, in resolve is_resolved = self._do_resolve( File "/Users/s/.rye/self/lib/python3.10/site-packages/piptools/resolver.py", line 625, in _do_resolve resolver.resolve( File "/Users/s/.rye/self/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 101, in resolve raise error from epip._internal.exceptions.UnsupportedPythonVersion: Package 'test1' requires a different Python: 3.10.9 not in '>=3.11'Error: could not write production lockfile for projectCaused by: failed to generate lockfile
I tried to debug this by myself, but I couldn't quickly figure out the exact pip-compile command which Rye ran in the subprocess. It would be helpful if Rye printed the subprocess commands before executing them when --verbose flag is set.
This command works and generated a proper requirements.txt:
Pretty sure this is the same as #82. It picks up on the internal Python version in pip-compile that powers the internal rye virtualenv. Closing as duplicate.
Steps to Reproduce
Expected Result
should work
Actual Result
Version Info
Stacktrace
No response
The text was updated successfully, but these errors were encountered: