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

dynamic module does not define module export function (PyInit_gen_geo_map) #8

Open
xbcReal opened this issue Nov 29, 2018 · 13 comments

Comments

@xbcReal
Copy link

xbcReal commented Nov 29, 2018

Have you met the problem when type sh run.sh as following:
dynamic module does not define module export function (PyInit_gen_geo_map)?

@xbcReal
Copy link
Author

xbcReal commented Nov 29, 2018

I solved this problem by makefile for py2 and re-make to get the new .so.

@alwaycs
Copy link

alwaycs commented Dec 6, 2018

I solved this problem by makefile for py2 and re-make to get the new .so.

hi xbcReal
i got the same error
can you explain in detail how did you sovle it?
Thanks!

@xbcReal
Copy link
Author

xbcReal commented Dec 6, 2018

I solved this problem by makefile for py2 and re-make to get the new .so.

hi xbcReal
i got the same error
can you explain in detail how did you sovle it?
Thanks!

As I mentioned above,you need a new .so.So you should do make clean && make.

@alwaycs
Copy link

alwaycs commented Dec 6, 2018

I solved this problem by makefile for py2 and re-make to get the new .so.

hi xbcReal
i got the same error
can you explain in detail how did you sovle it?
Thanks!

As I mentioned above,you need a new .so.So you should do make clean && make.

你好,点进你的主页发现你也是中国人,为了方便交流我就直接用中文了(其实是英文太烂)

你说的 make clean && make 是什么意思?

我是这方面的新手,不是很理解

谢谢

ps:看你的主页写着你是华科的,那我和你算是校友啦(握爪)

@xbcReal
Copy link
Author

xbcReal commented Dec 6, 2018

I solved this problem by makefile for py2 and re-make to get the new .so.

hi xbcReal
i got the same error
can you explain in detail how did you sovle it?
Thanks!

As I mentioned above,you need a new .so.So you should do make clean && make.

你好,点进你的主页发现你也是中国人,为了方便交流我就直接用中文了(其实是英文太烂)

你说的 make clean && make 是什么意思?

我是这方面的新手,不是很理解

谢谢

ps:看你的主页写着你是华科的,那我和你算是校友啦(握爪)

就是在lamns目录下面执行make clean和make指令。

@Pythonisfun
Copy link

我通过makefile for py2解决了这个问题,并重新make以获取新的.so。

嗨xbcReal
我得到了同样的错误
你能详细解释你是如何解决它的吗?
谢谢!

正如我上面提到的,你需要一个新的.so.So你应该做干净&& make。

你好,点进你的主页发现你也是中国人,为了方便交流我就直接用中文了(其实是英文太烂)
你说的make clean && make的英文怎么说?
我是这方面的新手,不是很理解
谢谢
PS:看你的主页写着你是华科的,那我和你算是校友啦(握爪)

就是在lamns目录下面执行make clean和make指令。

我在编译的时候遇到了"fatal error: Python.h: No such file or directory",我安装了python-devel仍然遇到这个问题?请问有什么解决方案么?

@lmb633
Copy link

lmb633 commented Jul 11, 2019

我通过makefile for py2解决了这个问题,并重新make以获取新的.so。

嗨xbcReal
我得到了同样的错误
你能详细解释你是如何解决它的吗?
谢谢!

正如我上面提到的,你需要一个新的.so.So你应该做干净&& make。

你好,点进你的主页发现你也是中国人,为了方便交流我就直接用中文了(其实是英文太烂)
你说的make clean && make的英文怎么说?
我是这方面的新手,不是很理解
谢谢
PS:看你的主页写着你是华科的,那我和你算是校友啦(握爪)

就是在lamns目录下面执行make clean和make指令。

我在编译的时候遇到了"fatal error: Python.h: No such file or directory",我安装了python-devel仍然遇到这个问题?请问有什么解决方案么?

MakeFIle中python的版本问题 我自己的是3.6的python改成了
CXXFLAGS = -I include -std=c++11 -O3 $(shell python3.6-config --cflags)
问题就解决了

@THN1021
Copy link

THN1021 commented Aug 5, 2019

Cross point does not exist的问题是数据增强部分的代码有小的bug,有的图没有框,可以在相应位置判断一下是否为空,不过没什么影响。

@LW-CVer
Copy link

LW-CVer commented Nov 6, 2020

我重新编译了之后还是报ImportError: dynamic module does not define module export function (PyInit_gen_geo_map),而且为什么要编译lanms,不是gen_geo_map的问题吗

@HiIcy
Copy link

HiIcy commented Jan 13, 2021

我重新编译了之后还是报ImportError: dynamic module does not define module export function (PyInit_gen_geo_map),而且为什么要编译lanms,不是gen_geo_map的问题吗

我也有同样的疑惑加问题,你现在解决了吗

@Lovegood-1
Copy link

Lovegood-1 commented Aug 31, 2021

Hi everyone,

It is the same situation that happens to me.

To fix this bug("dynamic module does not define module export function (PyInit_gen_geo_map)"), I have read all blogs and issues. Here are correct steps may help your.

Step1
Situation1 : the computer reports an error "dynamic module does not define module export function (PyInit_gen_geo_map)"
Solution1: cd ./geo_map_cpython_lib
bash build_ext.sh ---- this code is to run the setup.py
Step2
situation2: after step1, the computer does not reports the error "dynamic module does not define module export function (PyInit_gen_geo_map)", but another error that relative to lanms .
solution2: open the lanms/Makefile
do as below

                       MakeFIle中python的版本问题 我自己的是3.6的python改成了
                       CXXFLAGS = -I include -std=c++11 -O3 $(shell python3.6-config --cflags)
                       问题就解决了

rename adaptor.so as adaptor_backup.so
run this: make -f Makefile.
OK, problem has been solved.

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

9 participants