taichi_three icon indicating copy to clipboard operation
taichi_three copied to clipboard

Attribute "Scene" not found

Open sg-first opened this issue 4 years ago • 1 comments

Hello!

I tried to install tina using pip and the code downloaded from GitHub. But when I run examples, they all reports errors:

AttributeError: module 'tina' has no attribute 'Scene'

What should I do?

Thank you!

sg-first avatar Apr 27 '21 03:04 sg-first

same issue for me, and when I added 'from tina.scene.raster import Scene', another error came out as: scene = Scene() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tina/scene/raster.py", line 14, in __init__ self.engine = tina.Engine(res) AttributeError: module 'tina' has no attribute 'Engine'

It seems to be relative with the lazy import function 'lazyguard()' in the source code. Temporarily, i simply changed the return False in site-packages/tina/lazimp.py to return True to disable lazy imports :(. Hope to get an official fix.

FangCai-fifi avatar Oct 20 '21 07:10 FangCai-fifi