Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto launch #7

Open
pydubreucq opened this issue Sep 24, 2013 · 5 comments
Open

Howto launch #7

pydubreucq opened this issue Sep 24, 2013 · 5 comments

Comments

@pydubreucq
Copy link

Hi,
I'm sorry but I can't use pydashie.
I don't know how I could access to web interface
Thanks by advance
Best Regards

@twoflowers
Copy link

Try adding host='0.0.0.0' to example_app.py

app.run(debug=False,
port=5000,
host='0.0.0.0',
threaded=True,
use_reloader=False,
use_debugger=True
)

@pydubreucq
Copy link
Author

Thanks I can lanch Pydashie
I have another problem when I launch, I just see the background.
I've this trace :

root@debian:/srv/pydashie/pydashie# python main.py 
Traceback (most recent call last):
  File "/usr/share/pyshared/flask/app.py", line 1518, in __call__
    return self.wsgi_app(environ, start_response)
  File "/usr/share/pyshared/flask/app.py", line 1506, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/usr/share/pyshared/flask/app.py", line 1504, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/share/pyshared/flask/app.py", line 1264, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/share/pyshared/flask/app.py", line 1262, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/share/pyshared/flask/app.py", line 1248, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/pydashie/pydashie/main.py", line 21, in javascripts
    import coffeescript
ImportError: No module named coffeescript

I'm testing on Debian Wheezy

root@debian:/srv/pydashie/build/lib.linux-x86_64-2.7/pydashie# dpkg -l | grep coffeescript
ii  coffeescript                       1.4.0-1                       all          interpreter and compiler for the CoffeeScript language
ii  libjs-coffeescript                 1.4.0-1                       all          client-side interpreter for the CoffeeScript language

My version of python is 2.7.3-4

Thanks by advance
Bye

@abulte
Copy link

abulte commented Apr 3, 2014

Bonjour Pierre-Yves,

I managed to install and run pydashie this way:

$ cd pydashie
$ virtualenv pyenv
$ . pyenv/bin/activate
$ # this will install coffeescript and other dependencies
$ pip install -r requirements.txt
$ cd pydashie
$ python main.py
$ # now you can access localhost:5000

@knightseal
Copy link

HI!
when i access the http://localhost:5000 ,some err:

File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/data/yh_test/pydashie/pydashie/main.py", line 52, in javascripts
contents = coffeescript.compile_file(path)
File "/usr/lib/python2.6/site-packages/CoffeeScript-1.0.9-py2.6.egg/coffeescript/init.py", line 109, in compile_file
return _default_compiler().compile_file(
File "/usr/lib/python2.6/site-packages/CoffeeScript-1.0.9-py2.6.egg/coffeescript/init.py", line 139, in _default_compiler
get_runtime()
File "/usr/lib/python2.6/site-packages/CoffeeScript-1.0.9-py2.6.egg/coffeescript/init.py", line 128, in get_runtime
return execjs.get()
File "/usr/lib/python2.6/site-packages/PyExecJS-1.0.4-py2.6.egg/execjs/init.py", line 63, in get
return _auto_detect()
File "/usr/lib/python2.6/site-packages/PyExecJS-1.0.4-py2.6.egg/execjs/init.py", line 95, in _auto_detect
raise RuntimeUnavailable("Could not find a JavaScript runtime.")
RuntimeUnavailable: Could not find a JavaScript runtime.

@sanderant
Copy link

Well it looks like you are running python2.6 so you would need to use scl (assuming you are on rhel/centos) to get to python27 as detailed here:
http://developerblog.redhat.com/2014/02/27/using-pythons-virtualenv-with-rhscl/
Additionally I had to install some extra packages to get the java runtime to work:
sudo yum install nodejs
sudo yum search libhttp_parser
sudo yum install http-parser
sudo yum install libuv -y

I think there are easier ways, but this got me going on centos6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants