Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Python: Общие вопросы > Кросскомпиляция модуля для винды под линуксом


Автор: pacify 29.1.2008, 11:12
У кого-нибудь получалось откомпилировать питоновский модуль для винды под линуксом?
Я для этого собрал python.exe + python.lib в среде MinGW32/Debian. Но, видимо, не совсем корректно,
так как python.exe не может импортировать мой модуль:

Windows Vista + Python 3.0a2
Цитата

D:\Projects\Python-3.0a2>python.exe
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


Windows Vista + Python 2.5.1
Цитата

D:\Projects\Python-2.5.1>python.exe
'import site' failed; use -v for traceback
Python 2.5.1 (r251:54863, Jan 27 2008 21:52:48)
[GCC 3.4.5 (mingw special)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymodx
Fatal Python error: Interpreter not initialized (version mismatch?)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


Логи моего Питона под Дебианом приведу чуть позже.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)