Problem running muntjac

83 views
Skip to first unread message

akira

unread,
Nov 25, 2011, 7:31:09 AM11/25/11
to muntjac
I wanted to run the demo server locall on my Ubuntu 10.04 64 machine
and I got this traceback. I installed mox and it worked, just to let
you know that the dependency probably has to be set

(env)root@poseidon:/media/programming/research/muntjac# muntjac
Traceback (most recent call last):
File "/media/programming/research/muntjac/env/bin/muntjac", line 8,
in <module>
load_entry_point('Muntjac==1.0.3', 'console_scripts', 'muntjac')()
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 318, in
load_entry_point
def has_metadata(name):
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 2221, in
load_entry_point
def __getattr__(self,attr):
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1954, in
load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/muntjac/main.py", line 35, in <module>
from muntjac.test.suite import main as test
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/muntjac/test/suite.py", line 4, in <module>
import muntjac.test.server.suite
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/muntjac/test/server/suite.py", line 4, in <module>
from abstract_in_memory_container_listeners \
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/muntjac/test/server/
abstract_in_memory_container_listeners.py", line 20, in <module>
from muntjac.test.server.component.abstract_listener_methods_test
import \
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/muntjac/test/server/component/
abstract_listener_methods_test.py", line 21, in <module>
import mox
ImportError: No module named mox


akira

unread,
Nov 25, 2011, 7:33:13 AM11/25/11
to muntjac
I spoke to soon, nothing happens on http://localhost:8080/sampler. My
browser is Google Chrome.

Richard Lincoln

unread,
Nov 25, 2011, 7:37:14 AM11/25/11
to mun...@googlegroups.com
On 25/11/11 12:31, akira wrote:
> I wanted to run the demo server locall on my Ubuntu 10.04 64 machine
> and I got this traceback. I installed mox and it worked, just to let
> you know that the dependency probably has to be set

The Mox dependency is specified in the tests_require section of setup.py
file. I think if you run:

$ python setup.py test

it get installed automatically.

Richard Lincoln

unread,
Nov 25, 2011, 7:38:57 AM11/25/11
to mun...@googlegroups.com
On 25/11/11 12:33, akira wrote:
> I spoke to soon, nothing happens on http://localhost:8080/sampler. My
> browser is Google Chrome.

For the sampler demo you'll need the SamplerWidgetSet and to specify the
contextRoot option. See the Quick Start section of the website for
further details.

Richard

akira

unread,
Nov 25, 2011, 7:42:31 AM11/25/11
to muntjac
Ok, I'll try that out, but it would be nice if it would install using
pip in a virtualenv

akira

unread,
Nov 25, 2011, 1:06:23 PM11/25/11
to muntjac
I'm still having problems Richard. I downoaded and unpacked the spaler
and deafult widget sets, I created a single VAADIN directory and put
the extracted from both files in the same "themes" and "widgetsets".
MY application structure looks like this:

/muntjac
/env
/VAADIN
/themes/
/base
/liferay
/reindeer
/runo
/sampler
/sampler-reindeer
....
/widgetsets
/com.vaadin.demo.sampler.gwt.SamplerWidgetSet
/ com.vaadin.demo.sampler.gwt.SamplerWidgetSet


Which file is muntjac actually supposed to call? Followinfg the
instructions, I get this:

(env)root@poseidon:/media/programming/research/muntjac# muntjac --
contextRoot=VAADIN


Traceback (most recent call last):
File "/media/programming/research/muntjac/env/bin/muntjac", line 8,
in <module>
load_entry_point('Muntjac==1.0.3', 'console_scripts', 'muntjac')()
File "/media/programming/research/muntjac/env/lib/python2.6/site-

packages/muntjac/main.py", line 118, in main
ctxapp = DirectoryApp(join(opts.contextRoot, 'VAADIN'))
File "/media/programming/research/muntjac/env/lib/python2.6/site-
packages/paste/fileapp.py", line 275, in __init__
assert os.path.isdir(self.path)
AssertionError


Thanks

Richard Lincoln

unread,
Nov 25, 2011, 3:49:18 PM11/25/11
to mun...@googlegroups.com

I think the issue it that the contextRoot option needs to point to the
parent directory of /VAADIN. This is noted on the web page. In your case
I think it should be:

--contextRoot=/path/to/muntjac

Richard

akira

unread,
Nov 25, 2011, 8:23:12 PM11/25/11
to muntjac
Ahh got it, works now. Thanks

Giuseppe Traficante

unread,
Mar 25, 2016, 8:00:45 AM3/25/16
to muntjac
Hi.
I'm newbie in muntjac,
i've installed all and it seems works http://localhost:8080/sampler
but I don't understood where put the hello world code to be executed.

here is my tree

.
├── VAADIN
│   ├── README
│   ├── themes
│   └── widgetsets
├── web_venv
│   ├── bin
│   ├── include
│   ├── lib
│   ├── local
│   └── pip-selfcheck.json
├── wsgi.py
└── wsgi.pyc


when i run the command

muntjac --contextRoot=/path/to/root

starts an instance of web browser on http://localhost:8080

Giuseppe Traficante

unread,
Mar 29, 2016, 2:41:34 AM3/29/16
to muntjac
Ok, I've understood how write muntjac hello world app,
only another problem, this site is unreacheable


i'm wrong something?

Giuseppe Traficante

unread,
Mar 30, 2016, 5:58:22 AM3/30/16
to muntjac
Hello there is someone ?
Reply all
Reply to author
Forward
0 new messages