When I am trying to use python Rclone its not loading config file

What is the problem you are having with rclone?

I am trying to use rclone on python but after installing the rclone and running code:
import rclone

cfg = """[local]
type = local
nounc = true"""
result = rclone.with_config(cfg).listremotes()

print(result.get('out'))

b'local:\n'

print(result.get('code'))

0

print(result.get('error'))

the error occur :failed to load config file and also the process cannot access the file because its being used by other process

What is your rclone version (output from rclone version)

v1.50.2

Which OS you are using and how many bits (eg Windows 7, 64 bit)

window 7

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

code:
import rclone

cfg = """[local]
type = local
nounc = true"""
result = rclone.with_config(cfg).listremotes()

print(result.get('out'))

b'local:\n'

print(result.get('code'))

0

print(result.get('error'))

Where is this rclone python module from?

At a guess you are supposed to use a file name in rclone.with_config not the actual config.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.