Closed mgxd closed 8 years ago
I've worked around the problem by generating the c code with
cython VoxelizationCode.pyx
then compiling the c code into .so
gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I path/to/python -o VoxelizationCode.so VoxelizationCode.c
finally, I made another file VoxelizationCode.py
def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'VoxelizationCode.so')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
This allowed me to import the package
Hello, I'm stuck at an error that says there is no module named VoxelizationCode.
The full output:
I thought it was an error with pyximport - but even after simplifying Voxelization.py:
the .pyx module was not found. I'm running this on a freshly made environment, including up to date Cython and Python 2.7. Any ideas why this could be?