Article View: pl.comp.lang.python
Article #28448Py2exe i Beatifullsoup
From: Parasit
Date: Fri, 31 Aug 2012 07:11
Date: Fri, 31 Aug 2012 07:11
28 lines
2256 bytes
2256 bytes
Witam,
Napisałem prosty skrypcik który pobiera różne rzeczy z sieci, głównie po http.
Znajomy poprosił mnie żebym mu go udostępnił, problem polegał na tym że nie ma i nie chce mieć zainstalowanego całego pythona. Pomyślałem że po prostu zrobię mu wersję exe, jak już z resztą kilka razy robiliśmy.
Zrobiłem prosty setup
setup(console=['StripSucker.py'])
i przy próbie wygenerowania exe dostałem:
The following modules appear to be missing
['BeautifulSoup', 'mechanize']
Przy próbie uruchomienia dostałem standardowy błąd:
Traceback (most recent call last):
File "StripSucker.py", line 5, in <module>
ImportError: No module named mechanize
Zmieniłem setup wg. instrukcji:
setup(windows=[{"script" : "StripSucker.py"}], options={"py2exe":{"includes":["BeautifulSoup", "mechanize"]}})
Różnica jest taka że wywala się już przy próbie wygenerowania exe:
raise ImportError, "No module named " + qname
ImportError: No module named BeautifulSoup
Jak to obejść??? Przypominam że mam te biblioteki i skrypt odpalany lokalnie działa prawidłowo.
Pozdrawiam
Parasit
Technical Details
Message-ID:
<e8a02bd3-fd6b-44dc-b851-34d3ed578e09@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!r1no5151qas.0!news-out.google.com!da15ni860qab.0!nntp.google.com!r1no5145qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Received: by 10.224.207.72 with SMTP id fx8mr4229252qab.2.1346397078036; Fri, 31 Aug 2012 00:11:18 -0700 (PDT) Received: by 10.52.35.104 with SMTP id g8mr1296658vdj.19.1346397078011; Fri, 31 Aug 2012 00:11:18 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin3!goblin.stu.neva.ru!news.ripco.com!news.glorb.com!r1no5151qas.0!news-out.google.com!da15ni860qab.0!nntp.google.com!r1no5145qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.python Date: Fri, 31 Aug 2012 00:11:17 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.72.230.211; posting-account=F-Uu9AoAAABBTRx9iI2VGouvU9hopdo9 NNTP-Posting-Host: 89.72.230.211 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <e8a02bd3-fd6b-44dc-b851-34d3ed578e09@googlegroups.com> Subject: Py2exe i Beatifullsoup From: Parasit <bartosz.bubak@gmail.com> Injection-Date: Fri, 31 Aug 2012 07:11:18 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit