Giter Site home page Giter Site logo

Comments (3)

dicej avatar dicej commented on May 24, 2024

Hi @eliabieri. Thanks for reporting this.

I just opened #32, which should fix the panic. I'll publish a 0.4.3 release with the fix soon.

Also, you'll need to rename widget/widget.py to something else (e.g. widget/app.py) because componentize-py gets confused when there's two widget modules in the path (the one you wrote and the one that gets generated from widget.wit).

With both of the above changes, I was able to build the component successfully. I haven't tried running it yet, since I'm not sure how to set up the appropriate host environment. If you have trouble with that, please let me know how to reproduce it, and I'll be happy to help debug.

from componentize-py.

dicej avatar dicej commented on May 24, 2024

One more thing: you might need to add a from widget import types line to your code. See https://github.com/bytecodealliance/componentize-py#known-limitations for details.

from componentize-py.

eliabieri avatar eliabieri commented on May 24, 2024

Thank you, @dicej. ✨
Thanks to your superfast and detailed response, I was now able to build the component.

The component cannot be instantiated yet in my setup, but that most likely another issue.
Going to resolve this issue and open up another one if other problems arise.

from componentize-py.

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.