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
I would expect that adding the --script flag didn't disable reading of inline script metadata from stdin, but it seems to be the case.
$ xsel -b
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "urllib3",
# ]
# ///import urllib3
$ xsel -b | uv run -v -DEBUG uv 0.5.10Reading inline script metadata from `stdin`DEBUG Using Python request Python >=3.10 from `requires-python` metadataDEBUG Searching for Python >=3.10 in virtual environments, managed installations, or search pathDEBUG Searching for managed installations at `.local/share/uv/python`DEBUG Found managed installation `cpython-3.11.9-linux-x86_64-gnu`DEBUG Found `cpython-3.11.9-linux-x86_64-gnu` at `/home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11` (managed installations)DEBUG Caching via interpreter: `/home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11`DEBUG Using request timeout of 30sDEBUG Solving with installed Python version: 3.11.9DEBUG Solving with target Python version: >=3.11.9DEBUG Adding direct dependency: urllib3*DEBUG Found stale response for: https://pypi.org/simple/urllib3/DEBUG Sending revalidation request for: https://pypi.org/simple/urllib3/DEBUG Found not-modified response for: https://pypi.org/simple/urllib3/DEBUG Searching for a compatible version of urllib3 (*)DEBUG Selecting: urllib3==2.2.3 [compatible] (urllib3-2.2.3-py3-none-any.whl)DEBUG Found fresh response for: https://files.pythonhosted.org/packages/ce/d9/5f4c13cecde62396b0d3fe530a50ccea91e7dfc1ccf0e09c228841bb5ba8/urllib3-2.2.3-py3-none-any.whl.metadataDEBUG Tried 1 versions: urllib3 1DEBUG marker environment resolution took 0.043sResolved 1 package in 43msDEBUG Assessing Python executable as base candidate: /home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11DEBUG Using base executable for virtual environment: /home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11DEBUG Ignoring empty directoryDEBUG Using request timeout of 30sDEBUG Requirement already cached: urllib3==2.2.3Installed 1 package in 7ms + urllib3==2.2.3DEBUG Using Python 3.11.9 interpreter at: /home/zii/.cache/uv/archive-v0/BKxFXOwvV9ggZUwFrS0mg/bin/python3DEBUG Running `python -c`DEBUG Command exited with code: 0
$ xsel -b | uv run -v --script --isolated -DEBUG uv 0.5.10DEBUG No project found; searching for Python interpreterDEBUG Searching for default Python interpreter in virtual environments, managed installations, or search pathDEBUG Searching for managed installations at `.local/share/uv/python`DEBUG Found managed installation `cpython-3.11.9-linux-x86_64-gnu`DEBUG Found `cpython-3.11.9-linux-x86_64-gnu` at `/home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11` (managed installations)DEBUG Creating isolated virtual environmentDEBUG Assessing Python executable as base candidate: /home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11DEBUG Using base executable for virtual environment: /home/zii/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu/bin/python3.11DEBUG Ignoring empty directoryDEBUG Using Python 3.11.9 interpreter at: /home/zii/.cache/uv/builds-v0/.tmp7lfpM3/bin/pythonDEBUG Running `python -`Traceback (most recent call last): File "<stdin>", line 9, in <module>ModuleNotFoundError: No module named 'urllib3'DEBUG Command exited with code: 1
The text was updated successfully, but these errors were encountered:
I would expect that adding the
--script
flag didn't disable reading of inline script metadata from stdin, but it seems to be the case.The text was updated successfully, but these errors were encountered: