Batavia: "Run sample.py" doesn't open new window

19 views
Skip to first unread message

Flavia B

unread,
May 17, 2016, 10:20:45 PM5/17/16
to BeeWare Users
Hi!
I just cloned Batavia (earlier today) and I am following the Tutorial on the documentation and I'm not getting the expected behaviour when I click on "Run sample.py" in the Batavia testbed.

My window sits on "Open a new web page..." and nothing happens. This is on Chrome. I also tried on Firefox and it didn't work either.
I can confirm that JavaScript is enabled on both browsers.

When I open Chrome's developer tools on Batavia's testbed I get the following error:
Traceback (most recent call last):
  File "sample.py", line 85, in <module>
  File "sample.py", line 64, in main
TypeError: Cannot convert undefined or null to object

This message also points out to an issue on VirtualMachine.js:389

See screenshot of Chrome's console opened. 

I have tried the basics (shutting the testserver down and back up, shutting computer down and up, relaunching browser) but I seen to be stuck. 

I'm running this on Mac OS X Yosemite.


Also, not sure if it's related or not:
I opened sample.py on Atom to take a look at lines 85 and 64 and I noticed that Atom is complaining about dom and native:
Unable to import 'dom' at line 1 col 1
Unable to import 'native' at line 73 col 4

Since the tutorial has no mention of any of these modules I didn't do anything about it. 

So, has anyone ran into this issue (new window not launching) or has any suggestion? I appreciate any help.
Thanks!
Flávia

Chrome_console.png

Russell Keith-Magee

unread,
May 17, 2016, 11:39:58 PM5/17/16
to beewar...@googlegroups.com
Hi Flavia,


Looks like you’ve found a bug that has slipped in along the way, but wasn’t being checked by the automated test suite.

I’ve just added a fix that restores the test server to a working condition. If you update your git checkout, the “Run sample.py” button should now work as described.

Apologies for the inconvenience, and thanks for the awesome bug report - it made it really easy to find the source of the problem.

Yours,
Russ Magee %-)

Flavia B

unread,
May 18, 2016, 11:26:21 AM5/18/16
to BeeWare Users
Yes, I just tried again now and it's working. :)
Thanks!
Reply all
Reply to author
Forward
0 new messages