hmm, python/cygwin modules look pretty tricky. Just noticing the comments in:
https://bitbucket.org/tarek/distutils2/src/6c3d67ed3adb/distutils2/compiler/cygwinccompiler.py make it clear that our SCons build scripts are not going to support building with this method. There is some experimental work on using distutils with mapnik trunk sources here: https://github.com/mapnik/pymapnik2 Have much experience with distutils? Dane On Apr 7, 2011, at 12:25 AM, Sam Wilson wrote: > By the way, I tried copying _mapnik2.so to _mapnik2.dll. Then trying > to import mapnik2 gives >>>> import mapnik2 > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.6/site-packages/mapnik2/__init__.py", line > 58, in <module> > from _mapnik2 import * > ImportError: No such file or directory > > Not much help. > > Sam > > On Wed, Apr 6, 2011 at 8:54 PM, wilsons <[email protected]> wrote: >> >> I'm trying to get mapnik installed on Cygwin, running on Windows 7. I've >> managed to get mapnik-trunk and python bindings to build and install without >> errors, but when I go to run the demo app, here's what I get: >> Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) >> [GCC 4.3.4 20090804 (release) 1] on cygwin >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import mapnik2 >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/usr/lib/python2.6/site-packages/mapnik2/__init__.py", line 58, in >> <modu >> le> >> from _mapnik2 import * >> ImportError: No module named _mapnik2 >>>>> exit() >> >> It seems like the python bindings installed correctly. The contents of >> /usr/lib/python2.6/site-packages/mapnik2 is >> __init__.py __init__.pyc _mapnik2.so ogcserver paths.py >> >> I don't know much about where python is looking for mapnik packages, or >> where it should be looking. Any suggestions? >> >> Sam >> -- >> View this message in context: >> http://old.nabble.com/Cygwin-building-installation-tp31339247p31339247.html >> Sent from the Mapnik - Users mailing list archive at Nabble.com. >> >> _______________________________________________ >> Mapnik-users mailing list >> [email protected] >> https://lists.berlios.de/mailman/listinfo/mapnik-users >> > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

