Can't seem to figure out how to get this library to import correctly when porting with py2exe. I've tried including the shapely library in the setup file, copying all the required dll's into the dist folder, and many other things for days now. I can import the shapely.geometry features fine in python, it just doesn't seem to make it into the py2exe output file.
Any thoughts?
setup.py
from distutils.core import setup
import py2exe
setup(console=['test.py'])
test.py
from shapely.geometry import Polygon
from shapely.geometry import Point
print 'test'
error:
C:\Users\User\Desktop\dist>test.exe Traceback (most recent call last):
File "test.py", line 1, in
File "shapely\geometry__init__.pyc", line 4, in
File "shapely\geometry\base.pyc", line 9, in
File "shapely\coords.pyc", line 8, in
File "shapely\geos.pyc", line 96, in
File "ctypes__init__.pyc", line 365, in init
WindowsError: [Error 126] The specified module could not be found