Can't enable the B0-based Remote Api

Typically: "How do I... ", "How can I... " questions
Post Reply
Le gourmet
Posts: 2
Joined: 20 Dec 2019, 06:55

Can't enable the B0-based Remote Api

Post by Le gourmet » 27 Dec 2019, 10:48

Hi,

I'm trying to work on the B0-based Remote Api but i'm getting trouble enabling it when i try to run a script. I'm using Python 3.7 x64 on Win10 and V-REP PRO EDU 3.6.2 (rev0)

As shown in this page http://www.coppeliarobotics.com/helpFil ... ntSide.htm , I installed MessagePack and I put all the following files in my working directory, copying them from VRep's installation folder :
  • b0.py
  • b0RemoteApi.py
  • b0.dll
  • boost_date_time-vc141-mt-x64-1_70.dll
  • boost_filesystem-vc141-mt-x64-1_70.dll
  • boost_program_options-vc141-mt-x64-1_70.dll
  • boost_regex-vc141-mt-x64-1_70.dll
  • boost_serialization-vc141-mt-x64-1_70.dll
  • boost_thread-vc141-mt-x64-1_70.dll
  • libzmq-mt-4_3_2.dll
Then when i try to run the simple test.py with his corresponding demo scene B0-basedRemoteApiDemo.ttt i'm getting this error :

Code: Select all

 File "(working directory)\b0RemoteApi.py", line 6, in <module>
    import b0

  File "(working directory)\b0.py", line 18, in <module>
    libb0 = ct.CDLL(libb0_fullpath)

  File "(my python path)\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)

OSError: [WinError 126] The specified module could not be found
I really don't know what i am doing wrong as i followed every steps of the tutorial. On the server side, after opening B0-basedRemoteApiDemo.ttt, I kept the b0_resolver.exe open and i started the add-on script for the b0 Remote Api Server
[Add-ons --> b0RemoteApiServer].

Any suggestions or recommendations ? I know i'm missing something but i don't know what.

Regards.

coppelia
Site Admin
Posts: 7527
Joined: 14 Dec 2012, 00:25

Re: Can't enable the B0-based Remote Api

Post by coppelia » 31 Dec 2019, 09:14

Hello,

are you sure that you have all elements in place?

You need to have the resolver running. Then, at the location of your python script, you need b0.dll, plus all of its dependencies:
  • boost_data_time-vc141-mt-x64-1_70.dll
  • boost_filesystem-vc141-mt-x64-1_70.dll
  • boost_program_options-vc141-mt-x64-1_70.dll
  • boost_regex-vc141-mt-x64-1_70.dll
  • boost_thread-vc141-mt-x64-1_70.dll
  • libzmq-mt-4_3_2.dll
  • lz4.dll
  • zlib1.dll
and of course you also need the following python files:
  • b0.py
  • b0RemoteApi.py
Cheers

Le gourmet
Posts: 2
Joined: 20 Dec 2019, 06:55

Re: Can't enable the B0-based Remote Api

Post by Le gourmet » 08 Jan 2020, 08:58

Hi again,

thank you for your answer and for giving me the 2 files that were missing :
  • lz4.dll
  • zlib1.dll
now it works well.

Thanks again !

Post Reply