Giter Club home page Giter Club logo

Comments (11)

afcharliekong avatar afcharliekong commented on July 1, 2024 1

Hi @vuvoth, I've attached the source code of a new Algo Builder project with the changes made in these files,

node_modules/@algo-builder/runtime/build/lib/pycompile-op.js (lines 85, 89)
node_modules/@algo-builder/algob/build/lib/compile.js (lines 103)

Hope it helps.

I had windows WSL installed as well when this compilation issue occured.

algo-builder.zip

from algo-builder.

vuvoth avatar vuvoth commented on July 1, 2024

Thank @afcharliekong for report the issue! Could you share your source code?

from algo-builder.

vuvoth avatar vuvoth commented on July 1, 2024

I also recommend use window WSL when work with algob.

from algo-builder.

vuvoth avatar vuvoth commented on July 1, 2024

I had windows WSL installed as well when this compilation issue occured.

Did you install pyteal and pyyaml before run compile, @afcharliekong ?

I had to replace the e?.errno === -2 with e?.errno === -4058 on line number 103 so that framework can detect missing generated yaml files and continue the process of compilation.

Let change it back to default value.

from algo-builder.

afcharliekong avatar afcharliekong commented on July 1, 2024

Hey @vuvoth, I did have pyteal and pyyaml installed. Did a pip list to verify this.

Screenshot 2022-05-21 at 12 49 48 PM

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 1, 2024

What's your python version (when you run python)? It must be 3.9 or later , latest PyTEAL supports only Python 3.10 in fact, which will be required in our upcoming release (algo-builder v4.0).

from algo-builder.

afcharliekong avatar afcharliekong commented on July 1, 2024

I'm running python version 3.9.12 on my anaconda virtual environment.

image

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 1, 2024

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).

from algo-builder.

afcharliekong avatar afcharliekong commented on July 1, 2024

Hey @robert-zaremba,

I've switched to Python 3.10
python310

Also using Pipenv and these are the packages installed based on the Pipfile in the repo,
pip-packages

Tried to setup a clean installation using v4.0
algobuilder4

And there's a new error instead =(
js-error

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 1, 2024

hmm, could be related to Node... What is your version of Node.js? node --version? We require v16 or later.

from algo-builder.

afcharliekong avatar afcharliekong commented on July 1, 2024

I'm using node v16.15.0

node

from algo-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.