I am using the same code and am getting this error: Traceback (most recent call last):
File "C:/Users/Jeanne and Phil/AppData/Local/Programs/Python/Python35-32/helloworld.py", line 3, in <module>
class HelloWorld(cocos.layer.Layer):
File "C:/Users/Jeanne and Phil/AppData/Local/Programs/Python/Python35-32/helloworld.py", line 11, in HelloWorld
File "C:\Users\Jeanne and Phil\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cocos\text.py", line 65, in __init__
super(TextElement, self).__init__()
File "C:\Users\Jeanne and Phil\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cocos\cocosnode.py", line 136, in __init__
self.camera = Camera()
File "C:\Users\Jeanne and Phil\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cocos\camera.py", line 61, in __init__
self.restore()
File "C:\Users\Jeanne and Phil\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cocos\camera.py", line 81, in restore
width, height = director.get_window_size()
File "C:\Users\Jeanne and Phil\AppData\Local\Programs\Python\Python35-32\lib\site-packages\cocos\director.py", line 554, in get_window_size
return self._window_virtual_width, self._window_virtual_height
AttributeError: 'Director' object has no attribute '_window_virtual_width'