[GH-ISSUE #161] Packaging Error - "AttributeError: 'NoneType' object has no attribute 'groups'" in load_ldconfig_cache #149

Closed
opened 2026-02-26 12:20:38 +03:00 by kerem · 3 comments
Owner

Originally created by @therealOri on GitHub (Mar 22, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/161

This is the error I get when packaging towards the end of the process.
I don't know how to fix this or what the issue is. Any help is appreciated.

An error occurred while packaging
Traceback (most recent call last):
  File "/home/ori/auto-py-to-exe/auto_py_to_exe/packaging.py", line 131, in package
    run_pyinstaller()
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/__main__.py", line 114, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/__main__.py", line 65, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 725, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 672, in build
    exec(code, spec_namespace)
  File "/tmp/tmpo9r2bhx_/bump.spec", line 6, in <module>
    a = Analysis(['/home/ori/Desktop/Projects/bump.py'],
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 242, in __init__
    self.__postinit__()
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__
    self.assemble()
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 438, in assemble
    ctypes_binaries = scan_code_for_ctypes(co)
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 145, in scan_code_for_ctypes
    binaries = _resolveCtypesImports(binaries)
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 319, in _resolveCtypesImports
    load_ldconfig_cache()
  File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 402, in load_ldconfig_cache
    path = m.groups()[-1]
AttributeError: 'NoneType' object has no attribute 'groups'

Project output will not be moved to output folder
Complete.
Originally created by @therealOri on GitHub (Mar 22, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/161 This is the error I get when packaging towards the end of the process. I don't know how to fix this or what the issue is. Any help is appreciated. ``` An error occurred while packaging Traceback (most recent call last): File "/home/ori/auto-py-to-exe/auto_py_to_exe/packaging.py", line 131, in package run_pyinstaller() File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 725, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 672, in build exec(code, spec_namespace) File "/tmp/tmpo9r2bhx_/bump.spec", line 6, in <module> a = Analysis(['/home/ori/Desktop/Projects/bump.py'], File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 242, in __init__ self.__postinit__() File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__ self.assemble() File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/building/build_main.py", line 438, in assemble ctypes_binaries = scan_code_for_ctypes(co) File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 145, in scan_code_for_ctypes binaries = _resolveCtypesImports(binaries) File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 319, in _resolveCtypesImports load_ldconfig_cache() File "/home/ori/.local/lib/python3.9/site-packages/PyInstaller/depend/utils.py", line 402, in load_ldconfig_cache path = m.groups()[-1] AttributeError: 'NoneType' object has no attribute 'groups' Project output will not be moved to output folder Complete. ```
kerem 2026-02-26 12:20:38 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@brentvollebregt commented on GitHub (Mar 23, 2021):

Check out pyinstaller/pyinstaller#5540 - this is a known issue with pyinstaller at the moment.

<!-- gh-comment-id:804745288 --> @brentvollebregt commented on GitHub (Mar 23, 2021): Check out pyinstaller/pyinstaller#5540 - this is a known issue with pyinstaller at the moment.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 5, 2021):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:873699700 --> @github-actions[bot] commented on GitHub (Jul 5, 2021): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 10, 2021):

Closing issue due to no activity in more than 60 days.

<!-- gh-comment-id:877524255 --> @github-actions[bot] commented on GitHub (Jul 10, 2021): Closing issue due to no activity in more than 60 days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#149
No description provided.