-
Notifications
You must be signed in to change notification settings - Fork 146
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
ImportError: bad magic number in 'geo_map_cython_lib': b'\x03\xf3\r\n' #17
Comments
Just delete all the *.pyc files in geo_map_cython_lib folder. |
In this case it starts to give the error "libpython2.7.so.1.0: cannot open shared object file: No such file or directory" Does it mean this repo works only for Python2 ? |
You can try to run it on Python3, I used python3 and this problem was solved. |
i find this method before,but when i delete the init_.pyc, new problem occur: |
Have you solved this problem |
ImportError: dynamic module does not define module export function (PyInit_gen_geo_map); |
I met the same problem. Have anyone solved it yet? |
python3.0?I used python3.7 and that can not |
that is python3.0? I use python3.7,but the problem is not solved |
Use the ls -a command in geo_map_cython_lib to find all the .pyc files deleted. |
thank you
…---Original---
From: "Zhu Chuan"<[email protected]>
Date: Sat, Dec 14, 2019 22:14 PM
To: "songdejia/EAST"<[email protected]>;
Cc: "Comment"<[email protected]>;"AagsAags"<[email protected]>;
Subject: Re: [songdejia/EAST] ImportError: bad magic number in 'geo_map_cython_lib': b'\x03\xf3\r\n' (#17)
when i trained main.py,i met this problem.how to do with?
I have also met this problem, and I solve it by run build_ext.sh, or directly input command
python setup.py build_ext --inplace
Hope it works for you.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have the same problem and I use Win10 too. Have anyone solved this problem? THANKS |
删除__init__.pyc, 重新运行build_text.sh,python3.6, centos,docker有效 |
亲测有效,重命名也不行 |
如果你删除了init_py遇到了上面的问题,可能是由于你没有在运行main.py前运行geo_map_cython_lib下的build_ext.sh脚本,你可能还需要安装cython。 |
the detail about the error is :Traceback (most recent call last):
File "/home/user/east/EAST-pytorch/main.py", line 11, in
from data_utils import custom_dset, collate_fn
File "/home/user/east/EAST-pytorch/data_utils.py", line 18, in
from geo_map_cython_lib import gen_geo_map
i search a lot , but not solved this error,so how to solve the error to run the code correctly?thanks..
The text was updated successfully, but these errors were encountered: