From: Werner F. B. <wer...@fr...> - 2009-04-22 11:24:52
|
Gabriel, Gabriel Rossetti wrote: > Hello everyone, > > I am tryng to use py2exe with BeautifulSoup and simplejson. I have > already successfully used it with storm and twisted, but for some reason > py2exe does not find neither BeautifulSoup nor simplejson. I did do > something different when installing those packages, I used easy_install > as with the others I used installers. Does anyone know how to fix this? py2exe does not support compressed egg's which is what you probably installed. I do the following for sqlalchemy: use the easy_install option: -Z = always unzip And then I needed to defined sqlalchemy and setuptools in the packages. packages = ['email', 'Ft', 'kinterbasdb', 'matplotlib.numerix', 'matplotlib.afm', pytz', 'setuptools', 'sqlalchemy'] I also needed to add this to my setup.py: # egg support import pkg_resources pkg_resources.require("setuptools") # get latest version pkg_resources.require("sqlalchemy") # get latest version pkg_resources.require("pytz") # get latest version And this to my model.py (sa related): if not hasattr(sys, 'frozen'): import pkg_resources pkg_resources.require("sqlalchemy") # get latest version It might be that the above two steps are only needed as I install "multi version" when using easy_install. Werner |