Git Product home page Git Product logo

Comments (22)

skariel avatar skariel commented on September 2, 2024

I can't reproduce this, seems to work OK with my setup (both static generated HTML and served through a websocket). So, what do you see when you load the page, how and when do you get the error, are you able to create new todo items, delete them?

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

The page loads fine but I am unable to create new to items and hence delete them , I see the following errors in the JS console (Chrome, Safari, Firefox latest on a Mac 10.9)

GET http://localhost:8080/learn.json 404 (Not Found) base.js
Uncaught ReferenceError: None is not defined VM800
Uncaught TypeError: Cannot read property 'vm' of undefined (index)

In Firefox I get a this.app is undefined....

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

It seems that this.app is undefined in all browsers

from webalchemy.

skariel avatar skariel commented on September 2, 2024

can you attach here the generated (static) HTML, I would like to compare with what I get wwith my setup

Thanks!

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

Have attached the file as static.zip.png ...just remove the png (since github doesn't allow attaching anything but images)
static zip

from webalchemy.

skariel avatar skariel commented on September 2, 2024

Hi, you attached the 'static' folder, but the generated HTML is just a file named todomvc.html placed in the examples/todomvc folder, just next to the 'static' folder which you attached

So currently I can't run your generated html app

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

todomvc html

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

Sorry I didn't read your request carefully...I've attached the file again as a png

from webalchemy.

skariel avatar skariel commented on September 2, 2024

File seems corrupted or empty, this time I cannot open it :(

Did you use a "clean" Webalchemy install? what version of Pythonium do you have?

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

todomvc html

Attached the file again...please rename to todomvc.html from the png since you can only attach images to comments on github

I used a clean webalchemy installed using:
pip -e git+https://github.com/skariel/webalchemy#egg=webalchemy
pythonium is version 0.6.2

from webalchemy.

skariel avatar skariel commented on September 2, 2024

Still can't d/l... anyway just send me the html file without compression, by mail to [email protected]

Also - did you get the file by running free_app.py?

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

I ran server.generate_static()...emailed the file to you

from webalchemy.

skariel avatar skariel commented on September 2, 2024

OK, your html contains a few "None" that should have been tranlated by Pythonium to "undefined" or "false", see attached diff with working app. These are just a few instances, I wonder how can this happen, are you using PythonJS or Pythonium? what version of Python? I've never seen this issue, could be an issue with Pythonium, maybe I can fix this, the only problem is that I can't duplicate this error...
capture

from webalchemy.

skariel avatar skariel commented on September 2, 2024

closed by mistake...

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

Well...I am on a Mac OS X Mavericks 10.9 machine ...is it possible that the platform difference is to blame?
Python is 3.4.0...It is pythonium not python-js (I was only interested in that as an option but haven't ventured that far)...Pythonium is version 0.6.2 as I reported earlier...
Have you tried with these combination of versions? Especially Python 3.4 since that may be curve balling pythonium

from webalchemy.

skariel avatar skariel commented on September 2, 2024

I never tried with Python 3.4, maybe this is the problem. I'll try it

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

It is quite possibly the problem...which version of Python 3 is it tested with? I can try that too...but since 3.4 is the future its likely we have to make it work against that

from webalchemy.

skariel avatar skariel commented on September 2, 2024

Indeed, Python 3.4 seems to cause this problem, I just tried it. I'll try to fix Pythonium (or patch it through webalchemy) to fix this

from webalchemy.

skariel avatar skariel commented on September 2, 2024

related: PyCQA/pep8-naming#10

from webalchemy.

skariel avatar skariel commented on September 2, 2024

fixed in master! please check before I package this up.

Also I'm not closing the issue since there is one more fix due to Python 3.4, as the link above suggests

from webalchemy.

eskhool avatar eskhool commented on September 2, 2024

It seems to work with this fix ...just diving into the webalchemy code to get a better handle on exactly how it works...are you at all concerned that Pythonium has been abandoned by the creator?

from webalchemy.

skariel avatar skariel commented on September 2, 2024

I'm not concerned, I'll take maintenance and development ownership. Also this functionality is mostly orthogonal to the rest of webalchemy, and not sol long ago it worked w/o any translation of Python to JS. Also PythonJS, if ported to Python3, can be plugged in easily

from webalchemy.

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.