请帮忙看看BitTorrent的build~谢谢~

请帮忙看看BitTorrent的build~谢谢~

运行build,用nsis打包不通,详情如下:特别是最后显示:

File: "dist\*.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "bittorrent.nsi" on line 168 -- aborting creation process

之前dist文件夹下应该没有exe文件呀,那nsis要File: "dist\*.exe" 是什么意思呢?
烦请大家帮我看看,谢谢谢谢!


F:\downloads\BitTorrent-4.0.1>c:\python25\python.exe winsetup.py py2exe
running py2exe
*** searching for required modules ***
Traceback (most recent call last):
  File "winsetup.py", line 48, in <module>
    ("images\\logo", glob.glob("images\\logo\\*png")) ],
  File "c:\python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "c:\python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "c:\python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 223, in run
    self._run()
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 274, in _run
    self.find_needed_modules(mf, required_files, required_modules)
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 1189, in find_n
eeded_modules
    mf.import_hook(mod)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 649, in import_hook
    return Base.import_hook(self,name,caller,fromlist)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 130, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 184, in find_head_pack
age
    raise ImportError, "No module named " + qname
ImportError: No module named gobject

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\bin\libpng12.dll dist\
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\bin\zlib1.dll dist\
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\bin\libpangoft2-1.0-0.dll dist\
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>rem I don't think this is needed:

F:\downloads\BitTorrent-4.0.1>rem copy C:\GTK\bin\libxml2.dll dist\

F:\downloads\BitTorrent-4.0.1>mkdir dist\etc\pango
子目录或文件 dist\etc\pango 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\etc\pango dist\etc\pango
C:\GTK\etc\pango\pango.aliases
C:\GTK\etc\pango\pango.modules
已复制         2 个文件。

F:\downloads\BitTorrent-4.0.1>mkdir dist\etc\gtk-2.0\
子目录或文件 dist\etc\gtk-2.0\ 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\etc\gtk-2.0\gdk-pixbuf.loaders dist\et
c\gtk-2.0
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>mkdir dist\lib\gtk-2.0\2.4.0\loaders
子目录或文件 dist\lib\gtk-2.0\2.4.0\loaders 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\gtk-2.0\2.10.0\loaders\libpixbuflo
ader-png.dll dist\lib\gtk-2.0\2.4.0\loaders
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\gtk-2.0\2.10.0\loaders\libpixbuflo
ader-xpm.dll dist\lib\gtk-2.0\2.4.0\loaders
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\gtk-2.0\2.10.0\loaders\libpixbuflo
ader-ico.dll dist\lib\gtk-2.0\2.4.0\loaders
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>mkdir dist\lib\pango\1.4.0\modules
子目录或文件 dist\lib\pango\1.4.0\modules 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\pango\1.6.0\modules\pango-basic-wi
n32.dll dist\lib\pango\1.4.0\modules\
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\pango\1.6.0\modules\pango-basic-fc
.dll dist\lib\pango\1.4.0\modules\
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\share\locale dist\lib\
C:\GTK\share\locale\*
系统找不到指定的文件。
已复制         0 个文件。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\etc\gtk-2.0\gtkrc dist\etc\gtk-2.0
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>mkdir dist\lib\gtk-2.0\2.4.0\engines
子目录或文件 dist\lib\gtk-2.0\2.4.0\engines 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\lib\gtk-2.0\2.10.0\engines\libwimp.dll
dist\lib\gtk-2.0\2.4.0\engines
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>mkdir dist\share\themes\wimp\gtk-2.0
子目录或文件 dist\share\themes\wimp\gtk-2.0 已经存在。

F:\downloads\BitTorrent-4.0.1>copy C:\GTK\share\themes\MS-Windows\gtk-2.0\gtkrc
dist\share\themes\wimp\gtk-2.0
已复制         1 个文件。

F:\downloads\BitTorrent-4.0.1>"C:\Program Files\NSIS\makensis.exe" bittorrent.ns
i
MakeNSIS v2.36 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
- AdvSplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- NSISdl::download
- NSISdl::download_quiet
- Processes::FindDevice
- Processes::FindProcess
- Processes::KillProcess
- Splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- UserInfo::GetOriginalAccountType
- VPatch::GetFileCRC32
- VPatch::GetFileMD5
- VPatch::vpatchfile
- nsDialogs::Create
- nsDialogs::CreateControl
- nsDialogs::CreateItem
- nsDialogs::GetUserData
- nsDialogs::OnBack
- nsDialogs::OnChange
- nsDialogs::OnClick
- nsDialogs::OnNotify
- nsDialogs::SelectFileDialog
- nsDialogs::SelectFolderDialog
- nsDialogs::SetRTL
- nsDialogs::SetUserData
- nsDialogs::Show
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "F:\downloads\BitTorrent-4.0.1"

Processing script file: "bittorrent.nsi"
!define: "VERSION"="4.0.1"
!define: "APPNAME"="BitTorrent"
OutFile: "BitTorrent-4.0.1.exe"
Name: "BitTorrent"
SilentInstall: silent
SetCompressor: lzma
InstallDir: "$PROGRAMFILES\BitTorrent\"
Function: "IsUserAdmin"
Push: $R0
Push: $R1
Push: $R2
ClearErrors
File: "UserInfo.dll"->"$PLUGINSDIR\UserInfo.dll" [compress] 1269/4096 bytes
Plugin Command: GetName
IfErrors ?Win9x:
Pop: $R1
File: "UserInfo.dll"->"$PLUGINSDIR\UserInfo.dll" [compress] 0/4096 bytes
Plugin Command: GetAccountType
Pop: $R2
StrCmp "$R2" "Admin" equal=0, nonequal=Continue
StrCpy $R0 "true" () ()
Goto: Done
StrCmp "$R2" "" equal=Win9x, nonequal=
StrCpy $R0 "false" () ()
Goto: Done
StrCpy $R0 "true" () ()
Pop: $R2
Pop: $R1
Exch($R0,0)
FunctionEnd
Function: "QuitIt"
File: "Processes.dll"->"$PLUGINSDIR\Processes.dll" [compress] 17926/36352 bytes
Plugin Command: FindProcess btdownloadgui.exe
StrCmp "$R0" "1" equal=foundit, nonequal=didntfindit
Sleep: 2000 ms
Goto: checkforit
MessageBox: 1: "You must quit BitTorrent before installing this version.
Please quit it and press OK to continue." (on IDOK goto waitforit)
Abort: ""
Plugin Command: FindProcess btmaketorrentgui.exe
StrCmp "$R0" "1" equal=foundit2, nonequal=didntfindit2
Sleep: 2000 ms
Goto: checkforit2
MessageBox: 1: "You must quit BitTorrent metafile creator before installing this
version.
Please quit it and press OK to continue." (on IDOK goto waitforit2)
Abort: ""
FunctionEnd
Function: "un.QuitIt"
File: "Processes.dll"->"$PLUGINSDIR\Processes.dll" [compress] 17926/36352 bytes
Plugin Command: FindProcess btdownloadgui.exe
StrCmp "$R0" "1" equal=foundit, nonequal=didntfindit
Sleep: 2000 ms
Goto: checkforit
MessageBox: 1: "You must quit BitTorrent before installing this version.
Please quit it and press OK to continue." (on IDOK goto waitforit)
Abort: ""
Plugin Command: FindProcess btmaketorrentgui.exe
StrCmp "$R0" "1" equal=foundit2, nonequal=didntfindit2
Sleep: 2000 ms
Goto: checkforit2
MessageBox: 1: "You must quit BitTorrent metafile creator before installing this
version.
Please quit it and press OK to continue." (on IDOK goto waitforit2)
Abort: ""
FunctionEnd
Function: ".onInit"
Call "QuitIt"
ClearErrors
ReadRegStr $R0 HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\BitTorre
nt\UninstallString
StrCmp "$R0" "" equal=done, nonequal=
MessageBox: 49: "Another version of BitTorrent is already installed.

Click `OK` to remove the already installed version and continue installing this
version.

Click `Cancel` to cancel this installation." (on IDOK goto uninst)
Abort: ""
ExecWait: "$R0 _?=$INSTDIR /S" (->;)
IfErrors ?no_remove_uninstaller:
Goto: endofuninst
MessageBox: 0: "Uninstallation failed. Aborting."
Abort: ""
FunctionEnd
Section: "Install"
Call "IsUserAdmin"
Pop: $R0
StrCmp "$R0" "false" equal=abortinstall, nonequal=continueinstall
MessageBox: 0: "You must have Administrator privileges to install BitTorrent."
Goto: endofinstall
SetOutPath: "$INSTDIR"
WriteUninstaller: "$INSTDIR\uninstall.exe"
File: "dist\*.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
   /oname=outfile one_file_only)
Error in script "bittorrent.nsi" on line 168 -- aborting creation process

F:\downloads\BitTorrent-4.0.1>

好像是py2exe出了问题,没有生成exe文件。请大牛帮忙看一下,谢谢~~
在cmd中执行python winsetup.py py2exe,结果如下:


F:\BitTorrent-4.0.1>python winsetup.py py2exe
running py2exe
*** searching for required modules ***
Traceback (most recent call last):
  File "winsetup.py", line 48, in <module>
    ("images\\logo", glob.glob("images\\logo\\*png")) ],
  File "c:\python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "c:\python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "c:\python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 223, in run
    self._run()
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 274, in _run
    self.find_needed_modules(mf, required_files, required_modules)
  File "C:\Python25\Lib\site-packages\py2exe\build_exe.py", line 1189, in find_n
eeded_modules
    mf.import_hook(mod)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 649, in import_hook
    return Base.import_hook(self,name,caller,fromlist)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 130, in import_hook
    q, tail = self.find_head_package(parent, name)
  File "C:\Python25\Lib\site-packages\py2exe\mf.py", line 184, in find_head_pack
age
    raise ImportError, "No module named " + qname
ImportError: No module named gobject

F:\BitTorrent-4.0.1>
好象是还差文件,比如raise ImportError, "No module named " + qname 就是没有找到named这个模块或者文件。
gobject模块没有 这个应该是pyGtk的基类