Hi all,
I'm currently trying to bundle a Pylons application via py2exe,
however. I keep getting:
Traceback (most recent call last):
File "main.py", line 1, in <module>
import paste.script.serve
File "paste\script\serve.pyc", line 18, in <module>
File "paste\script\command.pyc", line 36, in <module>
File "pkg_resources.pyc", line 311, in get_distribution
File "pkg_resources.pyc", line 197, in get_provider
File "pkg_resources.pyc", line 666, in require
File "pkg_resources.pyc", line 565, in resolve
pkg_resources.DistributionNotFound: PasteScript
When I try and run the compiled application, paste is included in the
library as well as pylons and they are not in an egg format.
My current file or exceuting the python application currently looks
like this:
import paste.script.serve
import paste
import paste.script
import email
import email.mime.text
import email.mime.base
import email.mime.multipart
import email.iterators
import email.generator
import email.utils
import pylons
import setuptools
import pkg_resources
import httplib2
import routes
import weberror
import webob
import webhelpers
import beaker
try:
from email.MIMEText import MIMEText
except:
from email.mime import text as MIMEText
myserver = paste.script.serve.ServeCommand("serve")
myserver.run(["--reload", "production.ini"]
Does anyone have any advice or suggestions here?
Thanks in advance,
Olle
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.