# PXT Quelltext von GitHub anpassen

**URL:** <https://forum.calliope.cc/t/pxt-quelltext-von-github-anpassen/82>\
**Category:** Fragen zu MakeCode/PXT\
**Created:** [22. November 2017 um 10:38 UTC](https://forum.calliope.cc/t/pxt-quelltext-von-github-anpassen/82 "2017-11-22T10:38:35Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![AndreasB](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@AndreasB](https://forum.calliope.cc/u/AndreasB)\
**Post date:** [12. Juni 2018 um 12:46 UTC](https://forum.calliope.cc/t/pxt-quelltext-von-github-anpassen/82/10 "2018-06-12T12:46:33Z")

</div>

Hat jemand von euch schon mit dem nun neuen freigegebenen aktualisierten pxt-calliope github repository gearbeitet?

Zuerst habe ich bei mir die python Versionen einiger für yotta nötigen Pakete anpassen müssen  
pip install pip==9.0.3  
pip install pyopenssl==17.5.0  
pip install cryptography==2.1.4  
, da die Windows-Yotta Installation pip auf einen zu hohen Stand aktualisiert hatte.

Dann mußten auch die Pfade für die im Windows-Yotta Paket enthaltenen  
ninja , cmake und gcc richtig gesetzt werden.

Und die Dokumentation auf “[https://makecode.com/cli](https://makecode.com/cli)”  
weist auch noch auf die Notwendigkeit der richtigen  
Installation von SRecord(“[https://sourceforge.net/projects/srecord/files/srecord-win32/1.64/](https://sourceforge.net/projects/srecord/files/srecord-win32/1.64/)”)  
hin.

Auch der Anleitung unter “[https://github.com/Microsoft/pxt-microbit](https://github.com/Microsoft/pxt-microbit)” für das  
Bauen von pxt mußte ich genau folgen, damit ich  
dann später “pxt staticpkg” verwenden kann.

Insbesondere sind eben die typings erst durch das Festlegen  
auf den Branch **“v0”** verfügbar.

npm install -g jake  
npm install -g typings

git clone [https://github.com/microsoft/pxt](https://github.com/microsoft/pxt)  
cd pxt  
**git checkout v0**

npm install  
typings install  
jake  
cd …/

git clone [https://github.com/microsoft/pxt-calliope](https://github.com/microsoft/pxt-calliope)  
cd pxt-calliope

npm install -g pxt  
npm install  
npm link …/pxt

Wenn man in “pxt-calliope\docs\js\inference.md”  
auch noch etwas Text z.B. “#Type Inference”  
einfügt dann läuft auch das Ausführen  
von “pxt staticpkg” ‘Fehlerfrei’ ab.

Allerdings Läuft dann im mit  
dem auf “build/packaged”  
gestarteten “npm http-server”  
genau das Oben von Euch beschriebene  
Compilieren bzw. Zusammensetzen der HEX Dateien  
oder eben auch “Herunterladen” nicht.

Der Server meldet irgendwie immer  
“POST /compile/extension” Error (404): “Not found”  
und liefert eben keine hex-Datei.

Mit “pxt serve” kann ich allerdings einen lokalen  
dann auch weitestgehend fünktionierenden Server starten.

Der hat allerdings in der Adress-Zeile eine andere  
etwas komplexere Struktur.

Hat jemand eine Ahnung wo da was schief läuft?

Wird die obige Funktion im static-Server überhaupt  
gestartet? Wenn ja wo scheitert sie?  
Wenn nein warum nicht? Muß man da noch etwas  
konfigurieren?

Danke für vielleicht etwas mehr Einblicke.

Mfg

Andreas

---

_[View the full topic](https://forum.calliope.cc/t/pxt-quelltext-von-github-anpassen/82)._
