Open YTMrSnipa opened 3 years ago
@YTMrSnipa I realize you might have figured it out, but this is because python-rclone
is using tempfile.NamedTemporaryFile()
to generate a temporary file that the spawned rclone process uses as the config.
Unfortunately, the temporary file generated this way cannot be opened a second time on Windows!
As I understand, this effectively means that python-rclone
cannot currently be used on Windows.
I'll try to implement a workaround and open a PR soon.
Hey man! Yeah, I did end up figuring it out... I ended up not using rclone at all, I soon came to realize that I can upload and do everything via python itself. Thanks though!
@YTMrSnipa I just opened #5 to fix this issue. I understand you no longer need this, but it might be helpful for others who try using this wrapper on Windows. Can you please reopen?
Hey! I was trying to uh upload a file via rclone/python...
My code:
Its giving me the error:
2021-02-27 01:58:19,689 RClone [DEBUG]: rclone config: ~[local] type = local nounc = true~ 2021-02-27 01:58:19,694 RClone [DEBUG]: Invoking : rclone listremotes --config C:\Users\Krish\AppData\Local\Temp\tmpf3pwwzzw 2021-02-27 01:58:19,887 RClone [DEBUG]: b'' 2021-02-27 01:58:19,942 RClone [WARNING]: 2021/02/27 01:58:19 Failed to load config file "C:\\Users\\Krish\\AppData\\Local\\Temp\\tmpf3pwwzzw": open C:\Users\Krish\AppData\Local\Temp\tmpf3pwwzzw: The process cannot access the file because it is being used by another process.
Any idea how to fix?