astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.8k stars 467 forks source link

Cannot use matplotlib #1366

Open jreniel opened 2 months ago

jreniel commented 2 months ago

Steps to Reproduce

Add matplotlib to your dependencies, try to use TkAgg:

import matplotlib
matplotlib.use("TkAgg")

OR

import matplotlib.pyplot as plt
plt.plot([0], [0])
plt.show()        

Expected Result

A plot should appear

Actual Result

We get problems with TkInter not loading. image

Version Info

rye 0.39.0 commit: 0.39.0 (bf3ccf818 2024-08-21) platform: linux (x86_64) self-python: cpython@3.12.5 symlink support: true uv enabled: true

Stacktrace

No response

my1e5 commented 2 months ago

Related to https://github.com/astral-sh/uv/issues/6893