Open zedongh opened 4 months ago
This isn't just Python 3.7. I'm seeing the same error with a 3.10 project.
❯ rye sync
Reusing already existing virtualenv
Generating production lockfile: D:\Development\the-witcher-3-mod-manager\requirements.lock
Generating dev lockfile: D:\Development\the-witcher-3-mod-manager\requirements-dev.lock
Installing dependencies
× No solution found when resolving dependencies:
╰─▶ Because the current Python version (3.12.3) does not satisfy Python>=3.10,<3.11 and the-witcher-3-mod-manager==0.9.2rc0 depends on
Python>=3.10,<3.11, we can conclude that the-witcher-3-mod-manager==0.9.2rc0 cannot be used.
And because only the-witcher-3-mod-manager==0.9.2rc0 is available and you require the-witcher-3-mod-manager, we can conclude that the
requirements are unsatisfiable.
error: Installation of dependencies failed in venv at D:\Development\the-witcher-3-mod-manager\.venv. uv exited with status: exit code: 1
It seems to be using the default Python for this step even though it should be using the project Python.
❯ rye show
project: the-witcher-3-mod-manager
path: D:\Development\the-witcher-3-mod-manager
venv: D:\Development\the-witcher-3-mod-manager\.venv
target python: 3.10
venv python: cpython@3.10.14
virtual: false
configured sources:
default (index: https://pypi.org/simple/)
❯ rye run python --version
Python 3.10.14
❯ rye --version
rye 0.38.0
commit: 0.38.0 (3e3c8540f 2024-08-02)
platform: windows (x86_64)
self-python: cpython@3.12.3
symlink support: true
uv enabled: true
This should be a uv
issue I think? @charliermarsh
These look like distinct issues. The first is that build
doesn't support Python 3.7 (and uv doesn't officially support it either). The latter isn't as clear to me -- can you open a new issue with a minimally reproducible example please?
Steps to Reproduce
rye new example
)cd example
)rye pin 3.7.5
)rye build -c
) get error infoExpected Result
build successfully like rye 0.36.0 version.
temporary solutions (MAC OS)
use
rye@0.36.0
will be fine on build.Actual Result
rye build stablely failed
Version Info
Stacktrace
Python version: cpython@3.7.5 × No solution found when resolving dependencies: ╰─▶ Because the current Python version (3.7.5) does not satisfy Python>=3.8 and build==1.2.1 depends on Python>=3.8, we can conclude that build==1.2.1 cannot be used. And because you require build==1.2.1, we can conclude that the requirements are unsatisfiable. building example Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]
/var/folders/xw/1y8r5r4x5m19cdsw255gw1d40000gn/T/.tmpB0MoTO/bin/python: No module named build
error: failed to build dist
Stack backtrace: 0: std::backtrace::Backtrace::create 1: std::backtrace::Backtrace::capture 2: anyhow::error::::msg
3: rye::cli::build::execute
4: rye::cli::execute
5: std::panicking::try
6: rye::utils::panic::trap_bad_pipe
7: rye::main
8: std::sys_common::backtrace::__rust_begin_short_backtrace
9: std::rt::lang_start::{{closure}}
10: std::panicking::try
11: std::rt::lang_start_internal
12: _main
13: