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

Rye 0.37.0 build python 3.7 project incompatible #1291

Open
zedongh opened this issue Jul 29, 2024 · 3 comments
Open

Rye 0.37.0 build python 3.7 project incompatible #1291

zedongh opened this issue Jul 29, 2024 · 3 comments

Comments

@zedongh
Copy link

zedongh commented Jul 29, 2024

Steps to Reproduce

  1. use rye with version 0.37.0
  2. create a new project (rye new example)
  3. change work directory (cd example)
  4. use rye pin python version 3.7.5 (rye pin 3.7.5)
  5. run rye build (rye build -c) get error info
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.

Expected Result

build successfully like rye 0.36.0 version.

temporary solutions (MAC OS)

  1. wget https://github.com/astral-sh/rye/releases/download/0.36.0/rye-x86_64-macos.gz
  2. gzip -d rye-x86_64-macos.gz
  3. chmod +x rye-x86_64-macos
  4. mv rye-x86_64-macos /usr/local/bin/[email protected]

use [email protected] will be fine on build.

Actual Result

rye build stablely failed

Version Info

rye 0.37.0
commit: 0.37.0 (2024-07-20)
platform: macos (x86_64)
self-python: [email protected]
symlink support: true
uv enabled: true

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:

@zedongh zedongh changed the title Rye 0.37.0 build incompatible Rye 0.37.0 build python 3.7 project incompatible Jul 29, 2024
@Systemcluster
Copy link

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

@Systemcluster
Copy link

This should be a uv issue I think? @charliermarsh

@charliermarsh
Copy link
Member

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?

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

No branches or pull requests

3 participants