sun_gui.py error using Blender 2.48 and Python 2.5.2

Hi everybody,

using the sun_gui.py Pythonscript I get following error with Blender 2.48 and Python 2.5.2:

<Type Error: unsupported operand type(s) for +: ‘NoneType’ and ‘str’>

What could have happened here? for any hint I will be thankful, looking forward to hearing from you soon.

Friendly Regards
whoehl

I just tried the latest version from the wiki (version D) sun_gui-D.py and sun-D.py with Blender 2.48a on WindowsXP and apart from it complaining about the commented degree symbol on line 426 of sun_gui-D.py it works fine for me.

http://wiki.blender.org/index.php/Sun_py

What OS and what version of the scripts are you using? You also need to be running the bug fix version of 2.48 which is 2.48a at the time of writing.


http://www.digital-air.co.uk/

… thanks for your reply.

As an operating system I am using Win XP SP2 32bit. I will doublecheck the script, download it again and get back to you afterwards.

Freindly Regards
whoehl

P.S.: … and yes, I am using Blender 2.48a.

… now I downloaded the topical version of the script and tried it again. Unfortunately with the same result.

Do you have an idea, what this line means?

<Type Error: unsupported operand type(s) for +: ‘NoneType’ and ‘str’>

For any hint I will be thankful.

whoehl

Hi whoehl,

did you tried opening in the text editor and alt+p?

This line means that an Type Error is thrown because one operand of the + operation(in this case its an concatenation) is not a string.
If you could please be so kind and post the whole traceback which should look roughly like this:

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

I may help you.

Dear all,

thanks for your contributions.

Sorry, but … how can I post the whole traceback? Can you give me a hand at this?
Do you mean edit the python file?

Thanks in advance!

whoehl

Hi there,

… sorry, I misunderstood …

Attached you will find the whole traceback

Traceback (most recent call last):
File “081209_sun_gui-D.py”, line 448, in bevent
File “081209_sun_gui-D.py”, line 322, in runit
File “081209_sun_gui-D.py”, line 303, in script_apply
TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘str’

I hope this will help you. What could be wrong there?

Please give me a sign. I am looking forward to hearing from you.

Friendly Regards
whoehl

Hi Whoehl,

It’s a bit late but if can help!

You have to set the: Script directory in File path in use preference window

Good luck…