Page MenuHome

Network render not working in build Debug but working in Release
Closed, ArchivedPublic

Description

Windows XP ( and 7 64bit )
VC++ 2008 and cmake

I build
Debug (CMAKE_BUILD_TYPE:STRING=Debug)
and
Release (CMAKE_BUILD_TYPE:STRING=Release)

In Release i have "Network render" in menu
In Debug i don't have "Network render" in menu

In Debug in console i see:


----------
E:\Cpp\BlenderSVN\build\blender_cmake\bin>blender
Traceback (most recent call last):
File "E:\Cpp\BLENDE~1\build\BLENDE~2\bin\2.53\scripts\modules\bpy\utils.py", line 45, in _test_import
mod = __import__(module_name)
File "E:\Cpp\BLENDE~1\build\BLENDE~2\bin\2.53\scripts\io\netrender\__init__.py", line 34, in <module>
from netrender import model
File "E:\Cpp\BLENDE~1\build\BLENDE~2\bin\2.53\scripts\io\netrender\model.py", line 20, in <module>
import http, http.client, http.server, urllib
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\http\client.py", line 69, in <module>
import email.parser
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\email\parser.py", line 12, in <module>
from email.feedparser import FeedParser
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\email\feedparser.py", line 27, in <module>
from email import message
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\email\message.py", line 17, in <module>
from email import utils
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\email\utils.py", line 28, in <module>
import socket
File "E:\Cpp\BlenderSVN\build\blender_cmake\bin\python31_d.zip\socket.py", line 45, in <module>
import _socket
ImportError: No module named _socket
----------


Event Timeline

You need to extract the contents of python31_d.zip to E:\Cpp\BLENDE~1\build\BLENDE~2\bin\2.53\python\lib

This is something the CMake system doesn't do yet, our SCons does do it already.

Closing.

Nathan Letwory (jesterking) changed the task status from Unknown Status to Archived.Sep 9 2010, 7:33 AM

Bug is closed but problem exist ;)


In sconst unpack
build_files\scons\tools\Blender.py
----
exclude_re=[re.compile('.*/test/.*'),
re.compile('^config/.*'),
re.compile('^distutils/.*'),
re.compile('^idlelib/.*'),
re.compile('^lib2to3/.*'),
re.compile('^tkinter/.*')]
print "Unpacking '" + py_zip + "' to '" + py_target + "'"
unzip_pybundle(py_zip,py_target,exclude_re)
----


I create small patch to unpack in cmake
But this patch need 7z.exe (in PATH) to unpack ZIP file .
7z.exe is open source and somebody could add it to SVN.
(and change 7z.exe to relative path)

7z command:
7z.exe x -xr!test -x!config -x!distutils -x!idlelib -x!lib2to3 -x!tkinter -oDIR_OUT ZIP_FILE_TO_UNPACK.ZIP

I lost -y param ;)

-y: assume Yes on all queries

7z command:
7z.exe x -y -xr!test -x!config -x!distutils -x!idlelib -x!lib2to3 -x!tkinter -oDIR_OUT ZIP_FILE_TO_UNPACK.ZIP