question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Often error running conan test_package

See original GitHub issue

We 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:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
KindDragoncommented, Jan 19, 2017

“No” was answer to “Does it usually fail in such “.git” folders?” 😃

0reactions
memshardedcommented, Jan 20, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found