Python solver: ModuleNotFoundError: No module named 'java.lang' (or 'java.io')
If the python solver is executed from a working directory that contains a directory called java (or maybe javax too), we get this error message:
ModuleNotFoundError: No module named 'java.lang'
Give a nice error message.
(this is an issue for the backlog)
Welcome to the world of Python packaging, where what you see is the expected behaviour of Python. In particular, by having a directory with a given name in your working directory, Python will automatically consider it a namespace package (and it will take precedence over import hooks).
See https://peps.python.org/pep-0420/#specification for details.
(Something similar will happen if you used the name timefold for your directory)
As of today, Timefold halted any further development of the Python solver. Find out more here: https://github.com/TimefoldAI/timefold-solver/discussions/1698
Closing this issue.