[Python] py2app errors when importing pygame

Discussão em 'Python' iniciado por Stack, Março 15, 2025.

  1. Stack

    Stack Membro Participativo

    I cannot seem to get py2app to run correctly if the python code includes "import pygame". Below is my sample code. Note that if I comment out the "import pygame" line everything goes as expected.

    #!/usr/bin/python3

    import pygame
    import time

    for i in range(0,100) :
    time.sleep(0.1)


    then I try to make it a stand alone app with

    rm -r dist build setup.py
    py2applet --make-setup test.py
    python3 setup.py py2app


    py2applet seems to run ok

    py2applet --make-setup test.py
    Wrote setup.py


    setup.py contains

    """
    This is a setup.py script generated by py2applet

    Usage:
    python setup.py py2app
    """

    from setuptools import setup

    APP = ['test.py']
    DATA_FILES = []
    OPTIONS = {}

    setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
    )


    Nothing unusual there. The next line causes much output and several errors. (See below.)

    If I skip to the final error,

    raise ImportError("No module named " + fullname)
    ImportError: No module named PyInstaller.hooks.hook-PyQt6.QtWidgets


    The file PyInstaller/hooks/hook-PyQt6.QtWidgets doe exist, but I think that my problems start earlier with the

    --- Skipping recipe PIL ---
    *** using recipe: automissing *** {'expected_missing_imports': {'sys.getwindowsversion', 'nt', '_winapi', 'winreg', '_frozen_importlib_external'}}
    --- Skipping recipe PIL ---
    *** using recipe: autopackages *** {'packages': ['numpy']}
    --- Skipping recipe PIL ---


    error.

    I am running

    • python 3.9.6
    • Mac OSX Sequoia 15.3.2

    python 3.9.6 on my Mac

    python3 setup.py py2app
    running py2app
    creating /Users/reimer/Desktop/WiFi/build
    creating /Users/reimer/Desktop/WiFi/build/bdist.macosx-10.9-universal2
    creating /Users/reimer/Desktop/WiFi/build/bdist.macosx-10.9-universal2/python3.9-standalone
    creating /Users/reimer/Desktop/WiFi/build/bdist.macosx-10.9-universal2/python3.9-standalone/app
    creating /Users/reimer/Desktop/WiFi/build/bdist.macosx-10.9-universal2/python3.9-standalone/app/collect
    creating /Users/reimer/Desktop/WiFi/build/bdist.macosx-10.9-universal2/python3.9-standalone/app/temp
    creating /Users/reimer/Desktop/WiFi/dist
    creating build/bdist.macosx-10.9-universal2/python3.9-standalone/app/lib-dynload
    creating build/bdist.macosx-10.9-universal2/python3.9-standalone/app/Frameworks
    --- Skipping recipe PIL ---
    *** using recipe: automissing *** {'expected_missing_imports': {'sys.getwindowsversion', 'nt', '_winapi', 'winreg', '_frozen_importlib_external'}}
    --- Skipping recipe PIL ---
    *** using recipe: autopackages *** {'packages': ['numpy']}
    --- Skipping recipe PIL ---
    --- Skipping recipe black ---
    CTYPES USERS [SourceModule('ctypes._endian', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/_endian.py'),


    stuff deleted (mostly "SourceModule('OpenGL.raw.GL..." with no errors) because there is a 30k character limit

    SourceModule('OpenGL.raw.GL.VERSION.GL_3_3', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_3_3.py'), SourceModule('OpenGL.GL.VERSION.GL_4_0', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_0.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_0', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_0.py'), SourceModule('OpenGL.GL.VERSION.GL_4_1', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_1.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_1', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_1.py'), SourceModule('OpenGL.GL.ARB.ES2_compatibility', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/ES2_compatibility.py'), SourceModule('OpenGL.raw.GL.ARB.ES2_compatibility', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/ES2_compatibility.py'), SourceModule('OpenGL.GL.ARB.get_program_binary', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/get_program_binary.py'), SourceModule('OpenGL.raw.GL.ARB.get_program_binary', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/get_program_binary.py'), SourceModule('OpenGL.GL.ARB.separate_shader_objects', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/separate_shader_objects.py'), SourceModule('OpenGL.raw.GL.ARB.separate_shader_objects', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/separate_shader_objects.py'), SourceModule('OpenGL.GL.ARB.shader_precision', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shader_precision.py'), SourceModule('OpenGL.raw.GL.ARB.shader_precision', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shader_precision.py'), SourceModule('OpenGL.GL.ARB.vertex_attrib_64bit', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/vertex_attrib_64bit.py'), SourceModule('OpenGL.raw.GL.ARB.vertex_attrib_64bit', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/vertex_attrib_64bit.py'), SourceModule('OpenGL.GL.ARB.viewport_array', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/viewport_array.py'), SourceModule('OpenGL.raw.GL.ARB.viewport_array', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/viewport_array.py'), SourceModule('OpenGL.GL.VERSION.GL_4_2', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_2.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_2', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_2.py'), SourceModule('OpenGL.GL.ARB.base_instance', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/base_instance.py'), SourceModule('OpenGL.raw.GL.ARB.base_instance', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/base_instance.py'), SourceModule('OpenGL.GL.ARB.shading_language_420pack', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shading_language_420pack.py'), SourceModule('OpenGL.raw.GL.ARB.shading_language_420pack', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shading_language_420pack.py'), SourceModule('OpenGL.GL.ARB.transform_feedback_instanced', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py'), SourceModule('OpenGL.raw.GL.ARB.transform_feedback_instanced', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/transform_feedback_instanced.py'), SourceModule('OpenGL.GL.ARB.compressed_texture_pixel_storage', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/compressed_texture_pixel_storage.py'), SourceModule('OpenGL.raw.GL.ARB.compressed_texture_pixel_storage', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/compressed_texture_pixel_storage.py'), SourceModule('OpenGL.GL.ARB.conservative_depth', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/conservative_depth.py'), SourceModule('OpenGL.raw.GL.ARB.conservative_depth', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/conservative_depth.py'), SourceModule('OpenGL.GL.ARB.internalformat_query', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/internalformat_query.py'), SourceModule('OpenGL.raw.GL.ARB.internalformat_query', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/internalformat_query.py'), SourceModule('OpenGL.GL.ARB.map_buffer_alignment', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/map_buffer_alignment.py'), SourceModule('OpenGL.raw.GL.ARB.map_buffer_alignment', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/map_buffer_alignment.py'), SourceModule('OpenGL.GL.ARB.shader_atomic_counters', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shader_atomic_counters.py'), SourceModule('OpenGL.raw.GL.ARB.shader_atomic_counters', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shader_atomic_counters.py'), SourceModule('OpenGL.GL.ARB.shader_image_load_store', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shader_image_load_store.py'), SourceModule('OpenGL.raw.GL.ARB.shader_image_load_store', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shader_image_load_store.py'), SourceModule('OpenGL.GL.ARB.shading_language_packing', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shading_language_packing.py'), SourceModule('OpenGL.raw.GL.ARB.shading_language_packing', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shading_language_packing.py'), SourceModule('OpenGL.GL.ARB.texture_storage', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_storage.py'), SourceModule('OpenGL.raw.GL.ARB.texture_storage', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_storage.py'), SourceModule('OpenGL.GL.VERSION.GL_4_3', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_3.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_3', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_3.py'), SourceModule('OpenGL.GL.ARB.arrays_of_arrays', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/arrays_of_arrays.py'), SourceModule('OpenGL.raw.GL.ARB.arrays_of_arrays', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/arrays_of_arrays.py'), SourceModule('OpenGL.GL.ARB.fragment_layer_viewport', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/fragment_layer_viewport.py'), SourceModule('OpenGL.raw.GL.ARB.fragment_layer_viewport', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/fragment_layer_viewport.py'), SourceModule('OpenGL.GL.ARB.shader_image_size', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shader_image_size.py'), SourceModule('OpenGL.raw.GL.ARB.shader_image_size', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shader_image_size.py'), SourceModule('OpenGL.GL.ARB.ES3_compatibility', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/ES3_compatibility.py'), SourceModule('OpenGL.raw.GL.ARB.ES3_compatibility', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/ES3_compatibility.py'), SourceModule('OpenGL.GL.ARB.clear_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/clear_buffer_object.py'), SourceModule('OpenGL.raw.GL.ARB.clear_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/clear_buffer_object.py'), SourceModule('OpenGL.GL.ARB.compute_shader', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/compute_shader.py'), SourceModule('OpenGL.raw.GL.ARB.compute_shader', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/compute_shader.py'), SourceModule('OpenGL.GL.ARB.copy_image', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/copy_image.py'), SourceModule('OpenGL.raw.GL.ARB.copy_image', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/copy_image.py'), SourceModule('OpenGL.GL.KHR.debug', '/Library/Python/3.9/site-packages/OpenGL/GL/KHR/debug.py'), SourceModule('OpenGL.raw.GL.KHR.debug', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/KHR/debug.py'), SourceModule('OpenGL.GL.ARB.explicit_uniform_location', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/explicit_uniform_location.py'), SourceModule('OpenGL.raw.GL.ARB.explicit_uniform_location', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/explicit_uniform_location.py'), SourceModule('OpenGL.GL.ARB.framebuffer_no_attachments', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/framebuffer_no_attachments.py'), SourceModule('OpenGL.raw.GL.ARB.framebuffer_no_attachments', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/framebuffer_no_attachments.py'), SourceModule('OpenGL.GL.ARB.internalformat_query2', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/internalformat_query2.py'), SourceModule('OpenGL.raw.GL.ARB.internalformat_query2', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/internalformat_query2.py'), SourceModule('OpenGL.GL.ARB.invalidate_subdata', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/invalidate_subdata.py'), SourceModule('OpenGL.raw.GL.ARB.invalidate_subdata', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/invalidate_subdata.py'), SourceModule('OpenGL.GL.ARB.multi_draw_indirect', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/multi_draw_indirect.py'), SourceModule('OpenGL.raw.GL.ARB.multi_draw_indirect', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/multi_draw_indirect.py'), SourceModule('OpenGL.GL.ARB.program_interface_query', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/program_interface_query.py'), SourceModule('OpenGL.raw.GL.ARB.program_interface_query', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/program_interface_query.py'), SourceModule('OpenGL.GL.ARB.robust_buffer_access_behavior', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/robust_buffer_access_behavior.py'), SourceModule('OpenGL.raw.GL.ARB.robust_buffer_access_behavior', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/robust_buffer_access_behavior.py'), SourceModule('OpenGL.GL.ARB.shader_storage_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/shader_storage_buffer_object.py'), SourceModule('OpenGL.raw.GL.ARB.shader_storage_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/shader_storage_buffer_object.py'), SourceModule('OpenGL.GL.ARB.stencil_texturing', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/stencil_texturing.py'), SourceModule('OpenGL.raw.GL.ARB.stencil_texturing', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/stencil_texturing.py'), SourceModule('OpenGL.GL.ARB.texture_buffer_range', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_buffer_range.py'), SourceModule('OpenGL.raw.GL.ARB.texture_buffer_range', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_buffer_range.py'), SourceModule('OpenGL.GL.ARB.texture_query_levels', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_query_levels.py'), SourceModule('OpenGL.raw.GL.ARB.texture_query_levels', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_query_levels.py'), SourceModule('OpenGL.GL.ARB.texture_storage_multisample', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_storage_multisample.py'), SourceModule('OpenGL.raw.GL.ARB.texture_storage_multisample', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_storage_multisample.py'), SourceModule('OpenGL.GL.ARB.texture_view', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_view.py'), SourceModule('OpenGL.raw.GL.ARB.texture_view', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_view.py'), SourceModule('OpenGL.GL.ARB.vertex_attrib_binding', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/vertex_attrib_binding.py'), SourceModule('OpenGL.raw.GL.ARB.vertex_attrib_binding', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/vertex_attrib_binding.py'), SourceModule('OpenGL.GL.VERSION.GL_4_4', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_4.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_4', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_4.py'), SourceModule('OpenGL.GL.VERSION.GL_4_5', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_5.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_5', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_5.py'), SourceModule('OpenGL.GL.VERSION.GL_4_6', '/Library/Python/3.9/site-packages/OpenGL/GL/VERSION/GL_4_6.py'), SourceModule('OpenGL.raw.GL.VERSION.GL_4_6', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/VERSION/GL_4_6.py'), SourceModule('OpenGL.arrays.vbo', '/Library/Python/3.9/site-packages/OpenGL/arrays/vbo.py'), SourceModule('OpenGL.GL.ARB.vertex_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/vertex_buffer_object.py'), SourceModule('OpenGL.raw.GL.ARB.vertex_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/vertex_buffer_object.py'), SourceModule('OpenGL.GL.ARB.uniform_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/uniform_buffer_object.py'), SourceModule('OpenGL.raw.GL.ARB.uniform_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/uniform_buffer_object.py'), SourceModule('OpenGL.GL.ARB.texture_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/texture_buffer_object.py'), SourceModule('OpenGL.raw.GL.ARB.texture_buffer_object', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/texture_buffer_object.py'), SourceModule('OpenGL.GL.ARB.enhanced_layouts', '/Library/Python/3.9/site-packages/OpenGL/GL/ARB/enhanced_layouts.py'), SourceModule('OpenGL.raw.GL.ARB.enhanced_layouts', '/Library/Python/3.9/site-packages/OpenGL/raw/GL/ARB/enhanced_layouts.py'), SourceModule('multiprocessing.sharedctypes', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/sharedctypes.py'), SourceModule('numpy.core.tests.test_ufunc', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/core/tests/test_ufunc.py'), SourceModule('numpy.core.tests.test_multiarray', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/core/tests/test_multiarray.py'), SourceModule('numpy.core.tests.test_umath_accuracy', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/core/tests/test_umath_accuracy.py'), SourceModule('numpy.core.tests.test_dtype', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/core/tests/test_dtype.py'), SourceModule('numpy.core.tests.test_casting_unittests', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/core/tests/test_casting_unittests.py'), SourceModule('numpy.tests.test_public_api', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/tests/test_public_api.py'), SourceModule('numpy.tests.test_ctypeslib', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/tests/test_ctypeslib.py'), Package('ctypes.macholib', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/macholib/__init__.py', ['/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/macholib']), SourceModule('ctypes._aix', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/_aix.py'), SourceModule('ctypes.util', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/util.py'), SourceModule('packaging._manylinux', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/packaging/_manylinux.py'), SourceModule('PyInstaller.isolated._parent', '/Library/Python/3.9/site-packages/PyInstaller/isolated/_parent.py'), SourceModule('ctypes.wintypes', '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/wintypes.py'), SourceModule('numpy.lib.tests.test_io', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/lib/tests/test_io.py'), SourceModule('numpy.random.tests.test_direct', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numpy/random/tests/test_direct.py'), SourceModule('scipy._lib._ccallback', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/scipy/_lib/_ccallback.py'), SourceModule('llvmlite.binding.dylib', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/dylib.py'), SourceModule('llvmlite.binding.ffi', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/ffi.py'), SourceModule('llvmlite.binding.executionengine', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/executionengine.py'), SourceModule('llvmlite.binding.object_file', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/object_file.py'), SourceModule('llvmlite.binding.targets', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/targets.py'), SourceModule('llvmlite.binding.initfini', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/initfini.py'), SourceModule('llvmlite.binding.linker', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/linker.py'), SourceModule('llvmlite.binding.module', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/module.py'), SourceModule('llvmlite.binding.value', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/value.py'), SourceModule('llvmlite.binding.typeref', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/typeref.py'), SourceModule('llvmlite.binding.options', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/options.py'), SourceModule('llvmlite.binding.passmanagers', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/passmanagers.py'), SourceModule('llvmlite.binding.transforms', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/transforms.py'), SourceModule('llvmlite.binding.analysis', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/analysis.py'), SourceModule('llvmlite.binding.orcjit', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/llvmlite/binding/orcjit.py'), SourceModule('colorama.win32', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/colorama/win32.py'), SourceModule('numba.core.typing.typeof', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/typing/typeof.py'), SourceModule('numba.np.numpy_support', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/np/numpy_support.py'), SourceModule('numba.core.pythonapi', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/pythonapi.py'), SourceModule('numba.core.codegen', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/codegen.py'), SourceModule('numba.pycc.llvm_types', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/pycc/llvm_types.py'), SourceModule('numba.core.externals', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/externals.py'), SourceModule('numba.cpython.hashing', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cpython/hashing.py'), SourceModule('numba.cpython.unicode', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cpython/unicode.py'), SourceModule('numba.typed.dictobject', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/typed/dictobject.py'), SourceModule('numba.tests.support', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/tests/support.py'), SourceModule('numba.core.typing.cffi_utils', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/typing/cffi_utils.py'), SourceModule('numba.core.inline_closurecall', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/inline_closurecall.py'), SourceModule('numba.cuda.cudadrv.driver', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/driver.py'), SourceModule('numba.cuda.cudadrv.drvapi', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/drvapi.py'), SourceModule('numba.cuda.cudadrv.nvrtc', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/nvrtc.py'), SourceModule('numba.cuda.cudadrv.libs', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/libs.py'), SourceModule('numba.cuda.cudadrv.devicearray', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/devicearray.py'), SourceModule('numba.misc.dummyarray', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/misc/dummyarray.py'), SourceModule('numba.cuda.cudadrv.nvvm', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/nvvm.py'), SourceModule('numba.cuda.cudadrv.runtime', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/runtime.py'), SourceModule('numba.cuda.cudadrv.rtapi', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/cudadrv/rtapi.py'), SourceModule('numba.cuda.dispatcher', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/cuda/dispatcher.py'), SourceModule('numba.misc.appdirs', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/misc/appdirs.py'), SourceModule('numba.core.ccallback', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/ccallback.py'), SourceModule('numba.core.typing.ctypes_utils', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/core/typing/ctypes_utils.py'), SourceModule('numba.np.ufunc.parallel', '/Users/reimer/Library/Python/3.9/lib/python/site-packages/numba/np/ufunc/parallel.py')]
    *** using recipe: ctypes *** {'prescripts': ['py2app.bootstrap.ctypes_setup']}
    --- Skipping recipe PIL ---
    --- Skipping recipe black ---
    *** using recipe: detect_dunder_file *** {'packages': {'PyInstaller', 'pygame', 'scipy', 'Cython', 'numpy', 'numba', 'pytz'}}
    Traceback (most recent call last):
    File "/Users/reimer/Desktop/WiFi/setup.py", line 14, in <module>
    setup(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 987, in run
    self._run()
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1217, in _run
    self.run_normal()
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1314, in run_normal
    self.process_recipes(mf, filters, flatpackages, loader_files)
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/py2app/build_app.py", line 1178, in process_recipes
    find_needed_modules(mf, packages=rval["packages"])
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/find_modules.py", line 266, in find_needed_modules
    m = mf.import_hook(package, None, ["*"])
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1162, in import_hook
    for s in self._ensure_fromlist(m, fromlist):
    File "/Users/reimer/Library/Python/3.9/lib/python/site-packages/modulegraph/modulegraph.py", line 1292, in _ensure_fromlist
    raise ImportError("No module named " + fullname)
    ImportError: No module named PyInstaller.hooks.hook-PyQt6.QtWidgets

    Continue reading...

Compartilhe esta Página