# -*- coding: utf-8 -*-
print "hello"
# -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe
setup(console=['1.py'])
Traceback (most recent call last):добавил в файл boot_common.py строку import pickle, перекомпилировал.
File “C:\Python25\lib\site-packages\py2exe\boot_common.py”, line 92, in <module>
import linecache
File “linecache.pyc”, line 9, in <module>
File “os.pyc”, line 693, in <module>
File “copy_reg.pyc”, line 7, in <module>
File “types.pyc”, line 24, in <module>
File “inspect.pyc”, line 31, in <module>
File “string.pyc”, line 81, in <module>
File “re.pyc”, line 284, in <module>
AttributeError: ‘module’ object has no attribute ‘pickle’
получилась другая ошибка:
Traceback (most recent call last):в файле copy_reg.py на 7 строке:
File “C:\Python25\lib\site-packages\py2exe\boot_common.py”, line 92, in <module>
import pickle
File “pickle.pyc”, line 29, in <module>
File “types.pyc”, line 24, in <module>
File “inspect.pyc”, line 31, in <module>
File “os.pyc”, line 693, in <module>
File “copy_reg.pyc”, line 7, in <module>
ImportError: cannot import name ClassType
from types import ClassType as _ClassType