-
Notifications
You must be signed in to change notification settings - Fork 74
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
ImportError: dynamic module does not define module export function (PyInit_ydk_) #840
Comments
The GCC 4.8.5 is not sufficient to compile YDK C++ code. It does not support some of the GCC version 5 C++ constructs, which are widely used in YDK code. The documentation explicitly defines installation of GCC 5.x in System Requirements. All published C/C++ artifacts are compiled with GCC 5.4.0 and most likely are not compatible with other GCC versions. The error appears due to this incompatibility. If customer's system has different installation of GCC, the YDK libraries must be recompiled from source. |
Issue should be
|
Added the following statement in documentation:
|
For cmake, need to investigate a bit. currently, to determine the python library, we are using the routine here: https://github.com/CiscoDevNet/ydk-gen/blob/master/sdk/python/core/setup.py#L110 The fix (if any) will have to be in one of the above. See the documentation here: https://cmake.org/cmake/help/v3.2/module/FindPythonLibs.html. But somehow whatever we are passing to it seems inaccurate or incomplete in some environments |
The issue can be fixed by following the guidelines in YDK documentation: http://ydk.cisco.com/py/docs/getting_started.html |
Expected Behavior
YDK should work well with python2 and python3 in Centos7.5
Current Behavior
I have built and installed YDK-gen and YDK-py using python2 and python3 in my Centos 7.5 VM , it works well in python2 but not in python3, and I notice that both of them are built using the same GCC 4.8.5.More details you can also refer to the community discussion
Steps to Reproduce
and
Your Script
Logs
Enable logging and post the logs below
System Information
The text was updated successfully, but these errors were encountered: