ImportError: No module named HTTPServlet

35 views
Skip to first unread message

Terrence Brannon

unread,
May 30, 2013, 3:00:31 PM5/30/13
to mun...@googlegroups.com
Hello, I downloaded muntjac from github via git clone. I then installed the prerequisites and downloaded the widget sets.

However, when I attempt to run the sampler, I am told HTTPServlet does not exist:

[~/prg/muntjac-widgets]$ sudo pip install Paste
Requirement already satisfied (use --upgrade to upgrade): Paste in /Library/Python/2.7/site-packages
Cleaning up...
[~/prg/muntjac-widgets]$ sudo pip install PasteWebKit
Requirement already satisfied (use --upgrade to upgrade): PasteWebKit in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): PasteDeploy in /Library/Python/2.7/site-packages (from PasteWebKit)
Requirement already satisfied (use --upgrade to upgrade): Paste in /Library/Python/2.7/site-packages (from PasteWebKit)
Requirement already satisfied (use --upgrade to upgrade): PasteScript in /Library/Python/2.7/site-packages (from PasteWebKit)
Cleaning up...
[~/prg/muntjac-widgets]$ muntjac --contextRoot=/Users/admin/prg/muntjac-widgets
Traceback (most recent call last):
  File "/usr/local/bin/muntjac", line 8, in <module>
    load_entry_point('Muntjac==-VERSION-', 'console_scripts', 'muntjac')()
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in load_entry_point
    return ep.load()
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Library/Python/2.7/site-packages/Muntjac-_VERSION_-py2.7.egg/muntjac/main.py", line 19, in <module>
    from muntjac.terminal.gwt.server.application_servlet import ApplicationServlet
  File "/Library/Python/2.7/site-packages/Muntjac-_VERSION_-py2.7.egg/muntjac/terminal/gwt/server/application_servlet.py", line 8, in <module>
    from muntjac.terminal.gwt.server.abstract_application_servlet import \
  File "/Library/Python/2.7/site-packages/Muntjac-_VERSION_-py2.7.egg/muntjac/terminal/gwt/server/abstract_application_servlet.py", line 32, in <module>
    from muntjac.terminal.gwt.server.paste_wsgi_servlet import PasteWsgiServlet
  File "/Library/Python/2.7/site-packages/Muntjac-_VERSION_-py2.7.egg/muntjac/terminal/gwt/server/paste_wsgi_servlet.py", line 26, in <module>
    from WebKit.HTTPServlet import HTTPServlet
ImportError: No module named HTTPServlet
[~/prg/muntjac-widgets]$ 

Richard Lincoln

unread,
May 31, 2013, 4:00:51 AM5/31/13
to mun...@googlegroups.com
sys_path_install() is supposed to make that import path valid. Try
switching the comments on lines 25 and 26.

https://github.com/rwl/muntjac/blob/master/muntjac/terminal/gwt/server/paste_wsgi_servlet.py#L25

Richard
> --
> You received this message because you are subscribed to the Google Groups
> "muntjac" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to muntjac+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages