RedSunCMX / pythonxy

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

On Windows 2000 server, after installing Python(x,y), can't import numpy, scipy, etc #719

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.7.5.2

2. Which components have you installed (Python(x,y) installer:
componentpage):
    a. Have you selected the "Recommended" component selection?
    b. Have you selected the "Full" component selection?
c. Have you selected manually plugins in the component list?
Whatplugins?

I selected "Full".

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

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

5. Where did you install Python(x,y) itself?
a. default path
b. custom path, which one?

Default path.

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

7. What is your operating system?
a. Windows XP
b. Windows Vista
c. Windows 7
d. Windows 8
Windows 2000, 5.00.2195 Service Pack 4 server.

8. Is the operating system 64 bit?
a. Yes
b. No
Yes.

9. When you installed Python(x,y), were you logged in as :
a. a regular user
b. an administrator of the machine
A regular user.

10. If you are using Windows Vista/7, have you installed Python(x,y):
a. simply by double-clicking on the installer
    b. by right-clicking on the installer and selecting "Run as an
administrator"

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):
a. you didn't do anything, you installed Python(x,y) directly on your
machine without precaution
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 did b and c.

What steps will reproduce the problem?
1.install Python(x,y)-2.7.5.2
2.go to Python console
3.type "import numpy" and "import scipy"

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

>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\numpy\__init__.py", line 153, in <module>
    from . import add_newdocs
  File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 17, in <module>
    from . import scimath as emath
ImportError: cannot import name scimath

>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\scipy\__init__.py", line 70, in <module>
    from numpy import show_config as show_numpy_config
  File "C:\Python27\lib\site-packages\numpy\__init__.py", line 153, in <module>
    from . import add_newdocs
  File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 17, in <module>
    from . import scimath as emath
ImportError: cannot import name scimath

Please provide any additional information below.

I installed Python(x,y)- 2.7.5.2 successfully 1 month ago on another machine 
which OS is Windows 7, I had no problems with "import numpy" and "import scipy".

I am wondering if the issue I met this time is related with Window 2000 server.

Original issue reported on code.google.com by kay.wan...@gmail.com on 6 Feb 2014 at 3:19

GoogleCodeExporter commented 9 years ago
Correction: 8. Is the operating system 64 bit?

No, The OS is 32 bit.

Original comment by kay.wan...@gmail.com on 6 Feb 2014 at 4:13

GoogleCodeExporter commented 9 years ago
I'm sorry according to Wikipedia windows 2000 server was discontinued in 2010.

The best workaround I can suggest (except upgrading to a supported OS) is to 
keep using 2.7.5.2.

Original comment by grizzly.nyo on 8 Feb 2014 at 9:04

GoogleCodeExporter commented 9 years ago
I have a similar, perhaps exactly the same, problem.
I use iPython and have recently installed Python(x,y)-2.7.5.2

My answers to the questions you asked of kay.wan are the same, except that my 
os is windows 7 64bit.

In ipython notebook, I get:::

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-648ddf911117> in <module>()
----> 1 import numpy as np
      2 import scipy as sp
      3 import time
      4 import csv
      5 import matplotlib.pyplot as plt

C:\Python27\lib\site-packages\numpy\__init__.py in <module>()
    151         return loader(*packages, **options)
    152 
--> 153     from . import add_newdocs
    154     __all__ = ['add_newdocs', 'ModuleDeprecationWarning']
    155 

C:\Python27\lib\site-packages\numpy\add_newdocs.py in <module>()
     11 from __future__ import division, absolute_import, print_function
     12 
---> 13 from numpy.lib import add_newdoc
     14 from numpy.lib import scimath as emath
     15 

C:\Python27\lib\site-packages\numpy\lib\__init__.py in <module>()
     15 from .ufunclike import *
     16 
---> 17 from . import scimath as emath
     18 from .polynomial import *
     19 #import convertcode

ImportError: cannot import name scimath

Original comment by lewis.jo...@gmail.com on 13 Feb 2014 at 3:09

GoogleCodeExporter commented 9 years ago
I installed an old version 2.7.2.0, all is okay.

Original comment by kay.wan...@gmail.com on 13 Feb 2014 at 3:28