[PyQt] about pyqtdelpoy and other packages
Phil Thompson
phil at riverbankcomputing.com
Sun Sep 11 17:43:27 BST 2016
On 11 Sep 2016, at 5:20 pm, wengo <dada20042030 at gmail.com> wrote:
>
> hi kyle,
>
> thanks for your reply.
>
> I installed Python-3.4.0 and Python-2.7.12
snip
> i checked sockect of the standard library modules in pyqtdeploy gui
>
> running nmake
> ==============================================================
> e:\Qt\SYSROOT\src\qt-everywhere-opensource-src-4.8.6\bin\rcc.exe
> -name p
> yqtdeploy resources\pyqtdeploy.qrc -o release\qrc_pyqtdeploy.cpp
> cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -Os -MT -W0 -GR -EHsc -DWIN32
> -DPY
> QTDEPLOY_FROZEN_MAIN -DPYQTDEPLOY_OPTIMIZED -DMS_WINDOWS
> -D_WIN32_WINNT=Py_WINVE
> R -DNTDDI_VERSION=Py_NTDDI -DWINVER=Py_WINVER -DQT_NO_DEBUG -DQT_CORE_LIB
> -DQT_H
> AVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2
> -DQT_THREA
> D_SUPPORT -DNDEBUG
> -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include\QtCor
> e" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include"
> -I"..\..\include\pyt
> hon2.7" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include\ActiveQt"
> -I"rel
> ease" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\mkspecs\default"
> -Foreleas
> e\ @C:\Users\dada\AppData\Local\Temp\nmC59C.tmp
> pyqtdeploy_main.cpp
> pyqtdeploy_start.cpp
> pdytools_module.cpp
> Generating Code...
> cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -Os -MT -W0 -GR -EHsc -DWIN32
> -DPY
> QTDEPLOY_FROZEN_MAIN -DPYQTDEPLOY_OPTIMIZED -DMS_WINDOWS
> -D_WIN32_WINNT=Py_WINVE
> R -DNTDDI_VERSION=Py_NTDDI -DWINVER=Py_WINVER -DQT_NO_DEBUG -DQT_CORE_LIB
> -DQT_H
> AVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2
> -DQT_THREA
> D_SUPPORT -DNDEBUG
> -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include\QtCor
> e" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include"
> -I"..\..\include\pyt
> hon2.7" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\include\ActiveQt"
> -I"rel
> ease" -I"..\..\src\qt-everywhere-opensource-src-4.8.6\mkspecs\default"
> -Foreleas
> e\ @C:\Users\dada\AppData\Local\Temp\nmCA30.tmp
> qrc_pyqtdeploy.cpp
> link
> /LIBPATH:"e:\Qt\SYSROOT\src\qt-everywhere-opensource-src-4.8.6\lib"
> /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /OPT:REF /OPT:ICF
> /SUBSYSTEM:CON
> SOLE "/MANIFESTDEPENDENCY:type='win32'
> name='Microsoft.Windows.Common-Controls'
> version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*'
> processorArchit
> ecture='*'" /MANIFEST
> /MANIFESTFILE:"release\hello_world.intermediate.manifest"
> /OUT:release\hello_world.exe @C:\Users\dada\AppData\Local\Temp\nmCBC8.tmp
> mt.exe -nologo -manifest "release\hello_world.intermediate.manifest"
> -ou
> tputresource:release\hello_world.exe;1
> copy /y & copy /y &
>
>
> execute the hello_world.exe
> ================================
> Traceback (most recent call last):
> File "hello_world.py", line 1, in <module>
> File ":/socket.py", line 47, in <module>
> ImportError: No module named _socket
I assume you checked "Use standard Python shared library" for Windows?
Did you install the system Python in your sysroot (using the install action of pyqtdeploycli)?
Phil
More information about the PyQt
mailing list