Environment Details (include every applicable attribute)
- Operating System+version: ubuntu 20.04
- Compiler+version: none
- Conan version: 1.52
- Python version: 3.8
Steps to reproduce (Include if Applicable)
pip3 install conan==1.52
conan --version
Logs (Executed commands with output) (Include/Attach if Applicable)
conan --version
Traceback (most recent call last):
File "/home/dash/.local/bin/conan", line 7, in <module>
from conans.conan import run
File "/home/dash/.local/lib/python3.8/site-packages/conans/conan.py", line 7, in <module>
from conans.client.command import main
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/command.py", line 14, in <module>
from conans.client.conan_api import Conan, default_manifest_folder, _make_abs_path, ProfileData
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/conan_api.py", line 13, in <module>
from conans.client.cmd.create import create
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/cmd/create.py", line 3, in <module>
from conans.client.cmd.test import install_build_and_test
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/cmd/test.py", line 6, in <module>
from conans.client.manager import deps_install
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/manager.py", line 7, in <module>
from conans.client.installer import BinaryInstaller, call_system_requirements
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/installer.py", line 11, in <module>
from conans.client.generators import TXTGenerator, write_toolchain
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/generators/__init__.py", line 23, in <module>
from .markdown import MarkdownGenerator
File "/home/dash/.local/lib/python3.8/site-packages/conans/client/generators/markdown.py", line 12, in <module>
from conan.tools.gnu.pkgconfigdeps import (
ImportError: cannot import name '_get_component_name' from 'conan.tools.gnu.pkgconfigdeps' (/home/dash/.local/lib/python3.8/site-packages/conan/tools/gnu/pkgconfigdeps/__init__.py)
Same error here:
@memsharded Thanks that helped me to solve the issue. The problem was in
--ignore-installed
flag I used to reinstall conan.So to reproduce:
without
--ignore-installed
flag everything works.Hope this will help someone else =)
Hi @SergeyKrivohatskiy
It seems that some updates to 1.52 are not completely cleaning the previous stuff and something breaks. Can you please try installing a fresh Conan in a clean Python virtualenv (or maybe trying pipx), and see if the problem still reproduces?
Hi @Zvicii - thank you for reporting this issue. There was an issue with the
wayland
recipe inconan-center-index
where a private Conan API was used, and it changed internally across Conan versions. We are tracking this here https://github.com/conan-io/conan-center-index/issues/12722 as an issue related to the recipe - which needs to be fixed.