Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute "Scene" not found #42

Open
sg-first opened this issue Apr 27, 2021 · 1 comment
Open

Attribute "Scene" not found #42

sg-first opened this issue Apr 27, 2021 · 1 comment

Comments

@sg-first
Copy link

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!

@FangCai-fifi
Copy link

FangCai-fifi commented Oct 20, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants