from youbit import Encoder
with Encoder('C:/myfile.txt') as encoder:
path = encoder.encode('C:/mydirectory/') # Saves output in 'C:/mydirectory'. Defaults to current working directory.
print(path)
which is one of the examples mentioned, I get this error:
TypeError: unsupported operand type(s) for /: 'str' and 'str'
Solution is in line 198 in "yb.py"
You need to change
output = directory / ("YOUBIT-" + self.metadata["filename"])
to:
output = directory +"/"+ ("YOUBIT-" + self.metadata["filename"])
When I try to encode my file with this code:
which is one of the examples mentioned, I get this error: TypeError: unsupported operand type(s) for /: 'str' and 'str'
Solution is in line 198 in "yb.py" You need to change output = directory / ("YOUBIT-" + self.metadata["filename"]) to: output = directory +"/"+ ("YOUBIT-" + self.metadata["filename"])