Often error running conan test_package
See original GitHub issueWe get this error often in random places:
opencv/3.1.1@******/stable: WARN: Forced build from source
ERROR: [Error 145] The directory is not empty: 'C:\\Users\\WinBuilder\\.conan\\data\\opencv\\3.1.1\\merlin-ext\\stable\\build\\22357e08bed3f975c745816eb96079b8fc475506\\opencv\\.git\\logs\\refs\\remotes'
grpc/0.15.0@******/stable: WARN: Forced build from source
ERROR: [Error 145] The directory is not empty: u'C:/.conan\\f8jip9\\1\\grpc\\tools\\dockerfile'
We run conan test_package --build=package_name --build=missing
Please help
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
[question] test package fails to link · Issue #11025 · conan-io ...
Hi, i have created a library with a out of source recipe, under GCC my library is build and links in the test...
Read more >conan create — conan 1.12.3 documentation
Builds a binary package for a recipe (conanfile.py). Uses the specified configuration in a profile or in -s settings, -o options etc. If...
Read more >Conan.io and header-only library - cmake - Stack Overflow
Here is my conanfile.py based on Documentation and some other things. Your example is missing a very important attribute: exports_sources, ...
Read more >Updated Conan Package Flow 1.1 · Bincrafters Blog
The final step of the conan create command which often needs to be run many times until successful is the test_package step.
Read more >Conan package manager tutorial - Level Up Coding
In this post, I give a short introduction of Conan package manager and I explain the ... To install and execute the test_package,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
“No” was answer to “Does it usually fail in such “.git” folders?” 😃
Nop, it could seem so, but conan is running in python, in a single thread, nothing concurrent at all. It is the OS that leaves some file handles open (maybe file caching in RAM before writing to disk), and seems the operations have finished, but actually when you try a subsequent action, it fails. It is not the first time it happens, sometimes (always Win), a build of an .exe has finished, you launch it, and it happens to launch the previous version of the .exe, because for some reason, it wasn’t overwritten yet (even if the compile/build process finished). Those tests are usually fixed with one
time.sleep(1) second
. For removal, it is more complicated, sometimes the handles are just not released by Windows, who knows why.Still a matter of active investigation, thanks for the feedback!