Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging Error - "AttributeError: 'NoneType' object has no attribute 'groups'" in load_ldconfig_cache #161

Closed
therealOri opened this issue Mar 22, 2021 · 3 comments
Labels

Comments

@therealOri
Copy link

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.
@brentvollebregt
Copy link
Owner

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

@brentvollebregt brentvollebregt changed the title Packaging Error Packaging Error - "AttributeError: 'NoneType' object has no attribute 'groups'" in load_ldconfig_cache May 5, 2021
@github-actions
Copy link

github-actions bot commented 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.

@github-actions github-actions bot added the Stale label Jul 5, 2021
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants