◐ Shell
clean mode source ↗

Message 232877 - Python tracker

By the way, here is another (less) confusing error message:

    >>> Path("foo").relative_to("fo")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/pathlib.py", line 806, in relative_to
        .format(str(self), str(formatted)))
    ValueError: 'foo' does not start with 'fo'

Without knowing that "foo" is a path, the message seems wrong.  If it said something like "Path 'foo' does not start with part 'fo'", it would be clearer.