microsoft / microsoft/pxt

python mode can't work: unknown type 'Buffer' near '???'

Open
#8,560 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

I fork the pxt-sample project to implement my own application
It works well when i use javascript,
but when i use the python,every code will report the error:'unknown type 'Buffer' near '???''
my pxt-core version is 7.3.4 and i work on a macBook big sur 11.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem in the forked pxt-sample project using pxt-core 7.3.4 on Python mode, then compare it with the working JavaScript mode. Start with the reported unknown type 'Buffer' error and determine the smallest Python example that triggers it; done means the example compiles without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.