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

_mask.so : undefined symbol: _Py_ZeroStruct #90

Open
leekyungmoon opened this issue Nov 30, 2017 · 10 comments

Comments

@leekyungmoon
Copy link

commented Nov 30, 2017

After running the command 'make' under 'coco/PythonAPI', I tried running the script to create my own dataset using cocoAPI.

When running my script, I got an error : "pycocotools/_mask.so: undefined symbol: _Py_ZeroStruct" in Ubuntu 16.04.

I'll appreciate it if you could help me, thanks.

@FumingX

This comment has been minimized.

Copy link

commented Jan 24, 2018

Cause of the Python version.
If you use Python2.7, in PythonAPI/ floder, do:
sudo make
python setup.py build_ext install
If you are using Python3, you need to modify the Makefile to change every 'python' to 'python3' and do:
sudo make
python3 setup.py build_ext install

wish you pass

@cdluminate

This comment has been minimized.

Copy link

commented Mar 8, 2018

@FumingX Thanks, it worked.

@rishi8313

This comment has been minimized.

Copy link

commented May 21, 2018

What if I don't have sudo permissions.

@salihkaragoz

This comment has been minimized.

Copy link

commented May 21, 2018

@rishi8313 You can install on user' local with

'pip install --user pycocotools'

@rishi8313

This comment has been minimized.

Copy link

commented May 21, 2018

Thanks a lot.. It worked..

@Maxwell2016LeChouchou

This comment has been minimized.

Copy link

commented Dec 16, 2018

hello, I installed it on my user local with
pip install --user pycocotools

but I still have error with
ImportError: /home/max/Downloads/MTCNN/models/research/pycocotools/_mask.so: undefined symbol: _Py_ZeroStruct

@JanithT-Lboro

This comment has been minimized.

Copy link

commented Jan 25, 2019

Did you have any luck with this issue? I am having the same problem...
@Maxwell2016LeChouchou

@Harshad1409

This comment has been minimized.

Copy link

commented Feb 6, 2019

@Maxwell2016LeChouchou I am having same problem too.

@Maxwell2016LeChouchou

This comment has been minimized.

Copy link

commented Feb 8, 2019

@JanithT-Lboro @Harshad1409
Hello guys, use coco rather than cocoapi and i have solved the question by using follow command lines:
1st step:
git clone https://github.com/pdollar/coco.git

2nd step:
cd coco/PythonAPI
sudo python3 setup.py build_ext --inplace

3rd step:
sudo python3 setup.py build_ext install

4th step is to go back home directory by cd ~ and excute the following lines to see if your installation succeed or not:
python3
import pycocotools

Hopefully this helps

@nordllar

This comment has been minimized.

Copy link

commented Feb 12, 2019

I work with cython and had the same problem, the solution worked for me - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.