miniwdl
miniwdl copied to clipboard
macOS ModuleNotFoundError: No module named 'WDL'
Hi developers,
On macOS with case-sensitive enabled, miniwdl will fail to find the wdl
package:
% miniwdl
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/miniwdl", line 5, in <module>
from WDL.CLI import main
ModuleNotFoundError: No module named 'WDL'
The issue is caused by miniwdl
's from WDL.CLI import main
command using uppercase WDL
.
The wdl package folder is in lowercase:
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/wdl
Change the import command to from wdl.CLI import main
fixed the issue.
PS:
More exceptions after running test. Maybe better renaming wdl
folder to WDL
.
Cheers, Richard
Thanks -- I suspect a temporary workaround is to use the Homebrew or miniconda3 versions of Python3 instead of the macOS built-in version. The latter has several odd things about it, perhaps (I need to look into it) one of which may explain how you got the lower-case wdl
folder in the first place. I will keep this open as I think it is probably a real roadbump.