-
Notifications
You must be signed in to change notification settings - Fork 46
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
conan-center hook always reports "pre_export(): could not get source code" on WIndows #157
Comments
I'm using conan installed by Windows installer, that is bad? |
Hi @tt4g which Conan client version are you running? Where did you install conan hook files (system path e.g. C:/Users/foobar/.conan)? |
I'm using 1.22.2: $ conan --version
Conan version 1.22.2 Hooks installed here: $ ls -lha
total 89K
drwxr-xr-x 1 tt 197611 0 2月 16 14:55 ./
drwxr-xr-x 1 tt 197611 0 2月 16 15:50 ../
-rw-r--r-- 1 tt 197611 421 2月 16 15:50 attribute_checker.py
-rwxr-xr-x 1 tt 197611 9.1K 2月 16 15:50 binary_linter.py*
-rw-r--r-- 1 tt 197611 11K 2月 16 15:50 bintray_updater.py
-rw-r--r-- 1 tt 197611 31K 2月 16 15:50 conan-center.py
-rw-r--r-- 1 tt 197611 3.2K 2月 16 15:50 export_metadata.py
-rwxr-xr-x 1 tt 197611 6.6K 2月 16 15:50 github_updater.py*
-rw-r--r-- 1 tt 197611 1.2K 2月 16 15:50 members_typo_checker.py
-rw-r--r-- 1 tt 197611 3.4K 2月 16 15:50 recipe_linter.py
-rw-r--r-- 1 tt 197611 920 2月 16 15:50 spdx_checker.py conan Installed: |
I challenged by disabling the Windows application alias. However, I got the same message as the issue. |
Yes, the Windows installers bundles a python interpreter in it, so it might be an issue. If you could try to run in Windows with the pip-installed Conan, that would help to isolate the issue. |
@memsharded Right. conan installed by pip is works for me. I was uninstalling python because Windows application alias often do bad when calling python3. That was bad. |
Thanks @tt4g for following up! |
@memsharded should we investigate Windows installer? |
@uilianries yes, better. Please do a quick check if the hooks work for the Windows installer. Thanks! |
The hooks still doesn't work for the Windows installer. I also had to install conan via pip. |
The same error occurs when running conan installed via choco. |
CC @SpaceIm |
|
I think this problem deserves further investigation, but one issue per package manager/platform. I'll check for Debian first |
TLDR: Attribute checker could be the problem Here's my two cents: I have conan installed with the windows installer. I had upgraded versions, and as someone who has been contributing to the conan-center once in a while, I had some hooks. I had been getting the "could not get source code" error. I eventually looked into my hook config to take them out. I noticed I had the attribute-checker and the conan-center hooks. Out of curiosity, I removed only the attribute checker, and now it works... I don't know whether this is a problem with the attribute checker, or it's because of trying to use multiple hooks, or that it is only between attribute checker and conan center hooks that a conflict emerges. |
I am running into this issue on Windows. I installed Conan via winget. |
I also face the issue both on Windows 7 x64 and LUbuntu 21.04 64-bit. I installed conan from the Downloads page on both the systems. |
I tried to build after enabling conan-center hook on Windows 10 but I get error message "ERROR: [HOOK - conan-center.py] pre_export(): could not get source code".
This recipe can build on docker container conanio/gcc7.
Is conan-center hook not supported Windows 10?
The text was updated successfully, but these errors were encountered: