EAST icon indicating copy to clipboard operation
EAST copied to clipboard

dynamic module does not define module export function (PyInit_gen_geo_map)

Open xbcReal opened this issue 6 years ago • 13 comments

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 avatar Nov 29 '18 11:11 xbcReal

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

xbcReal avatar Nov 29 '18 12:11 xbcReal

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!

alwaycs avatar Dec 06 '18 07:12 alwaycs

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.

xbcReal avatar Dec 06 '18 08:12 xbcReal

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:看你的主页写着你是华科的,那我和你算是校友啦(握爪)

alwaycs avatar Dec 06 '18 08:12 alwaycs

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指令。

xbcReal avatar Dec 06 '18 11:12 xbcReal

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指令。

请问你这个工程跑出来了吗?那个 Cross point does not exist Cross point does not exist Cross point does not exist 以及gt.zip请问你是如何解决的??谢谢!

Caius-Lu avatar Dec 30 '18 07:12 Caius-Lu

我通过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仍然遇到这个问题?请问有什么解决方案么?

Pythonisfun avatar Mar 12 '19 01:03 Pythonisfun

我通过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) 问题就解决了

lmb633 avatar Jul 11 '19 03:07 lmb633

好的,谢谢你了。

在2019-07-11 11:17:46,[email protected]写道:

我通过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) 问题就解决了

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Caius-Lu avatar Jul 11 '19 05:07 Caius-Lu

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

THN1021 avatar Aug 05 '19 06:08 THN1021

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

LW-CVer avatar Nov 06 '20 02:11 LW-CVer

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

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

HiIcy avatar Jan 13 '21 08:01 HiIcy

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.

Lovegood-1 avatar Aug 31 '21 14:08 Lovegood-1