-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'spawn' object has no attribute 'ptyproc' #2
Comments
If I were to hazard a guess I would say that some of your dependencies are out of date. I would suggest updating your dependencies such as Pexpect, pyzmq, and IPython. The easiest way to do this is to install the anaconda python distribution for the python 3 series. It installs in your local directory so you dont need to worry about permissions. If that doesn't work let me know. Its been a while since I worked on this so it may very well be broken. |
It looks like you are using the development version of pexpect. Try switching to Pexpect 3.3 |
I am now using anaconda and Pexpect 3.3, but still get the following error: Admins-MacBook-Pro-6:~ benjamingerard$ ipython console --kernel IDL IPython Console 3.2.0ValueError Traceback (most recent call last) /Users/benjamingerard/anaconda/lib/python2.7/runpy.pyc in _run_code(code=<code object at 0x1005ed230, file "/Use...b/python2.7/site-packages/idl_kernel.py", line 1>, run_globals={'EOF': <class 'pexpect.EOF'>, 'IDLKernel': <class 'main.IDLKernel'>, 'IPKernelApp': <class 'IPython.kernel.zmq.kernelapp.IPKernelApp'>, 'Kernel': <class 'IPython.kernel.zmq.kernelbase.Kernel'>, 'builtins': <module 'builtin' (built-in)>, 'doc': None, 'file': '/Users/benjamingerard/.local/lib/python2.7/site-packages/idl_kernel.py', 'loader': <pkgutil.ImpLoader instance>, 'name': 'main', 'package': '', ...}, init_globals=None, mod_name='main', mod_fname='/Users/benjamingerard/.local/lib/python2.7/site-packages/idl_kernel.py', mod_loader=<pkgutil.ImpLoader instance>, pkg_name='') /Users/benjamingerard/.local/lib/python2.7/site-packages/idl_kernel.py in () /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/config/application.pyc in launch_instance(cls=<class 'IPython.kernel.zmq.kernelapp.IPKernelApp'>, argv=None, **kwargs={'kernel_class': <class 'main.IDLKernel'>}) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelapp.pyc in initialize(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, argv=None) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/config/application.pyc in catch_config_error(method=, app=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, _args=(None,), *_kwargs={}) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelapp.pyc in initialize(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>, argv=None) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/kernel/zmq/kernelapp.pyc in init_kernel(self=<IPython.kernel.zmq.kernelapp.IPKernelApp object>) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/IPython/config/configurable.pyc in instance(cls=<class 'main.IDLKernel'>, _args=(), *_kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <IPython.kernel.zmq.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <IPython.kernel.zmq.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None}) /Users/benjamingerard/.local/lib/python2.7/site-packages/idl_kernel.py in init(self=<main.IDLKernel object>, *_kwargs={'iopub_socket': <zmq.sugar.socket.Socket object>, 'log': <logging.Logger object>, 'parent': <IPython.kernel.zmq.kernelapp.IPKernelApp object>, 'profile_dir': <IPython.core.profiledir.ProfileDir object>, 'session': <IPython.kernel.zmq.session.Session object>, 'shell_streams': [<zmq.eventloop.zmqstream.ZMQStream object>, <zmq.eventloop.zmqstream.ZMQStream object>], 'stdin_socket': <zmq.sugar.socket.Socket object>, 'user_ns': None}) /Users/benjamingerard/.local/lib/python2.7/site-packages/idl_kernel.py in _start_idl(self=<main.IDLKernel object>) /Users/benjamingerard/anaconda/lib/python2.7/site-packages/pexpect/replwrap.pyc in init(self=<pexpect.replwrap.REPLWrapper object>, cmd_or_spawn=<pexpect.spawn object>, orig_prompt=u'GDL> ', prompt_change=None, new_prompt=u'[PEXPECT_PROMPT>', continuation_prompt=u'[PEXPECT_PROMPT+') /Users/benjamingerard/anaconda/lib/python2.7/site-packages/pexpect/init.pyc in setecho(self=<pexpect.spawn object>, state=False) ValueError: file descriptor cannot be a negative integer (-1) Shutting down kernel |
Can you tell me what from distutils.spawn import find_executable
print(find_executable("idl")) gives when you run it in the python console |
In [44]: from distutils.spawn import find_executable In [45]: print(find_executable("idl")) |
That's the problem. So this can be caused by two things
The first you can fix by installing IDL. The second is more complicated since I am really not familiar with virtualenv. You may try running If neither of those things work I would suggest opening an ipython issue, referencing this issue |
This issue was sent to me by email.
I am trying to download your IPython IDL kernel, running into the following error message in the command line after running:
can you help me fix this or direct me to someone who can?
The text was updated successfully, but these errors were encountered: