[Bf-committers] [Bf-python] Blender 2.54 Python API
Revue de Libre
revuedelibre at gmail.com
Sun Oct 17 19:41:58 CEST 2010
Hello,
Here is a way to reproduce my problem ( see tgz in attachment ) with blender
console :
On my console ( Ubuntu 10.04 ) :
$python3.1
> Python 3.1.2 (r312:79147, Apr 15 2010, 12:35:07)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.version_info
> sys.version_info(major=3, minor=1, micro=2, releaselevel='final', serial=0)
> >>> sys.path.append('/home/ju/Bureau/test_blender')
> >>> import test_module
> >>>
>
--> No error
On blender console ( r32528 ) :
* Python Interactive Console 3.1.2 (r312:79147, Apr 15 2010, 12:51:29)
> [GCC 4.4.3] *
> Command History: Up/Down Arrow
> Cursor: Left/Right Home/End
> Remove: Backspace/Delete
> Execute: Enter
> Autocomplete: Ctrl+Space
> Ctrl +/- Wheel: Zoom
> Builtin Modules: bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context,
> bgl, blf, mathutils, geometry
>
> WARNING!!! Blender 2.5 API is subject to change, see API reference for
> more info.
>
> >>> import sys
> >>> sys.version_info
> sys.version_info(major=3, minor=1, micro=2, releaselevel='final', serial=0)
>
> >>> sys.path.append('/home/ju/Bureau/test_blender')
> >>> import test_module
> Traceback (most recent call last):
> File "<blender_console>", line 1, in <module>
> File "/home/ju/Bureau/test_blender/test_module/__init__.py", line 1, in
> <module>
> from . class1 import Class1
> File "/home/ju/Bureau/test_blender/test_module/class1.py", line 1, in
> <module>
> from . directory1.class2 import Class2
> File "/home/ju/Bureau/test_blender/test_module/directory1/class2.py",
> line 1, in <module>
> from .. class3 import Class3
> ImportError: No module named class3
>
> >>>
>
Can anybody tell me if this error can be reproduced -- and how to solve it ?
Thanks,
Julien
On Tue, Oct 12, 2010 at 13:26, Marc Weber <marco-oweber at gmx.de> wrote:
> What else can you try?
> - use strace grepping for the plugin name to see where the filesystem is
being accessed.
> - check known env vars such as PYTHON_SITE and PYTHONPATH (but they should
> build up the sys.path)
> - check that both python versions are the same. So check against which
pythnon
> version blender was compiled.
>
> That's all I can help. I'm not a Python guru. If you really can't find a
way to
> debug it I can try reproducing your bug here on my system.
>
> Marc Weber
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
More information about the Bf-committers
mailing list