some problem with scrapy and py2exe
cdd801 at gmail.com
cdd801 at gmail.com
Tue Dec 9 01:13:28 EST 2014
i want to bulit an scrapy project into an exe file with py2exe,but there is a error happened after i run the exe-file (for example 'a7cxk.exe')in the cmd ,it happened
"Traceback (most recent call last):
File "a7cxk.py", line 2, in <module>
File "scrapy\__init__.pyc", line 10, in <module>
File "pkgutil.pyc", line 591, in get_data
IOError: [Errno 2] No such file or directory: 'scrapy\\VERSION'"
Anyone can give me some tips ? thks
my setup.py:
from distutils.core import setup
import glob
setup(
console=["a7cxk.py"],
data_files=[
("config_file", glob.glob(r'D:\python\w7c_first\config_file\conf.ini'))])
then i run it in cmd:
python setup.py py2exe
More information about the Python-list
mailing list