-
Notifications
You must be signed in to change notification settings - Fork 224
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
r2b3 Failure to import _rclpy on windows #115
Comments
Possibly due to missing VS2015 redistributable libraries? Dependency Walker reports these as missing
|
also similar to ros2/ros2#360 (comment) |
Installing openssl fixed the problem, added to the installation instructions in https://github.com/ros2/ros2/wiki/Windows-Install-Binary/_compare/3bb08f69ccbba3841af5b481d5263815165ae314...1089afdf20f981940c50a222e96f4c6a591b6de2. The issue is that since beta2 we ship fastrtps with security. So we need some openssl dlls to be able to run our programs. The error message given by python is not clear at all. I tracked it down when trying to run c++ code that gave a much clearer like: "libEAY32.dll is missing". Installing openSSL fixed both c++ and Python examples |
Can you look into the raised |
this might explain users having issues with OSX binaries since we shipped with security, too |
@dirk-thomas Here are the members, haven't tried installing openssl yet
|
Thanks @sloretz for posting this. I can't reproduce it anymore... Removing env variable and openssl DLLs from the path is not enough. Uninstalling OpenSSL is not enough either o_O. Not sure how to get back in the broken state... |
Since |
Given that the error still doesnt give anything more than the module, guessing which missing dll is the cause may be hard. We could check the os and based on the platform point to the "install dependencies" section of the corresponding wiki page but I'm not sure we can give much clearer explanation given the little context we have. Or we can link to a single wiki page that says "you're likely missing dependencies" and store the corresponding links on that page. |
I would keep the logic simple and point to a single page / ticket which than provides enough information to guide the user further. |
Follow up on this: looks like uninstalling openssl didnt remove the culprit dll from System32 that's why it's still working. Removing it by hand allows me to reproduce |
@dirk-thomas did you mean that ros2cli would print the warning, or that it would be printed from here?
|
It needs to be handled in |
Bug report
Required Info:
Steps to reproduce issue
Symptom is a lot of errors when using
ros2
command. This is aftercall C:\dev\ros2\local_setup.bat
Trying to load one of the entry points shows a traceback when importing _rclpy
Trying to import rclpy shows a similar error
Expected behavior
I'd expect no ImportError to be raised.
Actual behavior
Import error is raised
Additional information
sys.path
Not sure if I should see _rclpy.dll or something like that, but I don't.There is_rclpy.pyd
, is that what is failing to be found?The text was updated successfully, but these errors were encountered: