Very strange problem. Under Windows when a dupsort key is not found via SET_RANGE, GET_CURRENT, this currently triggers an errno=38, "Filename too long". Obviously it has nothing to do with a filename, and the same error, at the same position does not trigger under Linux.
It seems that https://github.com/wtdcode/mdbx-py/blob/master/mdbx/mdbx.py#L3065 at this point ret == 38 triggers a not found. But I fail to see why MDBX uses different errno's than specified in Python's errno.
https://github.com/wtdcode/mdbx-py/blob/master/mdbx/mdbx.py#L1045