【发布时间】:2022-12-28 05:47:40
【问题描述】:
I am trying to import "_crop_and_resize.so" from a MASK-R-CNN deep network, but I am receiving an error.
g++ (GCC)= 9.3.0
python= 3.6.10
Ubuntu 20.04.4 LTS 64bit
>>> import _crop_and_resize as _backend
the error:
ImportError:_crop_and_resize.so: file too short
【问题讨论】:
-
Show your code please.
-
For c extension modules to be used within python, several flags must be enabled when the object is built. Please amend you question to give details for your compilation processes. If
_crop_and_resize.sowas created with a standard setup.py setup, it is very likely that it is only compatible with identical versions of the cpython interpreter -
@AMIRABBAS what is the output of
ldd _crop_and_resize.so? -
@AMIRABBAS: Stack Overflow is not a service for going to your GitHub repository and diagnosing problems for you. You should narrow your problem down to a specific part of the code and reproduce it with a short program that you post entirely in the question, not as a link to elsewhere.
-
@AMIRABBAS that is your problem. The file is empty. It did not download for some reason. Redownload it directly from github.
标签: python importerror