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

Trouble importing segmentation_ext into Python 3 #25

Open
Eikeike opened this issue Feb 2, 2022 · 3 comments
Open

Trouble importing segmentation_ext into Python 3 #25

Eikeike opened this issue Feb 2, 2022 · 3 comments

Comments

@Eikeike
Copy link

Eikeike commented Feb 2, 2022

When installing with setup.py in the segmentation directory, I run into this issue when importing segmentation_ext in Python 3.6.9:

ImportError: dynamic module does not define module export function (PyInit_segmentation_ext)

It works just fine in Python 2.7. I have already tried setting the target version and the python executable in the CMakeList.txt, but it did not work

@Eikeike Eikeike changed the title segmentation_ext not compiling for Python 3 Trouble importing segmentation_ext into Python 3 Feb 2, 2022
@zengkailiang
Copy link

I have the same problem. Have you solved it now

@iisskj
Copy link

iisskj commented Mar 17, 2023

I have the same problem too, so have you solved this problem?
My environment is windows python 3.7.

@hoangkhai6893
Copy link

hoangkhai6893 commented Jul 25, 2023

here is solution :
#1 (comment)

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