HeleneMuri / pythonxy

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

Desktop icon fails run (xyhome script missing) #147

Open GoogleCodeExporter opened 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? 2.6.2.0
2. Which components have you installed (Python(x,y) installer: component
page):
      b. Have you selected the "Full" component selection?
    Yes

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

5. Where did you install Python(x,y) itself?
    default. The installer dosent give me the option. Once I select 'Full'
on the first interface of the installer and hit 'Next' it directly starts
installing.

6. Have you installed Python(x,y):
     b. For "All users"

7. What is your operating system?
    Windows 7

8. When you installed Python(x,y), were you logged in as :
b. an administrator of the machine
9. If you are using Windows Vista, have you installed Python(x,y):
a. simply by double-clicking on the installer

10. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
    Did nothing. Had Python2.6.2 installed.

What steps will reproduce the problem?
1.Double click on the desktop shortcut
2.Windows runs the 'open with' option.
3.C:/Python26 does not contain the xyhome.pyw script

What is the expected output? What do you see instead?
Expected: Home console
Seen:'Open With' window.

Please provide any additional information below.

Original issue reported on code.google.com by chirag.r...@gmail.com on 31 Jan 2010 at 1:16

GoogleCodeExporter commented 9 years ago
[edit] what i meant by 'xyhome script missing' is that nothing happens when i 
try to
execute it with pythonw. In fact pythonw.exe dosent run itself.

Original comment by chirag.r...@gmail.com on 31 Jan 2010 at 2:27

GoogleCodeExporter commented 9 years ago
ok, i tried reinstalling, this time the 'recommended' option. Now the desktop 
icon is
at least the python(x,y) logo. However, nothing happens on double clicking the 
icon
other than the mouse pointer displaying busy for a couple of seconds

Original comment by chirag.r...@gmail.com on 31 Jan 2010 at 2:49

GoogleCodeExporter commented 9 years ago
this is the error i get when i run pythonxy in interactive mode:

Traceback (most recent call last):
  File "C:\Python26\Scripts\xyhome.pyw", line 20, in <module>
    from xy import xyhome
  File "C:\Python26\lib\site-packages\xy\xyhome.pyw", line 28, in <module>
    from xy.config import (CONF, STARTUP_PATH, LOG_PATH, PLUGINS, XY_VERSION,
  File "C:\Python26\lib\site-packages\xy\config.py", line 123, in <module>
    DOC_PATH = REGXY['DocPath']
KeyError: 'DocPath'
>>>

Original comment by chirag.r...@gmail.com on 1 Feb 2010 at 11:31

GoogleCodeExporter commented 9 years ago
I am having the same problem with Windows 7.

Original comment by bshaffs@gmail.com on 11 Mar 2010 at 6:47

GoogleCodeExporter commented 9 years ago
I am also having the same issue with the latest Python(x,y)-2.6.2.0 version. I 
am using 
Windows 7 and did not face any problems with the previous version of 
Python(x,y) 
(2.1.15). So it seems that there is something wrong with the latest installer 
or the 
chain of scripts that are executed on clicking the desktop icon.

Original comment by itarus.m...@gmail.com on 27 Mar 2010 at 5:59

GoogleCodeExporter commented 9 years ago
Thank you all for this bug report.

Could you please take a look at your registry settings for Python(x,y) and 
export the 
following key?

Current user only installation:
HKEY_CURRENT_USER\Software\Python(x,y)

All users installation:
HKEY_LOCAL_MACHINE\Software\Python(x,y)

Original comment by pierre.raybaut on 29 Mar 2010 at 6:03

GoogleCodeExporter commented 9 years ago
My registry entry is attached (from HKEY_CURRENT_USER).

Original comment by itarus.m...@gmail.com on 30 Mar 2010 at 5:26

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, 

I have encountered the same issue after installing latest version of Python 
(x,y) on
a vista pc. 

The initial problem appears to being unable get a handle to the IPython api but 
I
don't know why:
>>> ip = IPython.ipapi.get()
which returns ip = <None>

My registry entry for HKEY_CURRENT_USER is attached, which appears the same as
itarus.mail except for python version. 

Original comment by beatthec...@googlemail.com on 3 May 2010 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
Has anyone found a solution to this?  I am having the same problem with Windows 
Vista.  I've cleaned out the registry, installed as a regular user and as an 
administrator, rebooted many times, etc.  Basically every which way to get a 
clean install, and still this doesn't work.

Is there any way to access an older version of Python(x,y)?  I think the 
current release is buggy.

Original comment by daw...@gmail.com on 13 Sep 2010 at 4:03

GoogleCodeExporter commented 9 years ago
I solved it.  I'm not aware of another python or pythonw executable in my path, 
as I've uninstalled everything, searched the registry, etc.  However, changing 
the C:\python26{....} variables from the end of the path to the beginning seems 
to have resolved everything.  Perhaps there is something that pythonw calls 
that created a problem.

Thanks!

Original comment by daw...@gmail.com on 13 Sep 2010 at 4:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had a similar issue in Win7. I decided to try the 2.7.2.2rc1. This fixed a 
lot but I have another issue involving matplotlib and starting IPython. I wlll 
make a new issue for this.

Original comment by kevin...@gmail.com on 11 Apr 2012 at 11:26

GoogleCodeExporter commented 9 years ago
New install of Python(x,y) (2.7.2.3) stopped working. 
Manually invoking IDLE shows why:

Traceback (most recent call last):
  File "C:\Python27\Lib\site-packages\xy\xyhome.pyw", line 37, in <module>
    APP_PATH = osp.dirname(osp.realpath(__file__))
NameError: name '__file__' is not defined

Change :
APP_NAME = "xyhome"
APP_PATH = osp.dirname(osp.realpath(__file__))

TO:
APP_NAME = "xyhome"
APP_PATH = osp.dirname(osp.realpath(APP_NAME))

And you'll be back in the pink.

Original comment by stargaze...@gmail.com on 23 May 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Dear All,

i previously had some messy installations of Anaconda and Enthought 
simultaneously. Allthough i (think i) cleared everything thouroughly (registry 
and systemvariables should be cleared too - console doesnt know python or 
ipython anymore...), the installer of pythonxy warns me about python 2.7 being 
installed. If i ignore the warning and install the way it is described in the 
beginning, i have the same problem: no logo, no work :(
Do you think i can prevent this from happening before installing or should i 
try the two fixes mentioned above after installing?
Although this topic is kinda old i hope i still get answered.
Thanks a lot
Marcel

Original comment by MarcelGo...@aol.com on 26 Feb 2014 at 6:17

GoogleCodeExporter commented 9 years ago
I now have re-installed pythonxy with the 'full'-option. Still i do not have a 
proper Logo and the program does not start. Moreover in the above described 
path is not 'xy' folder.

I would be really glad if someone has any kind of idea as i already spent one 
whole day trying to fix this problem ://

Thanks a lot

Original comment by MarcelGo...@aol.com on 26 Feb 2014 at 10:08

GoogleCodeExporter commented 9 years ago
I installed Pythonxy 2.7.6.0 on Windows 7 and it worked fine but I felt that I 
had messed up the configuration (modules could not be called) so I uninstalled 
and reinstalled. Nothing worked, none of the desktop icons or any of the 
program links. Tried several things including ccleaner to no avail. 
In the end used 'regedit' and searched for "python" and deleted everything i 
found then did reinstall. Started working, I probably have messed up any other 
programes using python but I guess i can reinstall them if there is a problem. 
Hope that helps, but be careful as it is a crude appraoch if you deside to try 
it.

Original comment by denis.we...@gtempaccount.com on 20 Mar 2014 at 10:14

GoogleCodeExporter commented 9 years ago
Hello,

After a complete removal of all python installations from my Win7 PC, I cleaned 
my registry with CCleaner, checked that PATH had no reference to python and 
installed Pythonxy 2.7.6.1 (with CPython, cvxopt, pyodbc, and WinMerge). After 
clicking the "Python (x,y) Home" shortcut on my desktop no GUI window opened. 
When running xyhome.pyw from the command-line, no output showed up in the 
command window.

I can fix this by executing PATH="%PATH%":
> C:\Python27\Scripts\xyhome.pyw
> PATH="%PATH%"
> C:\Python27\Scripts\xyhome.pyw

There is no visible response to the first call of xyhome.pyw. The second call 
opens up the "Python(x,y) Home" window. All I can see the PATH=... line doing 
is replacing

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\Syste
m32\WindowsPowerShell\v1.0\;

with 

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\;

in other words %SystemRoot% and %SYSTEMROOT% become C:\Windows.

Is xyhome.pyw expected to work with "%SYSTEMROOT%" string in the PATH variable?

Thanks,
David

Original comment by david.m...@gmail.com on 29 Jun 2014 at 11:50