Ursina is successfully imported, but ursina.Ursina
from ursina import *
app = Ursina()
Running this code results in the following error:
NameError: name 'Ursina' is not defined
I wondered what is defined and tried print(dir(ursina))
. The output is:
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__']
Nothing seemingly more helpful under these, but I can share their methods and properties as well if you'd like.
Tried uninstalling and reinstalling Ursina and the dependencies. Tried using import ursina
and using ursina.Ursina()
. Tried using from ursina import Ursina
. Checked the FAQ and docs. No pip error.
In Command Line, importing doesn't work and prints package_folder: ...\Python310\lib\site-packages\ursina asset_folder: .
the first time.
However, after Ctrl + C and trying to import the second time and quite a bit of a wait, the instantiation seems to work as a blank window is opened (ursina.Ursina is defined, you can print it too). Not so long after though, it starts to not respond.
Running a Python file through Command Line, the same error is raised.
Trying with an IDE however straight up produces the same error.
Tested for Python 3.10.4 and 3.9.0 on Windows 11.