-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] [1.52] conan error "ImportError: cannot import name '_get_component_name' from 'conan.tools.gnu.pkgconfigdeps'" #12000
Comments
encountered a similar problem.
|
Hi @zhoupeng6d - I have try to reproduce this on Ubuntu 20.04 with Python 3.8 and I'm unable to. I can install Could you try to isolate this to a new virtual environment to discard any issues with your python environment in
|
Hi @Zvicii - thank you for reporting this issue. There was an issue with the |
Hi @jcar87 Using venv looks OK. ~ python3.8 -m venv conan-venv
➜ ~ source conan-venv/bin/activate
(conan-venv) ➜ ~ pip3 install conan==1.52
Collecting conan==1.52
Using cached conan-1.52.0.tar.gz (770 kB)
Preparing metadata (setup.py) ... done
Collecting requests<3.0.0,>=2.25
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting urllib3<1.27,>=1.26.6
Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
Collecting colorama<0.5.0,>=0.3.3
Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting PyYAML<=6.0,>=3.11
Using cached PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
Collecting patch-ng<1.18,>=1.17.4
Using cached patch-ng-1.17.4.tar.gz (17 kB)
Preparing metadata (setup.py) ... done
Collecting fasteners>=0.14.1
Using cached fasteners-0.17.3-py3-none-any.whl (18 kB)
Collecting six<=1.16.0,>=1.10.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting node-semver==0.6.1
Using cached node_semver-0.6.1-py3-none-any.whl (10 kB)
Collecting pygments<3.0,>=2.0
Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting tqdm<5,>=4.28.1
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting python-dateutil<3,>=2.7.0
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting bottle<0.13,>=0.12.8
Using cached bottle-0.12.23-py3-none-any.whl (90 kB)
Collecting pluginbase>=0.5
Using cached pluginbase-1.0.1.tar.gz (43 kB)
Preparing metadata (setup.py) ... done
Collecting PyJWT<3.0.0,>=2.4.0
Using cached PyJWT-2.4.0-py3-none-any.whl (18 kB)
Collecting Jinja2<4.0.0,>=3.0
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting distro<=1.6.0,>=1.0.2
Using cached distro-1.6.0-py2.py3-none-any.whl (19 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting charset-normalizer<3,>=2
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.6.15-py3-none-any.whl (160 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Using legacy 'setup.py install' for conan, since package 'wheel' is not installed.
Using legacy 'setup.py install' for patch-ng, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pluginbase, since package 'wheel' is not installed.
Installing collected packages: pluginbase, patch-ng, node-semver, distro, bottle, urllib3, tqdm, six, PyYAML, PyJWT, pygments, MarkupSafe, idna, fasteners, colorama, charset-normalizer, certifi, requests, python-dateutil, Jinja2, conan
Running setup.py install for pluginbase ... done
Running setup.py install for patch-ng ... done
Running setup.py install for conan ... done
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.1 PyJWT-2.4.0 PyYAML-6.0 bottle-0.12.23 certifi-2022.6.15 charset-normalizer-2.1.1 colorama-0.4.5 conan-1.52.0 distro-1.6.0 fasteners-0.17.3 idna-3.3 node-semver-0.6.1 patch-ng-1.17.4 pluginbase-1.0.1 pygments-2.13.0 python-dateutil-2.8.2 requests-2.28.1 six-1.16.0 tqdm-4.64.1 urllib3-1.26.12
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/home/dash/conan-venv/bin/python3.8 -m pip install --upgrade pip' command.
(conan-venv) ➜ ~
(conan-venv) ➜ ~ conan --version
WARN: Migration: Updating settings.yml
WARN: ****************************************
WARN: settings.yml is locally modified, can't be updated
WARN: The new settings.yml has been stored in: /home/dash/.conan/settings.yml.new
WARN: ****************************************
Conan version 1.52.0 |
@zhoupeng6d then it could be that your Conan installation is corrupted. I would try to remove and re-install Conan, because a 1.52 clean installation seems to be ok. |
I'm facing the same problem (Ubuntu 20.04 in WSL). Already tried a |
Hi @tuxflo - is this the same error as reported in this issue, with Some of the other issues, for example with |
Yes it's exactly the same issue using 1.52.0 failed with the exact same error message as in the first post. |
Just in case, can you confirm that the exact same issue is from wayland recipe and error message is |
Hi! I have the same issue with
I also cannot use conan 1.51.3 as it doesn't support latest packages. So I'm stuck =( |
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? |
@memsharded Thanks that helped me to solve the issue. So to reproduce:
without Hope this will help someone else =) |
Perfect, thanks for the feedback @SergeyKrivohatskiy !! That is a good hint, yes, the key seems to be in not complete/clean installations, first thing to try is a full clean one. Cheers! |
I just ran into this as well. I was able to resolve it by uninstalling multiple times. Each subsequent uninstall removed an older previously installed version of conan then when I was all done I just installed and it worked. In my case I was trying to just get back to the latest of 1.56.0 and that wasn't working, but I assume the same trick will work if you wanted to go to 1.52.0 or any other version.
|
Hi @jbrownsw Are you using python virtualenvs to manage different versions of Conan? It might be a good practice, those virtualenvs you can create new ones for new versions, try them side-by-side with the previous version, then destroy the past virtualenvs when you don't need those versions anymore. |
I was getting same issue fresh installing conan 1.52 fixed it, when conan was installed from ue4cli install it installed conan 2.0 |
Yes, Conan 2.0 was officially released today. |
* fix typo * try to fix CI conan-io/conan#12000
* fix typo * try to fix CI conan-io/conan#12000 * Update conan-install.sh * Update conan-install.sh * fix output dir * fix generators * fix cmake version * fix share dir * set build type to Debug * Update build_x86-64.sh * Update build_x86-64.sh Don't need these changes now * Update conan-install.sh Don't need sudo here * Update CMakeLists.txt Dont need this afaik --------- Co-authored-by: matheusgomes28 <matheusgarcia28@gmail.com>
It's still happening! Mac os 13 pip 23.0.1 from /Users/******/Library/Python/3.9/lib/python/site-packages/pip (python 3.9) I tried the venv stuff, ======== Input profiles ======== Profile build: ======== Computing dependency graph ======== Recipe 'imgui/1.74' seems broken. ERROR: Package 'imgui/1.74' not resolved: imgui/1.74: Cannot load recipe. (conan-venv) john.doe@REMAC1MACHINE build % pip install conans |
Hi @Pat-re Thanks for your report. You should be checking Side note: It is expected that Conan 2.0 might be failing for some packages in ConanCenter that hasn't been upgraded to Conan 2.0 yet. The upgrade efforts can be tracked in: conan-io/conan-center-index#16196 |
Hi Memsharded; |
Conan 2.0 is ready for prime time. Is a much better version than 1.X and it has been iterated in 6 alphas, 10 beta releases during more than 1 year and a half. Of course it will have some issues, as expected from a major release like this one, but those are being fixed quickly, we already did 2.0.1 and 2.0.2 fixing many of those things. A different thing is that not all recipes in ConanCenter are ready from prime time, but around the 80% of most downloaded ones was the threshold that was defined (which accounts for around 120 recipes) for the 2.0 release. ConanCenter contains aprox 1500 recipes and it will take too much time to upgrade all of them to 2.0. But that is a different thing. Conan is massively used in the enterprise without depending on ConanCenter recipes, actually our estimation is that around 70-80% of users do not depend on ConanCenter binaries. |
Same error here:
|
Hi @karambaq If you could please detail a bit more about your environment, as the error you are seeing is not the same as reported there. So please, if you could include:
Many thanks. |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Logs (Executed commands with output) (Include/Attach if Applicable)
The text was updated successfully, but these errors were encountered: