haluhak149 / pythonxy

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

Spyder fails to launch #659

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?
2.7.3.1

2. Which components have you installed (Python(x,y) installer:
    All the defaults, plus I added vpython, scipy.

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

5. Where did you install Python(x,y) itself?
    default path

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

7. What is your operating system?
Windows 7

8. Is the operating system 64 bit?
 No

9. When you installed Python(x,y), were you logged in as :
 a regular user

10. If you are using Windows Vista/7, have you installed Python(x,y):
 simply by double-clicking on the installer

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
 uninstalled any previous Python distribution 

What steps will reproduce the problem?
1. Reinstalling Python(x,y)
2. Opening Home screen
3. Clicking Spyder shortcut icon 

What is the expected output? What do you see instead?
I expect Spyder interface to open, but it just 'thinks' for a moment then does 
nothing. (In '--debug' mode a terminal window appears for a second then 
vanishes, but Spyder still does not open.)

Note: it was working fine the first time I downloaded Python(x,y) (same 
version), but today I clicked on it and it didn't run all of a sudden. I 
restarted my computer, uninstalled/re-installed the whole program, but no luck. 
I also found a previous thread the problem was someone's security scanner, so I 
added an exception for C:\Python27\Scripts\spyder, to no avail.

Original issue reported on code.google.com by asalm...@ssl.umd.edu on 22 May 2013 at 6:52

GoogleCodeExporter commented 9 years ago
1. check your path setting - PyQt should be listed first
2. Run "Reset Spyder" from the start menu 
start->Programs->Python(x,y)->spyder->Reset Spyder

Original comment by grizzly.nyo on 22 May 2013 at 7:50

GoogleCodeExporter commented 9 years ago
Thanks - The path does list PyQt4 first, and I ran Reset Spyder, but it still 
does not open. (Note: it will not open directly from the start menu either.)
Do you have another suggestion?

Original comment by amanda.s...@gmail.com on 29 May 2013 at 5:54

GoogleCodeExporter commented 9 years ago
please check 2.7.5.0

Original comment by grizzly.nyo on 6 Jun 2013 at 7:25

GoogleCodeExporter commented 9 years ago
1. Please open a command line 
2. enter the following:
"python c:\Python27\Scripts\spyder"
3. attach the output

Original comment by grizzly.nyo on 16 Jun 2013 at 2:47

GoogleCodeExporter commented 9 years ago
Thank you for your response. I did try 2.7.5.0, with the same result.

The output is as follows:

C:\Python27\Scripts\spyder
Traceback (most recent call last):
  File "C:\Python27\Scripts\spyder-script.py", line 9, in <module>
    load_entry_point('spyder==2.2.0', 'console_scripts', 'spyder')()
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 343, in load_entry
_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 2354, in load_entr
y_point
    return ep.load()
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 2060, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "C:\Python27\lib\site-packages\spyderlib\start_app.py", line 13, in <modu
le>
    from spyderlib.config import CONF
  File "C:\Python27\lib\site-packages\spyderlib\config.py", line 430, in <module
>
    subfolder=SUBFOLDER, backup=True, raw_mode=True)
  File "C:\Python27\lib\site-packages\spyderlib\userconfig.py", line 108, in __i
nit__
    self.load_from_ini()
  File "C:\Python27\lib\site-packages\spyderlib\userconfig.py", line 147, in loa
d_from_ini
    self.read(self.filename())
  File "C:\Python27\lib\ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "C:\Python27\lib\ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: C:\Users\asalmoir\.spyd
er2\.spyder.ini
        [line 268]: 'in_python'

Original comment by amanda.s...@gmail.com on 17 Jun 2013 at 4:36

GoogleCodeExporter commented 9 years ago
backup C:\Users\asalmoir\.spyder2\.spyder.ini and delete it.

Try again.

Original comment by grizzly.nyo on 17 Jun 2013 at 4:38

GoogleCodeExporter commented 9 years ago
Exactly the same problem for me. I Can't launch spyder. (windows XP)

I've tried "python c:\Python27\Scripts\spyder". There is an output, but it 
immediately disappears (window closed)

Do you have an idea ?

Original comment by sansoliv...@gmail.com on 30 Jun 2013 at 10:17

GoogleCodeExporter commented 9 years ago
Please try this from the command line.

Original comment by grizzly.nyo on 1 Jul 2013 at 2:27

GoogleCodeExporter commented 9 years ago
I deleted the spider.ini.bak file and tried again.
The file was re-created and the output was exactly the same.

Original comment by amanda.s...@gmail.com on 1 Jul 2013 at 4:01

GoogleCodeExporter commented 9 years ago
Delete C:\Users\asalmoir\.spyder2\.spyder.ini - not the backup.

Original comment by grizzly.nyo on 5 Jul 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Sorry, to clarify, there was no file named \.spyder2\.spyder.ini so I assumed 
you meant the other one. There is one called \.spyder2\.spyder - type is a 
configuration file. Is that it?

Original comment by amanda.s...@gmail.com on 8 Jul 2013 at 3:48

GoogleCodeExporter commented 9 years ago
Yes.
בתאריך 8 ביול 2013 18:49, מאת <pythonxy@googlecode.com>:

Original comment by grizzly.nyo on 8 Jul 2013 at 3:53

GoogleCodeExporter commented 9 years ago
OK it seems to be working now. 
I deleted that file, and also had just reinstalled Python(x,y) again and 
restarted my computer.
Thanks for the help!

Original comment by amanda.s...@gmail.com on 10 Jul 2013 at 5:42

GoogleCodeExporter commented 9 years ago
I am facing the above issue with python(x,y). Version: 2.7.5.0. OS: Windows XP, 
service pack 3. 

I tried removing the .spyder.ini file, reinstalled the software and rebooted 
the machine, nothing seems to work.

Following is the output of "python c:\Python27\Scripts\spyder"

Traceback (most recent call last):
  File "c:\Python27\Scripts\spyder", line 3, in <module>
    start_app.main()
  File "C:\Python27\lib\site-packages\spyderlib\start_app.py", line 72, in main
    from spyderlib import spyder
  File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 112, in <module>
    from spyderlib.plugins.ipythonconsole import IPythonConsole
  File "C:\Python27\lib\site-packages\spyderlib\plugins\ipythonconsole.py", line
 31, in <module>
    from IPython.frontend.qt.kernelmanager import QtKernelManager
  File "C:\Python27\lib\site-packages\IPython\frontend\qt\kernelmanager.py", line
 9, in <module>
    from IPython.zmq.kernelmanager import KernelManager, SubSocketChannel, \
  File "C:\Python27\lib\site-packages\IPython\zmq\__init__.py", line 67, in <module>
    check_for_zmq('2.1.4')
  File "C:\Python27\lib\site-packages\IPython\zmq\__init__.py", line 51, in chec
k_for_zmq
    import zmq
  File "C:\Python27\lib\site-packages\zmq\__init__.py", line 35, in <module>
    _libzmq = ctypes.CDLL(bundled[0], mode=ctypes.RTLD_GLOBAL)
  File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127] The specified procedure could not be found

Original comment by santosh....@gmail.com on 1 Oct 2013 at 1:57

GoogleCodeExporter commented 9 years ago
I have exactly the same problem, with the same output.

Original comment by dmitry.k...@gmail.com on 6 Dec 2013 at 2:32

GoogleCodeExporter commented 9 years ago
repair python but not python(x,y).Then it will be ok

Original comment by hanmagei...@gmail.com on 28 Dec 2013 at 2:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same problem and the same output. I tried the suggested above 
solutions and have no proper solution. I don't know how to "repair python but 
not python(x,y)

Original comment by jmbeldal...@gmail.com on 10 Jan 2014 at 12:54

GoogleCodeExporter commented 9 years ago
Hello Everyone ,  I know this is a very irritating issue . I was getting from 1 
week , i tried all the troubleshoot provided on this q&A and other forums .

This is what helped me ,,  i uninstalled pyQT , spyder , python (both 32 and 
64) .. 

Installed python 64 bit , then pyqt and then spyder .. it works now...

Original comment by shikhar....@gmail.com on 27 Jan 2014 at 10:43

GoogleCodeExporter commented 9 years ago
I have the same issue -- one once Windows 7 computer it stops launching 
sometimes.

My solution, working for me, is to reinstall Spyder, but uninstall does not 
completely remove all hidden file. Do the following:
* Uninstall spyder
* make sure folder settings show hidden files (Tools>Folder Option>ViewTab -- 
click "show hidden files"
* Go to C:\Users\yourusername -- delete the whole ".spyder2" directory
* Reinstall spyder -- works again at least with my PC

Original comment by max.koe...@gmail.com on 28 Jan 2014 at 6:44

GoogleCodeExporter commented 9 years ago
I tried a direct and brute force version without uninstalling: deleting 
.spyder2 directory. Run spyder again and it worked for me.

Original comment by reymond...@gmail.com on 13 Feb 2014 at 3:00

GoogleCodeExporter commented 9 years ago
Newer Python(x, y) no longer supports Windows XP. As MS will stop all support 
as of April 2014 (2 months from now).

Please use an older version.

Original comment by grizzly.nyo on 22 Feb 2014 at 3:18

GoogleCodeExporter commented 9 years ago
I had the same problem. Then I also run "python c:\Python27\Scipts\spyder". 
then it shows some error. Then go to .spyder2 folder, and delete the file 
.spyder.ini, run the spyder again. It works. Thanks.

Original comment by kevinwon...@gmail.com on 21 Aug 2014 at 6:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had the same problem with Spyder (Windows8 64 bits) but i didn't found the 
file in .spyder folder : spyder.ini so i deleted .spyder (a configuration file) 
and now it works.Thanks  

Original comment by lecoztan...@gmail.com on 11 Sep 2014 at 7:48

GoogleCodeExporter commented 9 years ago
I had exactly the same problem (spyeder does not launch from python(x,y) tool), 
but you can fix it by going to the
C:\Users\Name\.spyder2

directory and remove the complete directory called spyder.lock

Now the launcher did work. I think the last time I did not close spider 
properly and therefore the lock file was still left. No need to reinstall 
everything anyway

Original comment by eelc...@gmail.com on 13 Sep 2014 at 11:23

GoogleCodeExporter commented 9 years ago
I changed C:\Python27\Scripts\spyder-script.py to:

#!python.exe
from spyderlib import start_app
start_app.main()

and worked fine

Original comment by glen.j.b...@gmail.com on 8 Dec 2014 at 3:45

GoogleCodeExporter commented 9 years ago
I just removed directory called .spyder2 and it works ;) !

Original comment by roman.ho...@gmail.com on 11 Dec 2014 at 1:42

GoogleCodeExporter commented 9 years ago
Deleting C:\Users\<user>\.spyder2\spyder.ini and then starting Spyder worked 
for me.

Original comment by neerav1...@gmail.com on 2 Jan 2015 at 8:25

GoogleCodeExporter commented 9 years ago
I had the same problem. I just deleted the directory .spyder2 and it worked for 
me

Original comment by Youness....@gmail.com on 14 Apr 2015 at 3:00

GoogleCodeExporter commented 9 years ago
I accidentally saved something in the spyder.lock file and that started 
creating a bunch of other files in the same directory. make sure there is only 
one original spyder.lock file and delete any files in those files.

Original comment by Rodolfoe...@gmail.com on 21 May 2015 at 8:10