necaris / embedded-js-in-python-example

Sample web application demonstrating a server-side rendering use-case for embedding Javascript in Python
MIT License
8 stars 3 forks source link

Question #1

Open KaboomFox opened 9 years ago

KaboomFox commented 9 years ago

Thanks for this example. It is very cool. Do you happen to know why Pyramid's default web server has issues with PyV8? Eventually I hope do to something like this in production and I wondering the route I should take. If you have any other resources I would greatly appreciate it. Again this is really helpful. Thanks so much.

I did have a unicode error starting up the application. What version of python are you using?

Thanks again

necaris commented 9 years ago

@KaboomFox I'm afraid I don't know why Pyramid's default web server doesn't interact well with PyV8 -- my guess is that there are some issues with multithreading, as I believe the default waitress server is multithreaded and I'm fairly sure the default wsgiref server isn't.

I'm using Python 3.4 on OS X for this example -- with Python installed from Homebrew, if that's of help.

I'd be very interested to see what you manage to do in production! I've been wanted to expand this example into something a bit more useful but haven't had time so far.