BlenderVR / source

Blender Virtual Reality Main Code
52 stars 21 forks source link

[bugfix] cannot perform relative import #28

Closed jmespadero closed 9 years ago

jmespadero commented 9 years ago

This is a bugfix proposed to solve next error:

2015-03-24 15:54:54,309 Invalid import of module "blender-vr/modules/blendervr/processor/default.py" [...] 2015-03-24 15:54:54,312 File "blender-vr/modules/blendervr/processor/default.py", line 39, in 2015-03-24 15:54:54,312 from .. import * 2015-03-24 15:54:54,312 SystemError: Parent module '' not loaded, cannot perform relative import 2015-03-24 15:54:54,312 2015-03-24 15:54:54,313 ***

I got this error while loading a .blend simulation file which has not an associated .processor.py file. So, blender-vr will try to load the file modules/blendervr/processor/default.py as processor.

jmespadero commented 9 years ago

This error happened in Linux (linuxmint mate 64 bits) with python 3.4.0

dfelinto commented 9 years ago

Thanks, I think I never use the default processor file

bfgkatz commented 9 years ago

Something to think about, when it is the “default”.

-Brian FG Katz

LIMSI-CNRS

De : Dalai Felinto [mailto:notifications@github.com] Envoyé : mardi 24 mars 2015 22:43 À : BlenderVR/blender-vr Objet : Re: [blender-vr] [bugfix] cannot perform relative import (#28)

Thanks, I think I never use the default processor file

— Reply to this email directly or view it on GitHub https://github.com/BlenderVR/blender-vr/pull/28#issuecomment-85705684 .Image supprimée par l'expéditeur.

dfelinto commented 9 years ago

The default is supposed to be the fallback when you don't specify a processor file.

jmespadero commented 9 years ago

That's right, this file is used as fallback. But it is usual that a new user will try some of his own blend files before of read the manual.