Page MenuHome

Python error on startup
Closed, ArchivedPublic

Description

--- Operating System, Graphics card ---
Win XP SP3, Nvidia GeForce GT 440

--- Blender version with error, and version that worked ---
2.67b

--- Short description of error ---
Upon startup of Blender, a Python script error appears (see attached).
This may be related to an earlier Python script problem reported earlier. It appears to be a compatibility issue between Blender and Python 3.3.

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
Run Blender


Event Timeline

Did you install Python 3.3.0, 3.3.1, 3.3.2, ..? Blender uses 3.3.0 at moment, maybe it's incompatible with the version you installed.

This is not the first time the error has been reported (if you seach online others had the same error).

From what I can tell this is some incompatibility in blenders python and the one on your system - though the name suggests you have python3.3.

importlib._bootstrap.new_module Is apart of python3, so if it fails to load --- something suspicious is going on.

This is out of our control, can only suggest to...
- Remove, Re-install Python3.3
- Un-set the PYTHONPATH
...or if you want to keep PYTHONPATH for other apps, run blender with PYTHONPATH removed.

Interested to know what causes this problem so leaving the report open, but doubt this is something we can fix.

Python version is 3.3.2. I need PYTHONPATH set for some mapping software I use. How does one go about disabling PYTHONPATH just for Blender, without disrupting use for the other applications?

Following your suggestion, I removed Python33 and re-installed it. I also removed the PYTHONPATH variable. That seemed to correct the problem...
The issue regarding PYTHONPATH remains, given that other applications that require the variable no longer work.

Its regrettable that this fails, but the bottom line is that we consider setting PYTHONPATH advanced functionality for devs who know what thay do and are ok to troubleshoot any compatibility issues.

If you want to have PYTHONPATH set, make a *.bat file to launch blender which unsets PYTHONPATH before running. (lots of info online about manipulating env vars)

closing

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jul 1 2013, 2:53 AM