Форум сайта python.su
Друзья! Я уже устал, у меня ничего не получается.
Код простой, то есть надо-то всего лишь подключить модуль pygame, инициализировать его и деинициализировать
#HelloWord.py import pygame pygame.init() pygame.quit()
python cxfreeze HelloWord.py --target-dir dist_ > log.txt
>HelloWord.exe Traceback (most recent call last): File "C:\Python31\lib\site-packages\cx_Freeze\initscripts\Console3.py", line 27, in <module> exec(code, m.__dict__) File "HelloWord.py", line 1, in <module> File "C:\Python31\lib\site-packages\pygame\__init__.py", line 95, in <module> from pygame.base import * File "ExtensionLoader_pygame_base.py", line 16, in <module> AttributeError: 'NoneType' object has no attribute 'modules'
Missing modules:
? AppKit imported from pygame.mac_scrap
? Foundation imported from pygame.mac_scrap
? Numeric imported from pygame
? OpenGL.GL imported from pygame
? Py25Queue imported from pygame.threads
? Queue imported from pygame.threads
? _arraysurfarray imported from pygame.surfarray
? _winreg imported from pygame.sysfont
? cStringIO imported from pygame.compat
? copy_reg imported from pygame
? multiprocessing._multiprocessing imported from multiprocessing.forking
? numpy imported from pygame._numpysurfarray
? pkg_resources imported from pygame.pkgdata
? pygame.Rect imported from pygame
? pygame._numericsndarray imported from pygame.sndarray
? pygame._numericsurfarray imported from pygame.surfarray
? pygame.scrap imported from pygame
? pygame.sdlmain_osx imported from pygame
#
# These methods are called internally by pygame.scrap
#
from AppKit import *
from Foundation import *
import sys
Офлайн
Не по теме, но важно: используйте минимум 3.4 версию питона - это общее правило, с этой версии третья ветка считается адекватной
Офлайн
Я попробовал и у меня все заработало
(test) john_16@Linux-home /tmp/test/test $ ll итого 4 drwxr-xr-x 2 john_16 john_16 26 сент. 15 21:48 ./ drwxr-xr-x 7 john_16 john_16 127 сент. 15 21:48 ../ -rw-r--r-- 1 john_16 john_16 42 сент. 15 21:47 helloworld.py (test) john_16@Linux-home /tmp/test/test $ cat helloworld.py import pygame pygame.init() pygame.quit() (test) john_16@Linux-home /tmp/test/test $ python helloworld.py (test) john_16@Linux-home /tmp/test/test $ cxfreeze helloworld.py creating directory /tmp/test/test/dist copying /tmp/test/lib/python3.4/site-packages/cx_Freeze-4.3.4-py3.4-linux-x86_64.egg/cx_Freeze/bases/Console -> /tmp/test/test/dist/helloworld copying /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0 -> /tmp/test/test/dist/libpython3.4m.so.1.0 writing zip file /tmp/test/test/dist/helloworld Name File ---- ---- m __future__ /tmp/test/lib/python3.4/__future__.py m __main__ helloworld.py m _ast m _bootlocale m _bz2 /tmp/test/lib/python3.4/lib-dynload/_bz2.cpython-34m-x86_64-linux-gnu.so m _codecs m _codecs_cn /tmp/test/lib/python3.4/lib-dynload/_codecs_cn.cpython-34m-x86_64-linux-gnu.so m _codecs_hk /tmp/test/lib/python3.4/lib-dynload/_codecs_hk.cpython-34m-x86_64-linux-gnu.so m _codecs_iso2022 /tmp/test/lib/python3.4/lib-dynload/_codecs_iso2022.cpython-34m-x86_64-linux-gnu.so m _codecs_jp /tmp/test/lib/python3.4/lib-dynload/_codecs_jp.cpython-34m-x86_64-linux-gnu.so m _codecs_kr /tmp/test/lib/python3.4/lib-dynload/_codecs_kr.cpython-34m-x86_64-linux-gnu.so m _codecs_tw /tmp/test/lib/python3.4/lib-dynload/_codecs_tw.cpython-34m-x86_64-linux-gnu.so m _collections m _collections_abc m _datetime m _dummy_thread m _functools m _hashlib /tmp/test/lib/python3.4/lib-dynload/_hashlib.cpython-34m-x86_64-linux-gnu.so m _heapq m _imp m _io m _locale m _lzma /tmp/test/lib/python3.4/lib-dynload/_lzma.cpython-34m-x86_64-linux-gnu.so m _md5 m _multibytecodec /tmp/test/lib/python3.4/lib-dynload/_multibytecodec.cpython-34m-x86_64-linux-gnu.so m _opcode /tmp/test/lib/python3.4/lib-dynload/_opcode.cpython-34m-x86_64-linux-gnu.so m _operator m _osx_support /usr/lib/python3.4/_osx_support.py m _posixsubprocess m _random m _sha1 m _sha256 m _sha512 m _socket m _sre m _stat m _string m _strptime m _struct m _sysconfigdata /usr/lib/python3.4/_sysconfigdata.py m _sysconfigdata_m /tmp/test/lib/python3.4/plat-x86_64-linux-gnu/_sysconfigdata_m.py m _thread m _threading_local m _warnings m _weakref m _weakrefset m abc m argparse m ast /usr/lib/python3.4/ast.py m atexit m base64 m binascii m builtins m bz2 m calendar m codecs P collections m collections.abc m contextlib m copy m copyreg m cx_Freeze__init__ /tmp/test/lib/python3.4/site-packages/cx_Freeze-4.3.4-py3.4-linux-x86_64.egg/cx_Freeze/initscripts/Console.py m datetime m dis /usr/lib/python3.4/dis.py P distutils /tmp/test/lib/python3.4/distutils/__init__.py m dummy_threading P email /usr/lib/python3.4/email/__init__.py m email._encoded_words /usr/lib/python3.4/email/_encoded_words.py m email._header_value_parser /usr/lib/python3.4/email/_header_value_parser.py m email._parseaddr /usr/lib/python3.4/email/_parseaddr.py m email._policybase /usr/lib/python3.4/email/_policybase.py m email.base64mime /usr/lib/python3.4/email/base64mime.py m email.charset /usr/lib/python3.4/email/charset.py m email.contentmanager /usr/lib/python3.4/email/contentmanager.py m email.encoders /usr/lib/python3.4/email/encoders.py m email.errors /usr/lib/python3.4/email/errors.py m email.feedparser /usr/lib/python3.4/email/feedparser.py m email.generator /usr/lib/python3.4/email/generator.py m email.header /usr/lib/python3.4/email/header.py m email.headerregistry /usr/lib/python3.4/email/headerregistry.py m email.iterators /usr/lib/python3.4/email/iterators.py m email.message /usr/lib/python3.4/email/message.py m email.parser /usr/lib/python3.4/email/parser.py m email.policy /usr/lib/python3.4/email/policy.py m email.quoprimime /usr/lib/python3.4/email/quoprimime.py m email.utils /usr/lib/python3.4/email/utils.py P encodings m encodings.aliases m encodings.ascii m encodings.base64_codec m encodings.big5 m encodings.big5hkscs m encodings.bz2_codec m encodings.charmap m encodings.cp037 m encodings.cp1006 m encodings.cp1026 m encodings.cp1125 m encodings.cp1140 m encodings.cp1250 m encodings.cp1251 m encodings.cp1252 m encodings.cp1253 m encodings.cp1254 m encodings.cp1255 m encodings.cp1256 m encodings.cp1257 m encodings.cp1258 m encodings.cp273 m encodings.cp424 m encodings.cp437 m encodings.cp500 m encodings.cp65001 m encodings.cp720 m encodings.cp737 m encodings.cp775 m encodings.cp850 m encodings.cp852 m encodings.cp855 m encodings.cp856 m encodings.cp857 m encodings.cp858 m encodings.cp860 m encodings.cp861 m encodings.cp862 m encodings.cp863 m encodings.cp864 m encodings.cp865 m encodings.cp866 m encodings.cp869 m encodings.cp874 m encodings.cp875 m encodings.cp932 m encodings.cp949 m encodings.cp950 m encodings.euc_jis_2004 m encodings.euc_jisx0213 m encodings.euc_jp m encodings.euc_kr m encodings.gb18030 m encodings.gb2312 m encodings.gbk m encodings.hex_codec m encodings.hp_roman8 m encodings.hz m encodings.idna m encodings.iso2022_jp m encodings.iso2022_jp_1 m encodings.iso2022_jp_2 m encodings.iso2022_jp_2004 m encodings.iso2022_jp_3 m encodings.iso2022_jp_ext m encodings.iso2022_kr m encodings.iso8859_1 m encodings.iso8859_10 m encodings.iso8859_11 m encodings.iso8859_13 m encodings.iso8859_14 m encodings.iso8859_15 m encodings.iso8859_16 m encodings.iso8859_2 m encodings.iso8859_3 m encodings.iso8859_4 m encodings.iso8859_5 m encodings.iso8859_6 m encodings.iso8859_7 m encodings.iso8859_8 m encodings.iso8859_9 m encodings.johab m encodings.koi8_r m encodings.koi8_u m encodings.latin_1 m encodings.mac_arabic m encodings.mac_centeuro m encodings.mac_croatian m encodings.mac_cyrillic m encodings.mac_farsi m encodings.mac_greek m encodings.mac_iceland m encodings.mac_latin2 m encodings.mac_roman m encodings.mac_romanian m encodings.mac_turkish m encodings.mbcs m encodings.palmos m encodings.ptcp154 m encodings.punycode m encodings.quopri_codec m encodings.raw_unicode_escape m encodings.rot_13 m encodings.shift_jis m encodings.shift_jis_2004 m encodings.shift_jisx0213 m encodings.tis_620 m encodings.undefined m encodings.unicode_escape m encodings.unicode_internal m encodings.utf_16 m encodings.utf_16_be m encodings.utf_16_le m encodings.utf_32 m encodings.utf_32_be m encodings.utf_32_le m encodings.utf_7 m encodings.utf_8 m encodings.utf_8_sig m encodings.uu_codec m encodings.zlib_codec m enum /usr/lib/python3.4/enum.py m errno m fnmatch /tmp/test/lib/python3.4/fnmatch.py m functools m gc m genericpath m gettext m grp m gzip /usr/lib/python3.4/gzip.py m hashlib /tmp/test/lib/python3.4/hashlib.py m heapq m imp /tmp/test/lib/python3.4/imp.py P importlib /tmp/test/lib/python3.4/importlib/__init__.py P importlib /tmp/test/lib/python3.4/importlib/__init__.py m importlib._bootstrap m importlib._bootstrap /tmp/test/lib/python3.4/importlib/_bootstrap.py m importlib.machinery /tmp/test/lib/python3.4/importlib/machinery.py m importlib.util /tmp/test/lib/python3.4/importlib/util.py m inspect /usr/lib/python3.4/inspect.py m io m itertools m keyword m linecache m locale P logging /usr/lib/python3.4/logging/__init__.py m lzma /usr/lib/python3.4/lzma.py m marshal m math m ntpath m opcode /usr/lib/python3.4/opcode.py m operator m optparse m os P pkg_resources /tmp/test/lib/python3.4/site-packages/pkg_resources/__init__.py P pkg_resources.extern /tmp/test/lib/python3.4/site-packages/pkg_resources/extern/__init__.py m pkgutil /usr/lib/python3.4/pkgutil.py m platform /usr/lib/python3.4/platform.py m plistlib /usr/lib/python3.4/plistlib.py m posix m posixpath m pprint /usr/lib/python3.4/pprint.py m pwd m py_compile /usr/lib/python3.4/py_compile.py m pyexpat P pygame /tmp/test/lib/python3.4/site-packages/pygame/__init__.py m pygame._freetype /tmp/test/lib/python3.4/site-packages/pygame/_freetype.cpython-34m.so m pygame._numpysndarray /tmp/test/lib/python3.4/site-packages/pygame/_numpysndarray.py m pygame._numpysurfarray /tmp/test/lib/python3.4/site-packages/pygame/_numpysurfarray.py m pygame.base /tmp/test/lib/python3.4/site-packages/pygame/base.cpython-34m.so m pygame.bufferproxy /tmp/test/lib/python3.4/site-packages/pygame/bufferproxy.cpython-34m.so m pygame.cdrom /tmp/test/lib/python3.4/site-packages/pygame/cdrom.cpython-34m.so m pygame.color /tmp/test/lib/python3.4/site-packages/pygame/color.cpython-34m.so m pygame.colordict /tmp/test/lib/python3.4/site-packages/pygame/colordict.py m pygame.compat /tmp/test/lib/python3.4/site-packages/pygame/compat.py m pygame.constants /tmp/test/lib/python3.4/site-packages/pygame/constants.cpython-34m.so m pygame.cursors /tmp/test/lib/python3.4/site-packages/pygame/cursors.py m pygame.display /tmp/test/lib/python3.4/site-packages/pygame/display.cpython-34m.so m pygame.draw /tmp/test/lib/python3.4/site-packages/pygame/draw.cpython-34m.so m pygame.event /tmp/test/lib/python3.4/site-packages/pygame/event.cpython-34m.so m pygame.fastevent /tmp/test/lib/python3.4/site-packages/pygame/fastevent.cpython-34m.so m pygame.font /tmp/test/lib/python3.4/site-packages/pygame/font.cpython-34m.so m pygame.ftfont /tmp/test/lib/python3.4/site-packages/pygame/ftfont.py m pygame.image /tmp/test/lib/python3.4/site-packages/pygame/image.cpython-34m.so m pygame.imageext /tmp/test/lib/python3.4/site-packages/pygame/imageext.cpython-34m.so m pygame.joystick /tmp/test/lib/python3.4/site-packages/pygame/joystick.cpython-34m.so m pygame.key /tmp/test/lib/python3.4/site-packages/pygame/key.cpython-34m.so m pygame.macosx /tmp/test/lib/python3.4/site-packages/pygame/macosx.py m pygame.mask /tmp/test/lib/python3.4/site-packages/pygame/mask.cpython-34m.so m pygame.math /tmp/test/lib/python3.4/site-packages/pygame/math.cpython-34m.so m pygame.mixer /tmp/test/lib/python3.4/site-packages/pygame/mixer.cpython-34m.so m pygame.mixer_music /tmp/test/lib/python3.4/site-packages/pygame/mixer_music.cpython-34m.so m pygame.mouse /tmp/test/lib/python3.4/site-packages/pygame/mouse.cpython-34m.so m pygame.overlay /tmp/test/lib/python3.4/site-packages/pygame/overlay.cpython-34m.so m pygame.pixelarray /tmp/test/lib/python3.4/site-packages/pygame/pixelarray.cpython-34m.so m pygame.pixelcopy /tmp/test/lib/python3.4/site-packages/pygame/pixelcopy.cpython-34m.so m pygame.pkgdata /tmp/test/lib/python3.4/site-packages/pygame/pkgdata.py m pygame.rect /tmp/test/lib/python3.4/site-packages/pygame/rect.cpython-34m.so m pygame.rwobject /tmp/test/lib/python3.4/site-packages/pygame/rwobject.cpython-34m.so m pygame.scrap /tmp/test/lib/python3.4/site-packages/pygame/scrap.cpython-34m.so m pygame.sndarray /tmp/test/lib/python3.4/site-packages/pygame/sndarray.py m pygame.sprite /tmp/test/lib/python3.4/site-packages/pygame/sprite.py m pygame.surface /tmp/test/lib/python3.4/site-packages/pygame/surface.cpython-34m.so m pygame.surfarray /tmp/test/lib/python3.4/site-packages/pygame/surfarray.py m pygame.surflock /tmp/test/lib/python3.4/site-packages/pygame/surflock.cpython-34m.so m pygame.sysfont /tmp/test/lib/python3.4/site-packages/pygame/sysfont.py P pygame.threads /tmp/test/lib/python3.4/site-packages/pygame/threads/__init__.py m pygame.time /tmp/test/lib/python3.4/site-packages/pygame/time.cpython-34m.so m pygame.transform /tmp/test/lib/python3.4/site-packages/pygame/transform.cpython-34m.so m pygame.version /tmp/test/lib/python3.4/site-packages/pygame/version.py m queue /usr/lib/python3.4/queue.py m quopri m random /tmp/test/lib/python3.4/random.py m re m reprlib m select m selectors /usr/lib/python3.4/selectors.py m shutil /tmp/test/lib/python3.4/shutil.py m signal m socket /usr/lib/python3.4/socket.py m sre_compile m sre_constants m sre_parse m stat m string m stringprep m struct m subprocess /usr/lib/python3.4/subprocess.py m sys m sysconfig /usr/lib/python3.4/sysconfig.py m tarfile /tmp/test/lib/python3.4/tarfile.py m tempfile /tmp/test/lib/python3.4/tempfile.py m textwrap m threading m time m token m tokenize m traceback m types m unicodedata P urllib /usr/lib/python3.4/urllib/__init__.py m urllib.parse /usr/lib/python3.4/urllib/parse.py m uu /usr/lib/python3.4/uu.py m warnings m weakref P xml /usr/lib/python3.4/xml/__init__.py P xml.parsers /usr/lib/python3.4/xml/parsers/__init__.py m xml.parsers.expat /usr/lib/python3.4/xml/parsers/expat.py m zipfile /usr/lib/python3.4/zipfile.py m zipimport m zlib Missing modules: ? MacOS imported from pygame.macosx ? OpenGL.GL imported from pygame ? Py25Queue imported from pygame.threads ? Queue imported from pygame.threads ? _dummy_threading imported from dummy_threading ? _sysconfigdata_dm imported from _sysconfigdata ? _winapi imported from subprocess ? _winreg imported from pygame, pygame.sysfont ? cStringIO imported from pygame.compat ? ce imported from os ? copy_reg imported from pygame ? distutils.command imported from distutils ? distutils.command.build_ext imported from distutils ? distutils.dist imported from distutils ? distutils.errors imported from shutil ? distutils.log imported from _osx_support ? distutils.spawn imported from shutil ? distutils.sysconfig imported from distutils ? distutils.util imported from pkg_resources ? doctest imported from heapq ? getopt imported from base64, quopri ? java.lang imported from platform ? msvcrt imported from subprocess ? nt imported from ntpath, os, shutil ? numpy imported from pygame, pygame._numpysndarray, pygame._numpysurfarray ? org.python.core imported from copy ? os.path imported from os, pkg_resources, pkgutil, py_compile, pygame.sysfont, shutil, sysconfig ? pkg_resources.extern.appdirs imported from pkg_resources ? pkg_resources.extern.packaging imported from pkg_resources ? pkg_resources.extern.six imported from pkg_resources ? pkg_resources.extern.six.moves imported from pkg_resources ? pkg_resources.resource_exists imported from pygame.pkgdata ? pkg_resources.resource_stream imported from pygame.pkgdata ? pygame.SRCALPHA imported from pygame.ftfont ? pygame._view imported from pygame ? pygame.movie imported from pygame ? pygame.sdlmain_osx imported from pygame.macosx ? vms_lib imported from platform ? win32api imported from platform ? win32con imported from platform ? winreg imported from platform, pygame.sysfont This is not necessarily a problem - the modules may not be needed on this platform. /tmp/test/lib/python3.4/site-packages/cx_Freeze-4.3.4-py3.4-linux-x86_64.egg/cx_Freeze/freezer.py:590: UserWarning: Duplicate name: 'importlib/__init__.pyc' outFile.writestr(zinfo, data) copying /tmp/test/lib/python3.4/lib-dynload/_bz2.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_bz2.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_cn.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_cn.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_hk.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_hk.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_iso2022.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_iso2022.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_jp.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_jp.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_kr.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_kr.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_codecs_tw.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_codecs_tw.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_hashlib.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_hashlib.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_lzma.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_lzma.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_multibytecodec.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_multibytecodec.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/lib-dynload/_opcode.cpython-34m-x86_64-linux-gnu.so -> /tmp/test/test/dist/_opcode.cpython-34m-x86_64-linux-gnu.so copying /tmp/test/lib/python3.4/site-packages/pygame/_freetype.cpython-34m.so -> /tmp/test/test/dist/pygame._freetype.so copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/libSDL-1-f3f7b4bd.2.so.0.11.4 -> /tmp/test/test/dist/libSDL-1-f3f7b4bd.2.so.0.11.4 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/libfreetype-56747121.so.6.12.5 -> /tmp/test/test/dist/libfreetype-56747121.so.6.12.5 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libpng16-6d605bc4.so.16.23.0 -> /tmp/test/test/dist/libpng16-6d605bc4.so.16.23.0 WARNING: cannot find libz-a147dcb0.so.1.2.3 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libz-a147dcb0.so.1.2.3 -> /tmp/test/test/dist/libz-a147dcb0.so.1.2.3 copying /tmp/test/lib/python3.4/site-packages/pygame/base.cpython-34m.so -> /tmp/test/test/dist/pygame.base.so copying /tmp/test/lib/python3.4/site-packages/pygame/bufferproxy.cpython-34m.so -> /tmp/test/test/dist/pygame.bufferproxy.so copying /tmp/test/lib/python3.4/site-packages/pygame/cdrom.cpython-34m.so -> /tmp/test/test/dist/pygame.cdrom.so copying /tmp/test/lib/python3.4/site-packages/pygame/color.cpython-34m.so -> /tmp/test/test/dist/pygame.color.so copying /tmp/test/lib/python3.4/site-packages/pygame/constants.cpython-34m.so -> /tmp/test/test/dist/pygame.constants.so copying /tmp/test/lib/python3.4/site-packages/pygame/display.cpython-34m.so -> /tmp/test/test/dist/pygame.display.so copying /tmp/test/lib/python3.4/site-packages/pygame/draw.cpython-34m.so -> /tmp/test/test/dist/pygame.draw.so copying /tmp/test/lib/python3.4/site-packages/pygame/event.cpython-34m.so -> /tmp/test/test/dist/pygame.event.so copying /tmp/test/lib/python3.4/site-packages/pygame/fastevent.cpython-34m.so -> /tmp/test/test/dist/pygame.fastevent.so copying /tmp/test/lib/python3.4/site-packages/pygame/font.cpython-34m.so -> /tmp/test/test/dist/pygame.font.so copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/libSDL_ttf-2-a37ff1d4.0.so.0.10.1 -> /tmp/test/test/dist/libSDL_ttf-2-a37ff1d4.0.so.0.10.1 copying /tmp/test/lib/python3.4/site-packages/pygame/image.cpython-34m.so -> /tmp/test/test/dist/pygame.image.so copying /tmp/test/lib/python3.4/site-packages/pygame/imageext.cpython-34m.so -> /tmp/test/test/dist/pygame.imageext.so copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/libSDL_image-1-5bf19ee1.2.so.0.8.4 -> /tmp/test/test/dist/libSDL_image-1-5bf19ee1.2.so.0.8.4 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libjpeg-bd53fca1.so.62.0.0 -> /tmp/test/test/dist/libjpeg-bd53fca1.so.62.0.0 copying /tmp/test/lib/python3.4/site-packages/pygame/joystick.cpython-34m.so -> /tmp/test/test/dist/pygame.joystick.so copying /tmp/test/lib/python3.4/site-packages/pygame/key.cpython-34m.so -> /tmp/test/test/dist/pygame.key.so copying /tmp/test/lib/python3.4/site-packages/pygame/mask.cpython-34m.so -> /tmp/test/test/dist/pygame.mask.so copying /tmp/test/lib/python3.4/site-packages/pygame/math.cpython-34m.so -> /tmp/test/test/dist/pygame.math.so copying /tmp/test/lib/python3.4/site-packages/pygame/mixer.cpython-34m.so -> /tmp/test/test/dist/pygame.mixer.so copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/libSDL_mixer-1-06ded6db.2.so.0.12.0 -> /tmp/test/test/dist/libSDL_mixer-1-06ded6db.2.so.0.12.0 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libfluidsynth-61ba5998.so.1.5.2 -> /tmp/test/test/dist/libfluidsynth-61ba5998.so.1.5.2 WARNING: cannot find libasound-95d13a7d.so.2.0.0 WARNING: cannot find libpulse-simple-3cd5b41d.so.0.0.1 WARNING: cannot find libpulse-62833b02.so.0.4.1 WARNING: cannot find libsndfile-d5ecee11.so.1.0.17 WARNING: cannot find libdbus-1-30e56626.so.3.4.0 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libasound-95d13a7d.so.2.0.0 -> /tmp/test/test/dist/libasound-95d13a7d.so.2.0.0 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libpulse-simple-3cd5b41d.so.0.0.1 -> /tmp/test/test/dist/libpulse-simple-3cd5b41d.so.0.0.1 WARNING: cannot find libcap-5fec18ee.so.1.10 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libpulse-62833b02.so.0.4.1 -> /tmp/test/test/dist/libpulse-62833b02.so.0.4.1 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libsndfile-d5ecee11.so.1.0.17 -> /tmp/test/test/dist/libsndfile-d5ecee11.so.1.0.17 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libdbus-1-30e56626.so.3.4.0 -> /tmp/test/test/dist/libdbus-1-30e56626.so.3.4.0 copying /tmp/test/lib/python3.4/site-packages/pygame/.libs/./libcap-5fec18ee.so.1.10 -> /tmp/test/test/dist/libcap-5fec18ee.so.1.10 copying /tmp/test/lib/python3.4/site-packages/pygame/mixer_music.cpython-34m.so -> /tmp/test/test/dist/pygame.mixer_music.so copying /tmp/test/lib/python3.4/site-packages/pygame/mouse.cpython-34m.so -> /tmp/test/test/dist/pygame.mouse.so copying /tmp/test/lib/python3.4/site-packages/pygame/overlay.cpython-34m.so -> /tmp/test/test/dist/pygame.overlay.so copying /tmp/test/lib/python3.4/site-packages/pygame/pixelarray.cpython-34m.so -> /tmp/test/test/dist/pygame.pixelarray.so copying /tmp/test/lib/python3.4/site-packages/pygame/pixelcopy.cpython-34m.so -> /tmp/test/test/dist/pygame.pixelcopy.so copying /tmp/test/lib/python3.4/site-packages/pygame/rect.cpython-34m.so -> /tmp/test/test/dist/pygame.rect.so copying /tmp/test/lib/python3.4/site-packages/pygame/rwobject.cpython-34m.so -> /tmp/test/test/dist/pygame.rwobject.so copying /tmp/test/lib/python3.4/site-packages/pygame/scrap.cpython-34m.so -> /tmp/test/test/dist/pygame.scrap.so copying /tmp/test/lib/python3.4/site-packages/pygame/surface.cpython-34m.so -> /tmp/test/test/dist/pygame.surface.so copying /tmp/test/lib/python3.4/site-packages/pygame/surflock.cpython-34m.so -> /tmp/test/test/dist/pygame.surflock.so copying /tmp/test/lib/python3.4/site-packages/pygame/time.cpython-34m.so -> /tmp/test/test/dist/pygame.time.so copying /tmp/test/lib/python3.4/site-packages/pygame/transform.cpython-34m.so -> /tmp/test/test/dist/pygame.transform.so (test) john_16@Linux-home /tmp/test/test $ ll итого 8 drwxr-xr-x 3 john_16 john_16 37 сент. 15 21:49 ./ drwxr-xr-x 7 john_16 john_16 127 сент. 15 21:48 ../ drwxr-xr-x 2 john_16 john_16 4096 сент. 15 21:49 dist/ -rw-r--r-- 1 john_16 john_16 42 сент. 15 21:47 helloworld.py (test) john_16@Linux-home /tmp/test/test $ ./dist/ helloworld libpulse-62833b02.so.0.4.1 pygame.base.so pygame.fastevent.so pygame.math.so pygame.rwobject.so libasound-95d13a7d.so.2.0.0 libpulse-simple-3cd5b41d.so.0.0.1 pygame.bufferproxy.so pygame.font.so pygame.mixer_music.so pygame.scrap.so libcap-5fec18ee.so.1.10 libSDL-1-f3f7b4bd.2.so.0.11.4 pygame.cdrom.so pygame._freetype.so pygame.mixer.so pygame.surface.so libdbus-1-30e56626.so.3.4.0 libSDL_image-1-5bf19ee1.2.so.0.8.4 pygame.color.so pygame.imageext.so pygame.mouse.so pygame.surflock.so libfluidsynth-61ba5998.so.1.5.2 libSDL_mixer-1-06ded6db.2.so.0.12.0 pygame.constants.so pygame.image.so pygame.overlay.so pygame.time.so libfreetype-56747121.so.6.12.5 libSDL_ttf-2-a37ff1d4.0.so.0.10.1 pygame.display.so pygame.joystick.so pygame.pixelarray.so pygame.transform.so libjpeg-bd53fca1.so.62.0.0 libsndfile-d5ecee11.so.1.0.17 pygame.draw.so pygame.key.so pygame.pixelcopy.so libpng16-6d605bc4.so.16.23.0 libz-a147dcb0.so.1.2.3 pygame.event.so pygame.mask.so pygame.rect.so (test) john_16@Linux-home /tmp/test/test $ ./dist/helloworld (test) john_16@Linux-home /tmp/test/test $
Офлайн
JOHN_16Рад бы, да не могу, pygame существует ТОЛЬКО для версии 3.1 и ниже
Не по теме, но важно: используйте минимум 3.4 версию питона - это общее правило, с этой версии третья ветка считается адекватной
Офлайн
из исходников можно собрать, ну а сборки да, не делают уже. Проект похоже испытывает проблемы
Офлайн
А у меня ещё вопрос, чтобы два раза не вставать
cxfreeze среди прочих имеет опцию
--base-name=NAME file on which to base the target file; if the name of the file is not an absolute file name, the subdirectory bases (rooted in the directory in which the freezer is found) will be searched for a file matching the name
Отредактировано minin (Сен. 19, 2016 00:34:51)
Офлайн
Здесь есть сборки под последние версии питона
Отредактировано aiscy (Сен. 18, 2016 22:03:31)
Офлайн
aiscyХотелось бы знать, что означают буквы в них. Особенно интересует вот эта:
Здесь есть сборки под последние версии питона
Отредактировано minin (Сен. 18, 2016 22:11:43)
Офлайн
mininЭти значения суть имена файлов без расширения exe в папке “C:\Python31\Lib\site-packages\cx_Freeze\bases”; вот ни разу не усложняют.
Но это я угадал, получается, а без угадывания найти, какие значения сюда писать
Отредактировано minin (Сен. 19, 2016 01:38:49)
Офлайн