longcw / yolo2-pytorch

YOLOv2 in PyTorch
1.54k stars 421 forks source link

Undefined Symbol: PyInt_FromLong #26

Closed nottug closed 6 years ago

nottug commented 7 years ago

I've written a demo program and have been trying to run this in python3 but keep getting this error:

ImportError: /home/ubuntu/git/yolo2-pytorch/layers/reorg/_ext/reorg_layer/_reorg_layer.so: undefined symbol: PyInt_FromLong

I'm assuming it was written in python2, but is there any way to convert this? I've tried but haven't gotten anything to work.

DecentMakeover commented 6 years ago

Facing the same issue here,Have you found any workarounds?

PrinceP commented 6 years ago

Go to make.sh and change python version to 3. python3 build.py

DecentMakeover commented 6 years ago

Thanks ,Works

Vikramsinh commented 4 years ago

I have install pysftp library using yum install pysftp -t . on AMI linux command prompt and make zip file of it and upload it to AWS lambda layer. but still I am getting

Undefined Symbol: PyInt_FromLong

Please help