Open condy0919 opened 1 year ago
Conan failed with f-string.
$ conan install .. -s compiler.libcxx=libstdc++11 -s compiler.cppstd=11 --build=outdated
Traceback (most recent call last):
File "/usr/local/bin/conan", line 5, in <module>
from conans.conan import run
File "/usr/local/lib/python2.7/dist-packages/conans/conan.py", line 7, in <module>
from conans.client.command import main
File "/usr/local/lib/python2.7/dist-packages/conans/client/command.py", line 16, in <module>
from conans.client.conan_api import Conan, default_manifest_folder, _make_abs_path, ProfileData
File "/usr/local/lib/python2.7/dist-packages/conans/client/conan_api.py", line 13, in <module>
from conans.client.cmd.create import create
File "/usr/local/lib/python2.7/dist-packages/conans/client/cmd/create.py", line 3, in <module>
from conans.client.cmd.test import install_build_and_test
File "/usr/local/lib/python2.7/dist-packages/conans/client/cmd/test.py", line 6, in <module>
from conans.client.manager import deps_install
File "/usr/local/lib/python2.7/dist-packages/conans/client/manager.py", line 7, in <module>
from conans.client.installer import BinaryInstaller, call_system_requirements
File "/usr/local/lib/python2.7/dist-packages/conans/client/installer.py", line 11, in <module>
from conans.client.generators import TXTGenerator, write_toolchain
File "/usr/local/lib/python2.7/dist-packages/conans/client/generators/__init__.py", line 23, in <module>
from .markdown import MarkdownGenerator
File "/usr/local/lib/python2.7/dist-packages/conans/client/generators/markdown.py", line 8, in <module>
from conan.tools.cmake.cmakedeps.cmakedeps import CMakeDeps
File "/usr/local/lib/python2.7/dist-packages/conan/tools/cmake/__init__.py", line 1, in <module>
from conan.tools.cmake.toolchain.toolchain import CMakeToolchain
File "/usr/local/lib/python2.7/dist-packages/conan/tools/cmake/toolchain/toolchain.py", line 12, in <module>
from conan.tools.cmake.toolchain.blocks import ToolchainBlocks, UserToolchain, GenericSystemBlock, \
File "/usr/local/lib/python2.7/dist-packages/conan/tools/cmake/toolchain/blocks.py", line 9, in <module>
from conan.tools.apple.apple import is_apple_os, to_apple_arch
File "/usr/local/lib/python2.7/dist-packages/conan/tools/apple/__init__.py", line 8, in <module>
from conan.tools.apple.apple import fix_apple_shared_install_name
File "/usr/local/lib/python2.7/dist-packages/conan/tools/apple/apple.py", line 170
command = f"install_name_tool {dylib_path} -id {new_name}"
^
SyntaxError: invalid syntax
The command "conan install .. -s compiler.libcxx=libstdc++11 -s compiler.cppstd=11 --build=outdated" failed and exited with 1 during .
f-string is introduced in python3, but it runs on python2.
From
to