Does this happen every time or only when you try to put comma with a space in the name?
>From a quick glance over the error message, it doesn't seem to be related to the container name. In any case it would help if you could past your whole script here plus the output which you get by running LIBCLOUD_DEBUG=/dev/stderr python myscript.py (don't forget to remove your credentials). On Mon, Oct 15, 2012 at 10:13 PM, Patrick Joy <[email protected]> wrote: > Hi, > > Hope someone can help out. Not sure if this is a bug or by design? > > When I try to create a container that has a comma in the name that is > directly followed by a space, for example "my, container", I get the > following exception. > > Any ideas? > > Thanks, > Patrick > > > > 16 Oct 2012 16:01:27 : DEBUG : Container "/tmp/test/my, folder" doesn't > exist, creating it.. > Traceback (most recent call last): > File "/usr/local/bin/file-syncer", line 5, in <module> > pkg_resources.run_script('**file-syncer==0.2.1', 'file-syncer') > File "/usr/local/lib/python2.7/**dist-packages/distribute-0.6.** > 24-py2.7.egg/pkg_resources.py"**, line 499, in run_script > self.require(requires)[0].run_**script(script_name, ns) > File "/usr/local/lib/python2.7/**dist-packages/distribute-0.6.** > 24-py2.7.egg/pkg_resources.py"**, line 1235, in run_script > execfile(script_filename, namespace, namespace) > File "/usr/local/lib/python2.7/**dist-packages/file_syncer-0.2.** > 1-py2.7.egg/EGG-INFO/scripts/**file-syncer", line 4, in <module> > run() > File "/usr/local/lib/python2.7/**dist-packages/file_syncer-0.2.** > 1-py2.7.egg/file_syncer/run.**py", line 101, in run > concurrency=int(options.**concurrency)) > File "/usr/local/lib/python2.7/**dist-packages/file_syncer-0.2.** > 1-py2.7.egg/file_syncer/**syncer.py", line 72, in __init__ > self._setup_container() > File "/usr/local/lib/python2.7/**dist-packages/file_syncer-0.2.** > 1-py2.7.egg/file_syncer/**syncer.py", line 94, in _setup_container > container = driver.create_container(**container_name=self._** > container_name) > File > "/usr/local/lib/python2.7/**dist-packages/libcloud/**storage/drivers/atmos.py", > line 171, in create_container > return self.get_container(container_**name) > File > "/usr/local/lib/python2.7/**dist-packages/libcloud/**storage/drivers/atmos.py", > line 156, in get_container > meta = self._emc_meta(result) > File > "/usr/local/lib/python2.7/**dist-packages/libcloud/**storage/drivers/atmos.py", > line 469, in _emc_meta > return dict([x.split('=', 1) for x in meta]) > ValueError: dictionary update sequence element #9 has length 1; 2 is > required >
