Skip to content

[ BUG] FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib64/python3.11' #216

@CaedenPH

Description

@CaedenPH

Error when running autoflake in terminal -

Traceback (most recent call last):
  File "/home/Caeden/.local/bin/autoflake", line 5, in <module>
    from autoflake import main
  File "/home/Caeden/.local/lib/python3.11/site-packages/autoflake.py", line 105, in <module>
    frozenset(standard_package_names()) - IMPORTS_WITH_SIDE_EFFECTS | BINARY_IMPORTS
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/Caeden/.local/lib/python3.11/site-packages/autoflake.py", line 75, in standard_package_names
    for name in standard_paths():
  File "/home/Caeden/.local/lib/python3.11/site-packages/autoflake.py", line 65, in standard_paths
    yield from os.listdir(path)
               ^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib64/python3.11'

Python version: 3.11
OS: Fedora

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions