alexmnazarenko / pysimgrid

Python framework for scheduling research based on SimGrid project
GNU General Public License v3.0
22 stars 13 forks source link

Error: undefined symbol: _Py_ZeroStruct #17

Closed msisched closed 5 years ago

msisched commented 5 years ago

I'm trying to run basic_test.py and I get the error:

Traceback (most recent call last): File "basic_test.py", line 18, in from pysimgrid import simdag File "/pysimgrid-master/pysimgrid/init.py", line 19, in from . import csimdag ImportError: /pysimgrid-master/pysimgrid/csimdag.so: undefined symbol: _Py_ZeroStruct

Could you help me? Thank you!!

alexmnazarenko commented 5 years ago

Hey,

it looks like you've used inconsistent python versions during build and execution.

Make sure that setup.py build_ext ... stuff and basic_test.py are executed with same interpreter version (python vs python2 vs python3).

msisched commented 5 years ago

Thank you!

saikaushik0410 commented 4 years ago

while i am running the model_main.py file for my training purpose , i get the following error: Traceback (most recent call last): File "model_main.py", line 26, in from object_detection import model_lib File "/home/koushik/Desktop/fresh/models/research/object_detection/model_lib.py", line 27, in from object_detection import eval_util File "/home/koushik/Desktop/fresh/models/research/object_detection/eval_util.py", line 33, in from object_detection.metrics import coco_evaluation File "/home/koushik/Desktop/fresh/models/research/object_detection/metrics/coco_evaluation.py", line 25, in from object_detection.metrics import coco_tools File "/home/koushik/Desktop/fresh/models/research/object_detection/metrics/coco_tools.py", line 51, in from pycocotools import coco File "/home/koushik/Desktop/fresh/models/research/pycocotools/coco.py", line 55, in from . import mask as maskUtils File "/home/koushik/Desktop/fresh/models/research/pycocotools/mask.py", line 3, in import pycocotools._mask as _mask ImportError: /home/koushik/Desktop/fresh/models/research/pycocotools/_mask.so: undefined symbol: _Py_ZeroStruct Can anyone provide me the solution