haluhak149 / pythonxy

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

Error 127 in Spyder #670

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Thank you for your wonderful program update! But a serious error has crept into 
it now.

1. What version of Python(x,y) have you installed?

2.7.5.0

2. Which components have you installed (Python(x,y) installer: componentpage):

"Full" component selection.

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

No

4. If the answer to 3. is yes, what installation directories have you chosen?

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 XP

8. Is the operating system 64 bit?

No

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

an administrator of the machine

10. If you are using Windows Vista/7, have you installed Python(x,y):

11. Regarding installed software 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

What steps will reproduce the problem?

1. Start Spyder from Start/All Programs/Python(x,y)/Spyder/Spyder menu.

What is the expected output? What do you see instead?

Spyder window doesn't appear. The message is displayed in the console instead:

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\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 check_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]

Original issue reported on code.google.com by M.Markov...@gmail.com on 11 Jun 2013 at 11:26

GoogleCodeExporter commented 9 years ago
Same problem here. ipython also yields an error.
""The procedure entry point InitializeCriticalSectionEx" could not be located 
in the dymamic link library KERNEL32.dll"

Original comment by sylvain....@gmail.com on 11 Jun 2013 at 12:18

GoogleCodeExporter commented 9 years ago
Same problem here. But the problem is also when i launch the ipython consol ...

Original comment by sylvain....@ensta-bretagne.fr on 11 Jun 2013 at 12:45

GoogleCodeExporter commented 9 years ago
When i install ipython 0.12.1 from http://archive.ipython.org/release/0.12.1/ 
spyder it's OK

Original comment by sylvain....@ensta-bretagne.fr on 11 Jun 2013 at 12:54

GoogleCodeExporter commented 9 years ago
> When i install ipython 0.12.1 from http://archive.ipython.org/release/0.12.1/ 
spyder it's OK

Thanks for solution! Both ipython 0.13.1 and 0.13.2 are non functional in this 
issue. Strange, but ipython qt keeps same error after replacement.

Original comment by M.Markov...@gmail.com on 12 Jun 2013 at 3:19

GoogleCodeExporter commented 9 years ago
issues comes from a zmq dependency - libpgm. When compiled on Vista+ it uses 
API which does not exist on WinXP.

try https://pythonxy.googlecode.com/files/pyzmq-13.0.2-4_py27.exe instead. 
Don't install old IPython (which lacks the notebook feature).

This highlights a deeper problem - supporting WinXP is increasingly difficult. 
It both requires resources and prevents adding features.

Original comment by grizzly.nyo on 12 Jun 2013 at 8:03

GoogleCodeExporter commented 9 years ago
> try https://pythonxy.googlecode.com/files/pyzmq-13.0.2-4_py27.exe instead.

Thanks for the advice - it solves both problems! But Windows XP is no longer 
officially supported. So can we expect integration of fixes in the release?

Original comment by M.Markov...@gmail.com on 13 Jun 2013 at 2:55

GoogleCodeExporter commented 9 years ago
It does not seem to work on my machine. Win XP Pro, 32 bit. 

Original comment by andreaar...@gmail.com on 18 Jun 2013 at 12:26

GoogleCodeExporter commented 9 years ago
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\aamaroli>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\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", lin
e 9, in <module>
    from IPython.zmq.kernelmanager import KernelManager, SubSocketChannel, \
  File "C:\Python27\lib\site-packages\IPython\zmq\__init__.py", line 67, in <mod
ule>
    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

Any suggestion, please?

Original comment by andreaar...@gmail.com on 21 Jun 2013 at 12:41

GoogleCodeExporter commented 9 years ago
Your ZMQ does not seem like something provided by Pxy. Please install the 
binary provided in the link above.

make sure no Ipython or spyder windows are open!

Original comment by grizzly.nyo on 21 Jun 2013 at 6:34

GoogleCodeExporter commented 9 years ago
This very binary was run by the IT guy who is in charge of my desktop. I cannot 
do anything more thant this. 

Original comment by andreaar...@gmail.com on 25 Jun 2013 at 1:22

GoogleCodeExporter commented 9 years ago
same problem, grizzly.nyo's link helps, thanks. python(x,y) h5py don't works 
too, have reinstall from 
http://h5py.googlecode.com/files/h5py-2.1.3.win32-py2.7.msi and all is Ok

Original comment by AO.Ko...@gmail.com on 3 Jul 2013 at 10:47

GoogleCodeExporter commented 9 years ago
As noted in the blog - WindowsXP depends on the underlying packages 
compatibility.

current HDF5 Win32 requires Vista+ for thread support.

Please remember that WindowsXP will follow Windows 2000 into history at April 
2013. Better start preparing.

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

GoogleCodeExporter commented 9 years ago
Had the same problem, and used both installations:
https://pythonxy.googlecode.com/files/pyzmq-13.0.2-4_py27.exe
and
http://h5py.googlecode.com/files/h5py-2.1.3.win32-py2.7.msi

Now, I get the following message:

C:\Python27\Scripts>spyder.exe
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_entry_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__'])
ImportError: No module named spyderlib.start_app

My specs are the same as stated above.
Any ideas?

Original comment by gilboal...@gmail.com on 3 Aug 2013 at 10:00

GoogleCodeExporter commented 9 years ago
Sorry I had another problem. a) I installed python(x,y) v.2.7.5.0, in windows 
7, 32bit; it was fine, simple scripts  in python works properly. b) I have fail 
inporting "glpk" module. I´ve downloaded GnuWin32, and add the path 
"c:/archivos de programa /GnuWin32/bin" to the pythonpath administrator and 
does`n work. c) The error message is: "import glpk  # Import the GLPK module 
ImportError: No module named glpk" d) In resume: syper don´t read (can´t 
find) de glpk module.
Thanks in advance.
JMSanz. Caracas. Venezuela  

Original comment by jmsan...@gmail.com on 10 Sep 2013 at 1:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi muxuezi, where can I find the zip file?  Thanks!

Original comment by jiu...@gmail.com on 12 Nov 2013 at 7:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
1.Unzip zmq.zip and put all in C:\Python27\Lib\site-packages\zmq
2.Use easy_install pyzmq-2.1.11-py2.7-win32.egg, it's ok too.

Original comment by muxuezi on 13 Nov 2013 at 1:59

Attachments:

GoogleCodeExporter commented 9 years ago
If problem also exit, try uninstall ipython by easy_install, and reinstall 
ipython 1.1.0.

Original comment by muxuezi on 13 Nov 2013 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago
python(x,y) is perfect! Thanks a lot!

Original comment by muxuezi on 13 Nov 2013 at 2:08

GoogleCodeExporter commented 9 years ago
Thanks a lot muxuezi!

Original comment by jiu...@gmail.com on 13 Nov 2013 at 6:00

GoogleCodeExporter commented 9 years ago
Enjoy!
If you use CJK Font(Japanese/Chinese/Korean, which are double-width character 
languages) in WinXp, maybe cmd "ls" in Console shows strange result.

Soultion: From "Console Help(chm in \pythonxy\console)-Language Setting"
run Console. Unhide windows console (View->Console window) and open its 
properties dialog. Go to "Font" tab. Raster Fonts will be selected in the fonts 
list, choose the other, save, ok.

如果是中文xp,直接在ipython里面输入ls命令,显示十分糟糕,
咋整?
解决方案:
可以在增强Console里面“右键-View->Console 
window”,然后是cmd模式(Console2 command 
window),在标题处“右键-属性-字体-选择非点阵字体-确定-保��
�属性,供同样标题的窗口使用-确定",这样中文字体就好看��
�。

Original comment by muxuezi on 14 Nov 2013 at 3:35

Attachments: