Blender 2.70a + Lubuntu 14.04LTS Start Error

Thank you. Errors are merely warnings and needed:


if __name__ == "__main__":     register()

to run in text editor. All is well.

Bought new computer to run Blender (Lenova T410). Installed Lubuntu 14.04 LTS and Blender 2.70a. I get the following error when starting:


connect failed: No such file or directory
AL lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
found bundled python: /home/dennis/MyWork/blender-2.70a-linux-glibc211-x86_64/2.70/python

The program still appears to work, so maybe this is only a warning. But I try to run the simplest addon script in the text area and I get no response in the terminal I used to start Blender:


bl_info = {"name": "My Test Addon", "category": "Object"}
 def register():
     print("Hello World")
 def unregister():
     print("Goodbye World")

I’m new to Blender, so any help as to how debug this problem would be helpful. Thank you.

If you’re running it by using ‘Run Script’, then you’ll need to have this at the end:

if __name__ == "__main__":
    register()

You’ll only see “Hello World” printed, because unregister() won’t be called.

I wouldn’t worry too much about the warning at the start. As far as I know, I’ve always had this come up:

connect failed: No such file or directory
Read new prefs: /home/richard/.config/blender/2.70/config/userpref.blend
found bundled python: /home/richard/blender-git/build_linux/bin/2.70/python
Imported multifiles
No idea what causes it, but I’ve never had it interfere with what I’m doing either.

First one is a stupid warning Blender gives on every start. Means that it didn’t find space navigator or something. Second one is sound warning and the third one means it uses bundled python like it should.