[x3d-public] need help with import

John Carlson yottzumm at gmail.com
Mon Apr 22 22:15:26 PDT 2019


import classpath
import org.web3d.x3d.jsail.Core.X3DObject as X3D

The above doesn’t work. Message:

$ python abox.future.py
Traceback (most recent call last):
  File "abox.future.py", line 20, in <module>
    X3D0 = X3D() \
TypeError: 'module' object is not callable

$ cat org/web3d/x3d/jsail/Core/X3DObject.py
from jnius import autoclass
X3DObject = autoclass('org.web3d.x3d.jsail.Core.X3DObject')

Suggestions?

Thanks,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190423/17160d8d/attachment.html>


More information about the x3d-public mailing list