-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile contracts on Windows machine #689
Comments
Thank @afcharliekong for report the issue! Could you share your source code? |
I also recommend use window WSL when work with algob. |
Hi @vuvoth, I've attached the source code of a new Algo Builder project with the changes made in these files,
Hope it helps. I had windows WSL installed as well when this compilation issue occured. |
Did you install
Let change it back to default value. |
Hey @vuvoth, I did have pyteal and pyyaml installed. Did a |
What's your python version (when you run |
Could you try to use Pipenv? https://algobuilder.dev/guide/README#pyteal BTW, we have just released Algo Builder v4.0. It requires Python 3.10 (this is due to PyTEAL - it's latest release requires Python 3.10). |
Hey @robert-zaremba, Also using Pipenv and these are the packages installed based on the Pipfile in the repo, |
hmm, could be related to Node... What is your version of Node.js? |
Describe the bug
I'm facing a couple of issues when using Algo Builder to compile contracts on windows machine. I've attached the screenshots as shown below.
python3
command to compile the contracts. I'm currently using anaconda python virtual environment on Windows 10. It usespython
instead.node_modules/@algo-builder/runtime/build/lib/pycompile-op.js
to usepython
instead ofpython3
.I believe issue 2 is because of the different error numbers used by nodeJS for mac and windows machines. I had to replace the
e?.errno === -2
withe?.errno === -4058
on line number 103 so that framework can detect missing generated yaml files and continue the process of compilation. The file is located in/node_modules/@algo-builder/algob/build/lib/compile.js
Possible Solution
python3
orpython
orpy
.Steps to Reproduce
yarn run algob compile
on a new Algo Builder project on Windows 10.Environment
The text was updated successfully, but these errors were encountered: