kujira70 / pythonxy

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

Installation did not create Console2 Tab definitions #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?
Python(x,y) 2.6.5.0

2. Which components have you installed (Python(x,y) installer: component
page):
Manually selected plugins - defaults + Cython, Sphinx
De-selected SciTE

3. Have you selected the option "Customize installation directories"?
b. No

4. If the answer to 3. is yes, what installation directories have you
chosen?
    n/a
5. Where did you install Python(x,y) itself?
a. default path
6. Have you installed Python(x,y):
    a. For "Current user only"
7. What is your operating system?
b. Windows Vista
8. When you installed Python(x,y), were you logged in as :
a. a regular user
9. If you are using Windows Vista, have you installed Python(x,y):
a. simply by double-clicking on the installer
    And also accepting the UAC popup
10. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
b. you uninstalled any previous Python distribution (including the
official .msi)
c. you cleaned the Windows registry by removing all Python-related keys
d. you cleaned the environment variables by removing all deprecated
entries
I previously had Python(x,y) 2.6.2 installed, but that exhibited similar 
issues so a clean install was my choice.

What steps will reproduce the problem?
1.  Open Python(x,y)
2.  Click "Open selected shell in Console2" button 

What is the expected output? What do you see instead?
Expected output is that Console2 opens an IPython environment.  Instead, 
nothing happens.

Please provide any additional information below.
It looks like Console2 is being executed using the following line in 
xyhome.pyw (~line 575)
        thread.start_new_thread(subprocess.call, ('Console.exe -t 
"'+self.consoles[self.cb_consoles.currentIndex()][0]+'"',) )

which, after adding a print statement for the self.consoles argument, would 
lead to command-line options like:
Console.exe -t "IPython(x,y)"
Console.exe -t "IPython (Qt)"
etc.

If I execute any of these at the normal command prompt, nothing happens, 
however Console.exe by itself *does* execute properly.  The Console 
documentation (under "Running Console" says that defining a startup tab 
using the -t option requires a tab already defined in the Console settings.  
When I open Console by itself, the only tab that is defined is "Console2". 
If I run
Console.exe -t "Console2"
then Console opens as expected.  The settings come from C:\Program 
Files\pythonxy\console\console.xml, which do not contain any of the IPython 
tab definitions.  It looks like there's something in console-scite.xml, but 
using SciTE as an editor (which I am not)

I can open the interactive console successfully using the cmd.exe option, 
but Console is just, well, prettier.

Original issue reported on code.google.com by twhitc...@gmail.com on 13 Apr 2010 at 11:49

GoogleCodeExporter commented 9 years ago
I think I observed something similar.  To get the "Open console here" context 
menu 
entry to work, I had to edit the registry and remove the "-t" switch (I think 
it was 
"-t cmd").  The "Open IPython console here" entry isn't working either, though 
I don't 
really use it so I haven't looked for a workaround.

Original comment by DavidAnt...@gmail.com on 14 Apr 2010 at 12:37

GoogleCodeExporter commented 9 years ago
There's a console-scite.xml file in the same directory.  I was able to edit 
that file, 
remove the "-editor SciTE" portions, and save as console.xml - doing this now 
allows 
Console to open a window.

Original comment by twhitc...@gmail.com on 14 Apr 2010 at 6:52

GoogleCodeExporter commented 9 years ago
Fixed with Console 2.0.146

Original comment by pierre.raybaut on 22 Apr 2010 at 12:01