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.
I encountered a
ModuleNotFoundErrorwhen trying to useSource()andPipeline. The code tries to importoperator_B(uppercase), but the package installation sometimes results inoperator_b.py(lowercase) or the Windows file system causes a conflict.Environment:
How I solved it:
For Windows users, the issue is often related to case-insensitivity. I managed to fix it by enabling
setCaseSensitiveInfoon theborbdirectory insidesite-packagesusing PowerShell:fsutil.exe file setCaseSensitiveInfo <path_to_borb_folder> enableAfter that, a clean reinstall (
--no-cache-dir) worked. Please check if the imports insource.pymatch the actual filenames in the distribution.