Skip to content

ModuleNotFoundError: No module named 'borb.pdf.toolkit.source.operator.operator_B' on Windows #231

Description

@NedisonJr

I encountered a ModuleNotFoundError when trying to use Source() and Pipeline. The code tries to import operator_B (uppercase), but the package installation sometimes results in operator_b.py (lowercase) or the Windows file system causes a conflict.

Environment:

  • OS: Windows 11
  • Python: 3.10
  • borb version: 3.0.7

How I solved it:
For Windows users, the issue is often related to case-insensitivity. I managed to fix it by enabling setCaseSensitiveInfo on the borb directory inside site-packages using PowerShell:
fsutil.exe file setCaseSensitiveInfo <path_to_borb_folder> enable

After that, a clean reinstall (--no-cache-dir) worked. Please check if the imports in source.py match the actual filenames in the distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions