-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Rye 0.37.0 build python 3.7 project incompatible #1291
Comments
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: [email protected]
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: [email protected]
symlink support: true
uv enabled: true |
This should be a |
These look like distinct issues. The first is that |
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
[email protected]
will be fine on build.Actual Result
rye build stablely failed
Version Info
Stacktrace
Python version: [email protected]
× 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 <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
/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:
The text was updated successfully, but these errors were encountered: