Hi,
I'm trying to package a web app using PyInstaller in order to use it
as a demo on a desktop environment. The webapp (developed using
Pylons) is usually served by Python Paste, and I'd really like to keep
using it (for simplicity reasons).

However when I try to run the packaged webapp I got an "ImportError:
No module named paste" no matter whether I add my site-packages
directory to .spec file or not (by using the --path option when
runnning Makespec.py). I highly suspect that the problem is in the way
Python Paste is actually imported.

The script I use to serve the application is as simple as:

import logging
import os, sys

log = logging.getLogger(__name__)

import paste.deploy
import paste.httpserver

def main():
    wsgi_app = paste.deploy.loadapp('config://path/to/init/file')

    try:
        paste.httpserver.serve(wsgi_app)

    except KeyboardInterrupt:
        pass

if __name__ == "__main__":
    main()

and when I look at my site-packages directory (I actually use a
virtualenv but I don't think it matters in anyway) I can see some
Paste-*-nspkg.pth that look suspicious. Maybe those .pth file change
the pathinfo, but if so they do it in a way I can't understand, at
least so late in the night :(

Any suggestion or hint to fix this issue? Would anyone be so kind to
help me?

Cheers,
Andrea

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to