Giter Site home page Giter Site logo

Error running gen2.py about evision HOT 3 CLOSED

cocoa-xu avatar cocoa-xu commented on May 31, 2024
Error running gen2.py

from evision.

Comments (3)

stefkohub avatar stefkohub commented on May 31, 2024 1

Hi @cocoa-xu thank you for you reply!
You're right, the Python version on my Nano is 3.6. I applied the changes that you've suggested but I had to modify node.value to node.n.
Now I've been able ti compile it, thank you! :)

from evision.

cocoa-xu avatar cocoa-xu commented on May 31, 2024

Hi, thanks for the reporting!

I tested the script on Python3.8 and it seems that the Python version on your Nvidia Jetson Nano is before 3.8. I'll try to install an earlier version of Python and test the gen2.py script again. For a quick workaround, you can replace the lines here with the following.

            import sys
            if sys.version_info.minor < 8:
                if type(node) is ast.Num:
                    self.expression = f'{node.value}'
                else:
                    print(type(node), "not implemented yet")
                    sys.exit(1)
            else:
                print(type(node), "not implemented yet")
                sys.exit(1)

from evision.

cocoa-xu avatar cocoa-xu commented on May 31, 2024

0dae8af should fix this issue! 🎉 Please feel free to reopen if the issue persists.

from evision.

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.