microsoft / pxt-sample

Sample target for PXT
https://microsoft.github.io/pxt-sample/
MIT License
84 stars 147 forks source link

Cannot get the pxt-sample example to work with python #13

Open ChristopheBernard opened 1 year ago

ChristopheBernard commented 1 year ago

Installing pxt from github

$ git clone https://github.com/microsoft/pxt.git
$ cd pxt
$ git checkout c2c608fe00d35f9f4654aba4f37a7fc76660dfb7
$ npm -v
8.19.2
$ node -v
v16.18.1
$ npm install
$ npm install -g # places pxt in the path

I chose the npm, node and commit that are shown to be tested and working in https://github.com/microsoft/pxt/actions/runs/3714968823.

Works fine and passes the tests.

Installing pxt-sample from github

$ cd ../
$ git clone https://github.com/microsoft/pxt-sample.git
$ git log -1 # --> aa9ee683626716359a759c21c7090bd8189f1a95
$ cd pxt-sample
$ pxt link ../pxt
$ npm install
$ pxt serve

When starting a sample project (the square), converting the default block program to python fails:

image

Hovering says:

image

I.e. "unknown type 'Buffer' near '???'"

What is it I am doing wrong?

K00ry commented 1 year ago

I'm having the same issue. Any help would be appreciated.