python hates me, even templates dont run

Hello everyone,

Recently I’ve picked up using blender again, making a new fresh start with 2.5 .
Also, I’ve done quite some Python programming earlier (both 2.6 and 3.1) so I thought I’d remove both of them and reinstall 3.1 so the python versions wouldn’t interfere with Blender.
Still blender is giving me a lot of errors. For example at startup, blender seems to be unable to find the _socket module, however I’ve just done a fresh python 3.1 install.
Ignoring that, I tried to run a blender python template script (operator simple) but this either passes an error or does nothing

edit:

Alright, I’ve just found out that the
2.52.0 x64 version of blender doesn’t complain about the socket module and starts up with a clean console window, however gives me with error when I try to run “operator simple”:

http://img710.imageshack.us/img710/1397/knipselk.png

While the 2.52.5 OpenMP x86 version can’t find _socket, but neither passes an error or executes the script properly

It’s so frustrating :eek: please help

Can the problem be with folder name “ALPHA2~1”?

How are you trying to run the operator?

Works fine here from the spacebar menu.

I changed the folder name so that the path contains no spaces but still no succes :frowning:

Please? I really want to do some python coding and use scripts :frowning:

umm…

Oh I’m sorry, i totally missed your post
Well, since I’m working in blender 2.5 there’s no such thing as a spacebar menu anymore, but I just pressed alt+P inside the text editor, which equals text > run python script (just like on a tutorial I recently found)

Yeah, you run it from the test editor then in 3d view hit the space bar and type in ‘Simple Operator’ (or whatever it’s called) and Bob’s your uncle…

On my tests all it did was print out stuff to the console to show it was working.

Ah, that clarifies a lot, I guess I just missed out a part of the video :o
I didn’t realize this script actually defines an operator, instead of running it

Thank Uncle.

I had been really scratching my head trying to figure out what use the bl_label was or how I could access it somewhere.

That shows me how.