• pip install optuna-mcp は正常 $ uvx optuna-mcp Traceback (most recent call last): File ".../.cache/uv/archive-v0/EmP7RHGe6_uDSR99lOFJV/bin/optuna-mcp", line 6, in <module> from optuna_mcp.server import main ... File ".../.cache/uv/archive-v0/EmP7RHGe6_uDSR99lOFJV/bin/bottle.py", line 18 from __future__ import print_function ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: from __future__ imports must occur at the beginning of the file uvxでのインストールに失敗する
https://github.com/bottlepy/bottle/issues/1486 uvxでのインストールに失敗する #!/usr/bin/env python # -*- coding: utf-8 -*- """ Bottle is a fast and simple ... """ from __future__ import print_function #!/bin/sh '''exec' "$(dirname -- "$(realpath -- "$0")")"/'python' "$0" "$@" ' ''' # -*- coding: utf-8 -*- """ Bottle is a fast and simple ... """ from __future__ import print_function Before After
• > PyPI and other standards-conformant package indices do not accept packages that declare dependencies using direct URLs. 最終的には、 @HideakiImamura がbottleのメンテナに相談 パッチリリースとして bottle 0.13.4をリリースしていただくことで解決 uvxでのインストールに失敗する