maxssage / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

ImportError: No module named Shell #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to open Interactive consoles, IPython(x,y) Console 2
2.
3.

What is the expected output? What do you see instead?
Before installing 2.1.12 Console 2 opened IPython with numpy, scipy, plt, etc.

Now I get this error in a shell and am returned to the Widows console
command prompt:

Traceback (most recent call last):
  File "C:\Python25\scripts\ipy.py", line 38, in <module>
    import IPython
  File "C:\Python25\scripts\IPython.py", line 40, in <module>
    import Shell
ImportError: No module named Shell

What version of the product are you using? On what operating system?

Python(x,y) on Windows XP

Please provide any additional information below.

I can load IPython with a script started from C:\Python25\Work

   import IPYthon
   import IPYthon.Shell
   IPython.Shell.start().mainloop(sys_exit=1)

then from within IPython:

   import numpy
   import scipy
   from matplotlib import pyplot as plt

but the funcionality is not the same as the previous version of Python(x,y)
and I suspect the environment is not the same.

Original issue reported on code.google.com by WGaryWil...@gmail.com on 9 May 2009 at 2:28

GoogleCodeExporter commented 9 years ago
Python(x,y) does not provide the Python scripts which seem to be the cause of 
your
problems:
   * C:\Python25\scripts\ipy.py: there is no such file in any of Python(x,y) modules
   * C:\Python25\scripts\ipython.py: this file is provided by Python(x,y) but you
seem to have replaced it with another version (there are only 29 lines on the
original version -- and there is no 'import Shell' statement)

In other words, these issues are not directly related to Python(x,y) but are 
caused
by either (a) a Python(x,y) install on top of another Python distribution or 
(b) a
Python(x,y) install 'patched' by installing other modules related to IPython.

Original comment by pierre.raybaut on 24 May 2009 at 12:50