No module named yoton - Using IEP with Cygwin

63 views
Skip to first unread message

coderb...@gmail.com

unread,
Jul 8, 2015, 4:30:16 PM7/8/15
to ie...@googlegroups.com
Hi,

IEP looks perfect for what I want: an interactive Python editor.  I downloaded the 64 bit version of it for Windows 7, but when it starts up I get the following error:

Traceback (most recent call last):

File "D:\Apps\iep\source\iep\iepkernel\start.py", line 47, in <module>

import yoton

ImportError: No module named yoton


The process failed to start (invalid command?). (1)


I added the following line after "import sys" inside of start.py:


print ('PATH', sys.path)


That dumped the following:


('PATH', ['/cygdrive/d/Apps/iep/source/iep/iepkernel', '/usr/lib/python2.7/site-packages/paramiko-1.15.2-py2.7.egg', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg', '/cygdrive/d/Apps/iep/source/iep/D', '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source\\iep;D', '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep;D', '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source;D', '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source\\iep\\yoton', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages'])


I'm a Cygwin user and use Python from Cygwin.  I'm guessing from the PATH environment variable that IEP doesn't like Cygwin paths.  Is there any way to get IEP working with Cygwin?


Thanks,


- Stephen White



coderb...@gmail.com

unread,
Jul 8, 2015, 4:36:00 PM7/8/15
to ie...@googlegroups.com, coderb...@gmail.com

I've attached my shell configuration.


- Stephen White 

 

iep_shell_config.jpg

Almar Klein

unread,
Jul 8, 2015, 4:54:39 PM7/8/15
to ie...@googlegroups.com
I have no experience with Cygwin. Is IEP running in it, or only the
Python interpreter? What *should* the paths look like?

If you're interested in trying to fix this, look in
iep/iepkernel/start.py and interpreter.py for the kernel-side and
iep/iepcore/kernelbroker.py for the setting of paths on the IDE side.

- Almar

On 08-07-15 22:36, coderb...@gmail.com wrote:
>
>
> On Wednesday, July 8, 2015 at 1:30:16 PM UTC-7, coderb...@hotmail.com wrote:
>
> Hi,
>
> IEP looks perfect for what I want: an interactive Python editor. I
> downloaded the 64 bit version of it for Windows 7, but when it
> starts up I get the following error:
>
> /Traceback (most recent call last): /
>
> /File "D:\Apps\iep\source\iep\iepkernel\start.py", line 47, in <module>/
>
> //
>
> /import yoton/
>
> /ImportError: No module named yoton /
>
>
> //
>
> /The process failed to start (invalid command?). (1)/
>
>
> I added the following line after "import sys" inside of start.py:
>
>
> print ('PATH', sys.path)
>
>
> That dumped the following:
>
>
> /('PATH', ['/cygdrive/d/Apps/iep/source/iep/iepkernel',
> '/usr/lib/python2.7/site-packages/paramiko-1.15.2-py2.7.egg',
> '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
> '/usr/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg',
> '/cygdrive/d/Apps/iep/source/iep/D',
> '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source\\iep;D',
> '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep;D',
> '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source;D',
> '/cygdrive/d/Apps/iep/source/iep/\\Apps\\iep\\source\\iep\\yoton',
> '/usr/lib/python27.zip', '/usr/lib/python2.7',
> '/usr/lib/python2.7/plat-cygwin', '/usr/lib/python2.7/lib-tk',
> '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload',
> '/usr/lib/python2.7/site-packages'])/
>
>
> I'm a Cygwin user and use Python from Cygwin. I'm guessing from the
> PATH environment variable that IEP doesn't like Cygwin paths. Is
> there any way to get IEP working with Cygwin?
>
>
> Thanks,
>
>
> - Stephen White
>
>
> I've attached my shell configuration.
>
>
> - Stephen White
>
> --
> You received this message because you are subscribed to the Google
> Groups "Interactive Editor for Python" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to iep_+uns...@googlegroups.com
> <mailto:iep_+uns...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

coderb...@gmail.com

unread,
Jul 8, 2015, 7:36:29 PM7/8/15
to ie...@googlegroups.com
Hi Almar,

Thanks for the very quick response!

Cygwin is a Bash shell for people like me who are stuck using Windows machines instead of proper *nix machines. ;-)  It has a huge support group and a lot of *nix functionality.  However, I dawned on me that I don't really need to run the Cygwin version of Python when using iep, so I downloaded a regular Windows version of Python and that appears to work just fine with iep.

Thanks for your help.

- Stephen White

keek...@gmail.com

unread,
Jul 19, 2015, 11:38:24 PM7/19/15
to ie...@googlegroups.com, coderb...@gmail.com
it is better that IEP can support cygwin env, because some modules such as pexpect must run under *nix, although module might have Win32 alternative...... 
Reply all
Reply to author
Forward
0 new messages