I am trying to port an OptaPy Problem to Timefold/Python.
Now I am stuck with an error message which does not seem related to the referenced LOC, but maybe to something within the JVM. I seem unable to turn on DEBUG logging for “timefold.solver”, so far.
Any pointers on how to diagnose this?
Traceback (most recent call last):
File "/home/***/git/optapy-pplan/optapy-test/src/main2.py", line 426, in <module>
solution = solver.solve(generate_problem(sservice.context._inputfile))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/***/.virtualenvs/timefold/lib/python3.11/site-packages/timefold/solver/_solver.py", line 109, in solve
java_solution = self._delegate.solve(java_problem)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'ai.timefold.jpyinterpreter.types.PythonString'
New contributor
AlexK73 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1