Skip to content
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

Exception has occurred: ImportError DLL load failed while importing _fastdds_python #63

Open
mocyth opened this issue Sep 22, 2023 · 5 comments

Comments

@mocyth
Copy link

mocyth commented Sep 22, 2023

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
Copy link
Author

mocyth commented Sep 22, 2023

I checked the dependencies but found no exception !
image

@Yizuuuuuu
Copy link

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

@Mario-DL
Copy link
Member

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
Copy link
Member

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.

@chenfei8888
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants