[Bf-python] Can't use Python sets in Blender 2.40

Martin Poirier theeth at yahoo.com
Sat Dec 24 03:59:45 CET 2005


--- Tron Thomas <tron.thomas at verizon.net> wrote:

> I installed Blender 2.40 on Windows XP.  I get the
> following output in 
> the Blender command shell when starting up the
> program:
> Using Python version 2.4
> 'import site' failed; use -v for traceback
> 
> I also get the following output:
> Traceback (most recent call last):
>   File "Text.001", line 1, in ?
> ImportError: No module named sets
> 
> When I try to execute the following Python script:
> import sets
> set = sets.set()
> 
> I want to use sets in my export script ensure unique
> key frames.  Sets 
> worked fine in Blender 2.37.  What would cause it to
> break in the new 
> version?

sets are builtin since Python 2.4, you don't need the
sets module anymore (unless you want to make it
backward compatible with Python 2.3).

The real problem here is that Blender can't find your
installation of Python  2.4, hence the error message
at startup.

Your Pythonpath variable is probably not set
correctly, or something like that.

Martin


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




More information about the Bf-python mailing list