Okay, I'm stumped, and I'm hoping someone here can help me. I'm writing a C++ wrapper for PyEphem so I've built a debug version of Python for development. When I import PyEphem in the release Python version, no problem. But using the debug version I get the error: No module named _libastro. Here's what I'm seeing:
c:\python27> c:\python27>python Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on Type "help", "copyright", "credits" or "license" for more information. >>> import ephem >>> c:\python27>python_d Python 2.7.1 (r271:86832, Mar 9 2011, 08:13:52) [MSC v.1500 32 bit (Intel)] on Type "help", "copyright", "credits" or "license" for more information. >>> import ephem Traceback (most recent call last): File "<stdin>", line 1, in <module> File "c:\python27\lib\site-packages\ephem\__init__.py", line 5, in <module> import ephem._libastro as _libastro ImportError: No module named _libastro [43417 refs] >>> __init__.py, line 5 indeed, does import ephem._libastro as _libastro, but why does it work for the release version and not the debug version? Nothings moved, all I did was add python_d.exe and python27_d.dll to the c:\python27 directory. There must be some mechanism for locating modules that hasn't/isn't being configured with the debug executable. I know this has got to be simple but it's driving me to distraction. Thanks in advance for any help.
_______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig