-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[package] cpython/3.10.0: Imported target includes non-existent path. #10808
Comments
The problem of this issue is similar to the followings:
Screenshots |
Can you try adding: self.cpp_info.components["_python_copy"].includedirs = []
self.cpp_info.components["embed"].includedirs = []
self.cpp_info.components["_embed_copy"].includedirs = []
self.cpp_info.components["_hidden"].includedirs = [] to the bottom of the |
@madebr Excuse me. Do you mean to modify the
If so, after I added those 4 lines of codes to the bottom of LogsClick to expand logs
Screenshots |
@madebr I'm not sure whether it has been fixed by your method. Here is another problem I met. I change the #include <Python.h>
int main(int argc, char *argv[])
{
Py_Initialize();
PyRun_SimpleString("print('hello world')\n");
Py_Finalize();
return 0;
} However, the result of output is not printing
|
@madebr How is it going? |
I"m fine! Thanks for caring! I hope you are fine too?! I think the error in your previous comment is python complaining it cannot find the standard library. The cpython recipe fixes this by setting environment variables in |
Package and Environment Details
Conan profile (output of
conan profile show default
)CMakeLists.txt and main.cpp
I use CMake-Conan to install package.
Click to expand the CMakeLists.txt
Click to expand the main.cpp
Steps to reproduce
CMakeLists.txt
file, and then paste the above example on it.main.cpp
file, and then paste the above example on it.Ctrl+Shift+P
, and then typeCMake: Configure
.Ctrl+Shift+P
, and then typeCMake: Build
.Logs
The text was updated successfully, but these errors were encountered: