Ros2 on Windows: entry point not found

asked 2020-03-30 07:52:46 -0600

marreb gravatar image

updated 2020-03-31 02:22:13 -0600

Hi, I have installed Ros2 Eloquent on Windows 10 from following tutorial: http://wiki.ros.org/Installation/Windows.

When trying to run "rqt_graph", a windows error yields that says (Unfortunatelly i'm new to ROS2 and can't upload pics due to points):

python.exe - Entry Point Not Found

The procedure entry point OPENSSL_sk_new_reserve could not be located in the dynamic library C:\WINDOWS\SYSTEM32\libssl-1_1-x64.dll

The file "libssl-1_1-x64.dll" is located in SYSTEM32 windows map. A colleague of mine gets similar error, however it looks for the dll-file in

C:\opt\python37amd64\Lib\site-packages\PyQt5\Qt\bin\libssl-1_1-x64.dll.

It is located in multiple locations in C:\opt installation map. Specifically:

C:\opt\rosdeps\x64\bin\libssl-1_1-x64.dll
C:\opt\python37amd64\DLLs\libssl-1_1-x64.dll
C:\opt\python37amd64\Lib\site-packages\PyQt5\Qt\bin\libssl-1_1-x64.dll

Anyone know a solution to this problem? What seems to be the problem with OPENSSL_sk_new? I can't find a way to redirect the entry point to the correct directory.

Best regards, Marreb

edit retag flag offensive close merge delete

Comments

@marreb, can you try the environment setup section of this doc? https://github.com/ros2/ros2_document... some environment variables need to be set before the local_setup.bat called. Once you confirm, I will update the Wiki too.

Sean Yen gravatar image Sean Yen  ( 2020-03-30 12:46:16 -0600 )edit

@Sean Yen , thanks for answer. Sorry if I was unclear. Before calling local_setup.bat, I set the variables :

call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
SET "ChocolateyInstall=c:\opt\chocolatey"
SET "PATH=c:\opt\python37amd64;c:\opt\python37amd64\scripts; c:\opt\rosdeps\x64\bin;c:\opt\rosdeps\x64\lib;%PATH%"
SET "PYTHONHOME=c:\opt\python37amd64"
SET "PYTHONPATH=c:\opt\python37amd64\lib\site-packages;c:\opt\ros\eloquent\x64\lib\site-packages"

According to issue addressed in https://github.com/ms-iot/ROSOnWindow.... This is done from an administrative command prompt.

marreb gravatar image marreb  ( 2020-03-30 13:22:29 -0600 )edit

@Sean Yen ,

I noticed the same errors when running all the python examples, such as "listener", "talker", "client", etc. I managed to solve the problem by creating own py-files from the tutorial: https://index.ros.org/doc/ros2/Tutori..., and adding:

import launch

Doing this to rqt-script.py and rqt_graph-script.py in ”C:\opt\ros\eloquent\x64\Scripts" solved the problem for both "rqt" and "rqt_graph".

Best regards, Marreb

marreb gravatar image marreb  ( 2020-04-21 02:23:44 -0600 )edit