[IPython-dev] IPython Parallel KeyError
MinRK
benjaminrk at gmail.com
Sun Aug 4 18:46:13 EDT 2013
Sounds like a version mismatch - make sure you don't have multiple versions
of IPython installed. Current IPython will not write a connection file
without the 'key' or 'signature_scheme' keys.
On Sun, Aug 4, 2013 at 9:06 AM, Dave Hirschfeld
<dave.hirschfeld at gmail.com>wrote:
> >
> >
>
> I've updated to the latest IPython and I'm now seeing a KeyError when
> trying
> to instantiate a parallel Client as neither `key` nor `signature_scheme`
> are
> in the `extra_args` dict.
>
> Is this a bug? I'm sure this config has worked previously.
>
>
> In [4]: from IPython.parallel import Client
> rc = Client(profile='mygrid')
>
> ---------------------------------------------------------------------------
> KeyError Traceback (most recent call last)
> <ipython-input-4-30c5194e693f> in <module>()
> 1 from IPython.parallel import Client
> ---> 2 rc = Client(profile='mygrid')
>
> c:\dev\code\ipython\IPython\parallel\client\client.pyc in __init__(self,
> url_file, profile, profile_dir, ipython_dir, context, debug, sshserver,
> sshkey, password, paramiko, timeout, cluster_id, **extra_args)
> 463 extra_args['packer'] = cfg['pack']
> 464 extra_args['unpacker'] = cfg['unpack']
> -> 465 extra_args['key'] = cast_bytes(cfg['key'])
> 466 extra_args['signature_scheme'] = cfg['signature_scheme']
> 467
>
> KeyError: 'key'
>
>
> In [5]: %debug
>
> > c:\dev\code\ipython\ipython\parallel\client\client.py(465)__init__()
> 464 extra_args['unpacker'] = cfg['unpack']
> -> 465 extra_args['key'] = cast_bytes(cfg['key'])
> 466 extra_args['signature_scheme'] = cfg['signature_scheme']
>
> ipdb> extra_args.keys()
> ['packer', 'unpacker']
> ipdb> exit
>
>
> In [7]: from IPython import sys_info
> print sys_info()
>
> {'codename': 'An Afternoon Hack',
> 'commit_hash': 'c2cabd0',
> 'commit_source': 'repository',
> 'default_encoding': 'cp1252',
> 'ipython_path': 'c:\\dev\\code\\ipython\\IPython',
> 'ipython_version': '1.0.0-dev',
> 'os_name': 'nt',
> 'platform': 'Windows-2008ServerR2-6.1.7601-SP1',
> 'sys_executable': 'C:\\dev\\bin\\Python27\\python.exe',
> 'sys_platform': 'win32',
> 'sys_version': '2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit
> (AMD64)]'}
>
>
> In case it helps the ipcontroller-client.json file is shown below (with
> values blanked out):
>
> {
> "control": XXXX,
> "task": XXXX,
> "notification": XXXX,
> "exec_key": "XXXX",
> "task_scheme": "leastload",
> "mux": XXXX,
> "iopub": XXXX,
> "ssh": "",
> "registration": XXXX,
> "interface": "XXXX",
> "pack": "json",
> "unpack": "json",
> "location": "XXXX"
> }
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20130804/e6279dd9/attachment-0001.html>
More information about the IPython-dev
mailing list