Fast-DDS-python icon indicating copy to clipboard operation
Fast-DDS-python copied to clipboard

Exception has occurred: ImportError DLL load failed while importing _fastdds_python

Open mocyth opened this issue 2 years ago • 5 comments

Hi Guys: I have built Fast-DDS-python successfully, but when i import the fastdds package, i get an error as follow: image

The file struecture is orgnized like this: image

and the test codes are: import fastdds import sys, os sys.path.insert(0, os.path.join(os.path.dirname(__file__)) ) sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'fastdds') ) sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'fastdds/helloworld') ) I don't know how to fix this, could any one help me ? Greate appreciation!

mocyth avatar Sep 22 '23 06:09 mocyth

I checked the dependencies but found no exception ! image

mocyth avatar Sep 22 '23 06:09 mocyth

Hi, I met the same Problem. Did you solve that?

Yizuuuuuu avatar Mar 27 '24 13:03 Yizuuuuuu

Hi @mocyth Thanks for using Fast DDS Python ! I could reproduce the issue. We will get back to you when we see the root cause

Mario-DL avatar Jun 12 '24 11:06 Mario-DL

Hi @mocyth The issue is no longer reproducible in master with Fast DDS mmaster , could you double check that ?
We may backport a workaround to 2.x as well.

Mario-DL avatar Jun 14 '24 10:06 Mario-DL

The version of python you compiled with fastdds-python does not match the version actually used in pycharm. You can specify the python version number in cmakelist at compile time.

chenfei8888 avatar Aug 01 '24 11:08 chenfei8888