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

Chris Want cwant at ualberta.ca
Sat Dec 24 06:04:46 CET 2005


You should install the regular version of Python
for windows and don't try to use the cygwin one. They are
very different and have different library dependencies.

Chris

Tron Thomas wrote:
> I checked and I have Python 2.4.1 installed as part of Cygwin.  I'm 
> thinking that I shouldn't need to install another version of Python, 
> however I don't know how to get Blender to use this version.  I tried 
> setting the PYTHONPATH variable to the bin directory of my Cygwin 
> installation.  That didn't work.  I assigned the variable as a user 
> variable.  I did not reboot the system afterward.  Writing a simple 
> command line program showed the variable had been applied as expected.
> 
> What else might make the Cygwin Python library work with Blender?
> 
> Campbell Barton wrote:
> 
>> Why not do a...
>> try:
>>  dummyset = set() # python 2.4
>>  del dummyset
>> except:
>>  try:
>>    improt sets
>>    set  = sets.set
>>  except:
>>    raise 'for this script to run a Blender compiled with python 2.4 or 
>> a full python 2.3 install is required.
>>
>>
>>
>>
>> Tron Thomas wrote:
>>
>>> I will try installing Python on Windows.  The thing is I think I 
>>> already have a version on there as I'm using Cygwin.
>>> Assuming the sets module is missing from the Windows version of 
>>> Python used by Blender, how difficult would it be to add it?
>>
>>
> 
> 
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python
> 




More information about the Bf-python mailing list