Page 1 of 1

Building Blender 2.5 python zip error in blender.py

Posted: Wed Apr 21, 2010 8:46 pm
by MicahN
Hello everyone i am having a problem compiling the latest svn trunk using scons and visual studios 9. im running windows 7 and have successfully compiled 2.5 on this computer before but i recently had to reformat and am now running into problems.


Error:

Code: Select all

4217: locally defined symbol __iob imported in function _output_message
libpng_st.lib(pngerror.o) : warning LNK4049: locally defined symbol __iob imported
libpng_st.lib(pngwutil.o) : warning LNK4049: locally defined symbol __iob imported
libpng_st.lib(pngrutil.o) : warning LNK4049: locally defined symbol __iob imported
Trying to remove existing py bundle.
Unpacking '../lib/windows/release/python31.zip' to '..\install\win32-vc/.blender/python/lib/'
scons: *** [C:\Blender-2_5-svn\build\bin\blender.exe] TypeError : __init__() takes at most 4 arguments (5 given)
Traceback (most recent call last):
  File "C:\Blender 2.5 svn\blender\scons\scons-local-1.2.0.d20090223\SCons\Action.py", line 1041, in execute
  File "C:\Blender 2.5 svn\blender\tools\Blender.py", line 470, in WinPyBundle
  File "C:\Blender 2.5 svn\blender\tools\Blender.py", line 423, in unzip_pybundle
  File "C:\Blender 2.5 svn\blender\tools\Blender.py", line 355, in __init__
TypeError: __init__() takes at most 4 arguments (5 given)
scons: building terminated because of errors.

user-config.py

Code: Select all

BF_BUILDDIR = r'..\build'
WITH_BF_FFMPEG = True
WITH_BF_OPENAL = True
WITH_BF_QUICKTIME = False
WITH_BF_GAMEENGINE = True
WITH_BF_PLAYER = False # set this to True whenever the player has been ported properly
WITH_BF_JACK = False
WITH_BF_SDL = True
WITH_BF_ICONV = True
WITH_BF_COLLADA = False
WITH_BF_FFTW3 = False
WITH_BUILDINFO = True
BF_DEBUG = False
BF_NUMJOBS = 3

anyone have any clue as to what is going on?

i have tried reinstalling python 2.6 and checking out a clean trunk but nothing has worked.

if you need anymore info just ask

thanks in advance :)

Micah.

Posted: Thu Apr 22, 2010 12:28 am
by stiv
Which version of python are you using to run scons?

Posted: Thu Apr 22, 2010 12:45 am
by MicahN
the output that you see here was run with 2.6.

i have also just tried running it with 3.1 and it gives the same error.

i also changed the root folder(blender 2.5 svn) to blender-2_5-svn thinking that maybe it's interpreting the extra white spaces as new inputs but that also did not change anything.




Edit:

i just commented out the code in the blender.py file that the error was coming from(the code that removes the python lib in the install folder and then unzips the python31.zip into the same folder that it cleaned out) and unzipped the python31.zip file into the folder manually and it built successfully.


im going to mess with the code to get it working again though...has anyone else had any troubles with this?

thanks,

Micah

Posted: Sun Feb 13, 2011 12:38 pm
by batFINGER
I have just run into the same problem... so I thought I'd bump this one rather than starting a newie.

Was building fine using scons until I made a build using cmake (a different build dir) ... both using vc9 c++ and python 2.6.2

Since then the scons build breaks after the unpacking python3.1.zip.

I can manually copy in the scripts folder and everything works ok .. but it's pretty annoying ..

Any help most appreciated.

Posted: Thu Feb 24, 2011 2:59 pm
by jesterKing
Python 2.6.2 has a bug with unzipping the python files. Upgrade to Python 2.6.4.

/Nathan