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] Urgent Issue: New recipe revisions using "conan.tools" rather than "conans.tools" breaks using Conan 1.x #11681
Comments
looks like this may be related to issue #11676 |
yes, this is apparently a bug in the pyinstaller creation, not in Conan itself. It has already been fixed for next 1.51, you might try to use the |
This is an urgent issue for me as well. pip install didn't work. Please release 1.51 as soon as possible. |
But this is not broken, it simply never worked. A different thing is that it doesn't work with the |
Somehow I am now just starting to see the same issue on all my Windows build machines....Not sure what changed... The version of |
Hi @gegles
We would need a few more details please:
|
To follow up, I had issues with pip install because python was being compiled from sources without the sqlite3 libs. Once I fixed that |
Yes, that is true, the based Python used for Conan has to have sqlite3 support. |
I actually used |
Same here installed via choco. Glad to have a potential emergency plan with pip install potentially but it’s still a giant pain because I’d have to instruct all our developers to do so and modify, rebuild, and republish both of our Windows Docker build images to change the install script which usually takes several hours
…Sent from my iPad
On Jul 22, 2022, at 3:07 PM, Guillaume Egles ***@***.***> wrote:
Hi @gegles
Somehow I am now just starting to see the same issue on all my Windows build machines....Not sure what changed...
We would need a few more details please:
Are you using latest Conan version?
Are you using the Windows installer or pip install?
I actually used choco install conan on Windows... Could this be the culprit? I'm gonna try pip install... and see.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
The Also, I am still missing information to know if this is a regression or not. So far, it doesn't seem so, but this is something that never worked in Conan installations created from |
Anyway to give a warning to conan index publishers to avoid using this feature until 1.51 is out? |
Warnings is not really a thing for ConanCenter publishers, many things are automated, they will either block or warnings will not be read. And it is not possible to block because these already approved and merged features are correct, and have been released a couple of releases ago (1.48, it seems, https://docs.conan.io/en/latest/changelog.html). In any case, 1.51 will be released in a couple of days, so I am closing this as implemented in #11677 Recall that in general it is not recommended to depend on ConanCenter in production but better use your own copy of packages in your own repo, to isolate your production environment from possible issues in ConanCenter, from outages, to unwanted recipe updates. It might also be possible pinning exact recipe revisions in |
For those needing a workaround until Conan 1.51 Specifying the previous, known working revision discovered from conan center website in your requires alleviates the issue until Conan 1.51:
I tried using a proxy-mirror in Artifactory but unless you pin the specific revisions, the proxy just downloads the latest revision anyway (even after purposely deleting it from our proxy) due to our normal use of |
I understand this feature never worked but fmt changed all of their packages to use this feature forcing us to downgrade from spdlog/1.9.2 to 1.4.8 or so as a temp workaround which resulted in many bugs that we had to fix on the fly. Our entire team was down a full day and a half because all of our products use spdlog for logging.
We’re hobbling along now but if just one more dependency starts using the new feature before 1.51 we’re hosed. The package providers are doing the right thing by requiring the correct version of Conan that supports the feature but is breaking for a large portion of their consumers unknowingly
…Sent from my iPad
On Jul 21, 2022, at 12:54 PM, James ***@***.***> wrote:
But this is not broken, it simply never worked. conan.tools.scm is a new, experimental feature. Apparently, it never worked in the pyinstaller, so it is not possible that this is a breaking change in any way, am I missing something?
A different thing is that it doesn't work with the pip install, but we would need some more details. So far it seems that it is working fine, we have users using it without problems. Are you sure your are calling the pip installed Conan, and not the other one? Have you uninstalled it first?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
We tried to summarize some of these ideas in https://blog.conan.io/2022/09/20/consuming-recipes-during-migration-conancenter.html. Basically, the most robust way to isolate from upstream ConanCenter changes is to store a copy of the packages you need in production. Not proxying them via a remote repo, because that updates automatically (I am not sure if there is some configuration there that would allow not updating), but just a normal copy to a local repo. In that way there is absolutely nothing that can break you. I'd recommend doing it right now, it should be relatively easy, copying all the remote contents to a local repo, then using that as remote, because the community is working a lot to upgrade ConanCenter recipes to 2.0, and some other changes requiring latest 1.X will eventually happen. |
fmt package recently updated all their package versions with new recipe revisions using modern
conan.tools.scm
import rather than the oldconans.tools.scm
. It is my understanding that all tools should now be accessible using this new namespace. However, all of our product packages have stopped being able to be built due to our dependence on spdlog package which pulls in fmt package. Because we have no way to specify to use the last known working revisions, all of our work is at a standstill.Is there any temporary workaround to use the previous revisions of fmt package that worked until this issue is resolved in Conan?
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
conan info fmt/8.0.1@ -r conancenter
Logs (Executed commands with output) (Include/Attach if Applicable)
The text was updated successfully, but these errors were encountered: