Skip to content

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

@ChristopheBernard

Description

@ChristopheBernard

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions