Maniphest T35800

Blender 2.67b crashes on startup (PYTHONPATH)
Closed, Archived

Assigned To
Campbell Barton (campbellbarton)
Authored By
Jeremias Boos (wasabi_2007)
Jun 18 2013, 9:53 PM
Tags
  • BF Blender
Subscribers
Allan Fernandes (Allan_F)
Andrey O.K. (And0k)
Campbell Barton (campbellbarton)
Jeremias Boos (wasabi_2007)
Robert (IronsSouls)

Description

Duplicates: T33072

It is Basically the same as the Duplicate but I didn't know to which person I should write to reopen the ticket.

The Console output looks like this:

C:\Users\Wasi>"C:\Program Files\Blender Foundation\Blender\blender.exe"
found bundled python: C:\Program Files\Blender Foundation\Blender\2.67\python
Fatal Python error: Py_Initialize: unable to load the file system codec
File "C:\GitStack\python\lib\encodings\__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax

To change the PYTHONPATH is no option to me because this variable is used by an other program.

Event Timeline

Jeremias Boos (wasabi_2007) edited a custom field.Jun 18 2013, 9:53 PM
Campbell Barton (campbellbarton) added a comment.Jun 19 2013, 10:43 AM

If you set PYTHONPATH you have to set this to a Python version compatible with Blender.

Can you confirm that the version of Python in "C:\GitStack\python" is 3.3 ?

Jeremias Boos (wasabi_2007) added a comment.Jun 19 2013, 1:58 PM

it doesn't seem to be 3.3 more like old 2.7.2

C:\GitStack\python>python.exe -V
Python 2.7.2

Campbell Barton (campbellbarton) added a comment.Jun 19 2013, 5:10 PM

Python2.x is incompatible and has totally different API

Unfortunately the error happens within Python and they dont provide some nicer way to report the versions dont match.

closing.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jun 19 2013, 5:10 PM
Jeremias Boos (wasabi_2007) added a comment.Jun 19 2013, 9:02 PM

But it should be some how possible to use Python 2.x along 3.x because I want to run GitStack and Blender not GitStack or Blender

Andrey O.K. (And0k) added a subscriber: Andrey O.K. (And0k).Apr 3 2014, 12:49 PM

I have same problem for Blender 2.7

Andrey O.K. (And0k) added a comment.Apr 3 2014, 4:37 PM

Able to start Blender if rename Python installation dir before

Campbell Barton (campbellbarton) added a comment.Apr 3 2014, 10:48 PM

Nope its not possible, its a limitation in Python, see
http://bugs.python.org/issue2375

Campbell Barton (campbellbarton) added a subscriber: Robert (IronsSouls).
Allan Fernandes (Allan_F) added a subscriber: Allan Fernandes (Allan_F).Oct 27 2016, 5:00 AM

To solve this problem and does not change the environment system variable PYTHONPATH, I created a batch file.
SET PYTHONPATH=""
%PROGRAMFILES%\Blender Foundation\Blender\blender.exe

Campbell Barton (campbellbarton) mentioned this in D6598: Disable Python Environment Use (by default).Jan 16 2020, 11:22 AM