| View previous topic :: View next topic |
| Author |
Message |
kotakotakota n00b

Joined: 01 Feb 2010 Posts: 10
|
Posted: Mon Feb 08, 2010 4:19 am Post subject: Running Blender 2.5? |
|
|
Hi, I decided that I wanted to compile Blender 2.5 by hand before writing an Ebuild for it to update to the latest SVN. However, every time I try to run it, I get the following error:
| Code: | found bundled python: /home/kota/Desktop/install/linux2/.blender/python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8
Aborted
|
I have looked through BlenderArtists, and apparently, this is a fairly common issue, however the solution of copying over /usr/lib/python3.1 to blender/.blender/python/lib did not seem to do anything for me.
Thanks! |
|
| Back to top |
|
 |
FishB8 l33t


Joined: 17 Mar 2003 Posts: 806
|
Posted: Tue Feb 09, 2010 5:08 am Post subject: |
|
|
Check your python config in your scons setup.
| Code: | BF_PYTHON = '/usr'
BF_PYTHON_LIBPATH = '${BF_PYTHON}/lib'
BF_PYTHON_VERSION = '3.1'
WITH_BF_STATICPYTHON = False
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'
BF_PYTHON_LIB = 'python${BF_PYTHON_VERSION}' #BF_PYTHON+'/lib/python'+BF_PYTHON_VERSION+'/config/libpython'+BF_PYTHON_VERSION+'.a'
BF_PYTHON_LINKFLAGS = ['-Xlinker', '-export-dynamic']
BF_PYTHON_LIB_STATIC = '${BF_PYTHON}/lib/libpython${BF_PYTHON_VERSION}.a'
|
_________________ "...as we enjoy great advantages from the inventions of others, we should be glad of an opportunity to serve others by any invention of ours, and this we should do freely and generously." -Benjamin Franklin |
|
| Back to top |
|
 |
yinrunning Tux's lil' helper


Joined: 13 Nov 2005 Posts: 110 Location: KC,MO,USA
|
Posted: Wed Apr 14, 2010 8:22 pm Post subject: |
|
|
kota, did you ever get this working, and what's the status on the ebuild for it? I'd really like to give 2.5 a spin, but I'm thinking waiting till after the Durian changes get merged might be a better plan. _________________ A person is smart.
People are dumb, panicky, dangerous animals and you know it.
geekery |
|
| Back to top |
|
 |
jsn n00b

Joined: 26 Dec 2005 Posts: 70 Location: Finland
|
Posted: Wed Apr 14, 2010 9:35 pm Post subject: |
|
|
| yinrunning wrote: | | kota, did you ever get this working, and what's the status on the ebuild for it? I'd really like to give 2.5 a spin, but I'm thinking waiting till after the Durian changes get merged might be a better plan. |
My solution so far has being: Take the binary from blender website, unpack and run it from users own folder example: /home/user/blender25/blender. |
|
| Back to top |
|
 |
yinrunning Tux's lil' helper


Joined: 13 Nov 2005 Posts: 110 Location: KC,MO,USA
|
Posted: Thu Apr 15, 2010 7:15 pm Post subject: |
|
|
Hrm.
| Code: | ~/blender25/blender-2.5-alpha2-linux-glibc27-i686 $ ./blender
./blender: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory |
I know that that got hosed by a firefox update a couple months back and I had to update quite a lot of packages. _________________ A person is smart.
People are dumb, panicky, dangerous animals and you know it.
geekery |
|
| Back to top |
|
 |
jsn n00b

Joined: 26 Dec 2005 Posts: 70 Location: Finland
|
Posted: Thu Apr 15, 2010 11:13 pm Post subject: |
|
|
| Code: | ~/blender25/blender-2.5-alpha2-linux-glibc27-i686 $ ./blender
./blender: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory |
I had same problem, can't recall exactly what package helped out but it may have being: media-libs/jpeg I seem to have 6b-r9 and 8a installed. The 6b probably brings the libjpeg.so.62 into system. ~amd64 here. |
|
| Back to top |
|
 |
Dragonlord Guru


Joined: 22 Aug 2004 Posts: 327 Location: Switzerland
|
Posted: Sun May 02, 2010 6:51 pm Post subject: |
|
|
Tried to compile blender-2.5 myself (as I can't use the ebuild here). I ran into a problem I could not figure out a cause/cure for yet. Running blender works but all headers are empty and the console contains this (long list cut down to what seems important):
| Code: | found bundled python: /opt/progs/blender-2.5/install/linux2/.blender/python
ERROR: bpy_import_main_set() was not called before running python. this is a bug.
(^repeated hundreds of times... then stuff like this multiple times)
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found. |
Any ideas what could be wrong? Latest SVN. _________________ Leader and Head Programmer: Epsylon, Drag[en]gine and others |
|
| Back to top |
|
 |
cinmay n00b

Joined: 22 Nov 2007 Posts: 2
|
Posted: Sat May 22, 2010 9:59 am Post subject: |
|
|
I got it working!!! Blender 2.5 from svn.
I deleted the old install and build folders then removed the .blender/python folder
1. Emerge the latest version of python 3.1 (Do NOT change your default python version with eselect)
2. Clean up the old builds
| Code: | blender $ rm ../install/ rm ../build -rfv
blender $ scons -j9
blender $ cd ../install/linux2/ |
3. Get the anoying error
| Code: | linux2 $ ./blender
found bundled python: /home/yourUserName/work/blenderSvnTrunk/install/linux2/.blender/python
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module named encodings.utf_8 |
4. After each time you build it with scons remove the .blender/python foulder
| Code: | linux2 $ rm .blender/python -rfv
linux2 $ ./blender |
Enjoy!  |
|
| Back to top |
|
 |
nenemsis5 n00b

Joined: 23 Oct 2007 Posts: 44
|
Posted: Tue Aug 31, 2010 1:59 pm Post subject: |
|
|
| is this ebuild anywhere in a overlay? |
|
| Back to top |
|
 |
AaronPPC Guru

Joined: 29 May 2005 Posts: 510 Location: Tucson, AZ
|
Posted: Tue Aug 31, 2010 7:22 pm Post subject: |
|
|
There isn't one in an overlay that I'm aware of, but there is an ebuild in bugzilla. _________________ --Aaron
"All the pieces matter." --Freeman |
|
| Back to top |
|
 |
|