[Bf-python] Blender 2.54 Python API

revuedelibre . revuedelibre at gmail.com
Wed Oct 6 16:18:24 CEST 2010


Hello,

I have a problem with an import from external python library into Blender,
with Blender svn on Ubuntu 10.04

>From my terminal :

>>> import sys
> >>> sys.version_info
> sys.version_info(major=3, minor=1, micro=2, releaselevel='final', serial=0)
> >>> import sleekxmpp
> >>>
>


>From Blender console :

>>> import sys
> >>> sys.version_info
> sys.version_info(major=3, minor=1, micro=2, releaselevel='final', serial=0)
>
> >>> import sleekxmpp
> Traceback (most recent call last):
>   File "<blender_console>", line 1, in <module>
>   File "/usr/local/lib/python3.1/dist-packages/sleekxmpp/__init__.py", line
> 11, in <module>
>     from . basexmpp import basexmpp
>   File "/usr/local/lib/python3.1/dist-packages/sleekxmpp/basexmpp.py", line
> 16, in <module>
>     from . xmlstream.handler.xmlwaiter import XMLWaiter
>   File
> "/usr/local/lib/python3.1/dist-packages/sleekxmpp/xmlstream/handler/xmlwaiter.py",
> line 8, in <module>
>     from . waiter import Waiter
>   File
> "/usr/local/lib/python3.1/dist-packages/sleekxmpp/xmlstream/handler/waiter.py",
> line 14, in <module>
>     from .. stanzabase import StanzaBase
> ImportError: No module named stanzabase
>


It seems that there is a error with syntax "from .. ", based on relative
path between files on external module.

Do you know how to resolve this error ?

Thanks & Regards,

Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20101006/b59ce92d/attachment.html>


More information about the Bf-python mailing list