Hi,
i had this error when building cx_freeze with latest VC2010 SP1
and to get around it u have to edit setup.py file before build and change
line 78
extraArgs = ext.extra_link_args or []
to
extraArgs = ext.extra_link_args or ['/MANIFEST']
then setup.py install will work
On Mon, Dec 9, 2013 at 9:04 AM, Tiago Macarios <tiagomacar...@gmail.com>wrote:
> I am trying to use cx_freeze to freeze some windows services, but it has
> been a bit tricky.
>
> Trying it with the sample service script that comes with cx_freeze I got:
>
> running build_exe
> Traceback (most recent call last):
> File "setup.py", line 30, in <module>
> options=options
> File "C:\Python27\lib\site-packages\cx_Freeze\dist.py", line 365, in
> setup
> distutils.core.setup(**attrs)
> File "C:\Python27\lib\distutils\core.py", line 152, in setup
> dist.run_commands()
> File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
> self.run_command(cmd)
> File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
> cmd_obj.run()
> File "C:\Python27\lib\site-packages\cx_Freeze\dist.py", line 234, in run
> metadata = metadata)
> File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 108, in
> __init
> __
> self._VerifyConfiguration()
> File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 485, in
> _Verif
> yConfiguration
> executable._VerifyConfiguration(self)
> File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 675, in
> _Verif
> yConfiguration
> freezer._GetBaseFileName(self)
> File "C:\Python27\lib\site-packages\cx_Freeze\freezer.py", line 204, in
> _GetBa
> seFileName
> raise ConfigError("no base named %s", name)
> cx_Freeze.freezer.ConfigError: no base named Win32Service
>
> Then I found this thread <http://goo.gl/9FNo1Q> that says that support
> for pyhton 3 is not yet available. Looking at the source code it seems like
> it is still the case. So I installed python 2.7, downloaded cx_freeze and
> gave it another try. Still the same error.
> So I had another look at the source code and it seems like to use the
> services feature you need to download cx_Logging AND compile both side by
> side. So I tried that and now I get the error below.
>
> I never had any problem with cx_freeze and it seems like I am approaching
> it the wrong way. Can someone give me pointers about the status of this, or
> instructions?
>
> running build
> running build_py
> running build_ext
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.exe /c
> /nolo
> go /Ox /MD /W3 /GS- /DNDEBUG -Ibuild\temp.win-amd64-2.7 -IE:\cx_Logging
> -Ic:\Pyt
> hon27\include -Ic:\Python27\PC /Tcsource/bases/Console.c
> /Fobuild\temp.win-amd64
> -2.7\Release\source/bases/Console.obj
> Console.c
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe
> /nolog
> o /INCREMENTAL:NO /LIBPATH:c:\Python27\libs
> /LIBPATH:c:\Python27\PCbuild\amd64 b
> uild\temp.win-amd64-2.7\Release\source/bases/Console.obj
> /OUT:build\lib.win-amd6
> 4-2.7\cx_Freeze\bases\Console.exe
> /MANIFESTFILE:build\temp.win-amd64-2.7\Release
> \source/bases\Console.exe.manifest
> c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64\mt.exe -nologo
> -mani
> fest build\temp.win-amd64-2.7\Release\source/bases\Console.exe.manifest
> -outputr
> esource:build\lib.win-amd64-2.7\cx_Freeze\bases\Console.exe;1
>
> build\temp.win-amd64-2.7\Release\source/bases\Console.exe.manifest :
> general err
> or c1010070: Failed to load and parse the manifest. The system cannot find
> the f
> ile specified.
> error: command 'mt.exe' failed with exit status 31
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users