molodiuc / pythonxy

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

Ipython 'random_sample' is not defined #238

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.6.5.6
2. Which components have you installed (Python(x,y) installer: component
page):  Recommended
3. Have you selected the option "Customize installation directories"?
b. No
5. Where did you install Python(x,y) itself?
a. default path
6. Have you installed Python(x,y):
    b. For "All users"
7. What is your operating system?
a. Windows XP
8. When you installed Python(x,y), were you logged in as :
a. a regular user
10. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
   Installed 2.6.5.1, then updated to 2.6.5.6 by each .2,.3,.4,.5

What steps will reproduce the problem?
1. Uninstalled everything, reinstalled 2.6.5.6
2. Uninstalled everything reinstalled 2.6.5.1 and updated

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

When I run ipython I get the following error:

traceback:
  File "C:\Python26\scripts\ipython.py", line 26, in <module>
import IPython.Shell
  File "C:\Python26\Lib\site-packages\IPython\ipstruct.py", line 17, in <module> from Ipython.genutils import list2dict2
  File"C:\Python26\Lib\site-packages\genutils.py" line 20 <module> import doctest
  File "C:\Python\lib\tempfile.py",line34 in <module> 
from random import Random as _Random
  File"C:\Python26\lib\doctest.py",line 99, in <module> import unittest, difflib, pdb, tempfile
  File"C:\Python26\Lib\site-packages\numpy\random\__init__.py, line 90, in <module> 
  ranf = random = sample = random_sample
NameError: name 'random_sample' is not defined  

Please provide any additional information below.

Running Spyder doesn't work, nothing pops up, but works from a python shell.  

There's a thread at 
http://www.mail-archive.com/numpy-discussion@scipy.org/msg18931.html but I 
haven't got their solution to work out of ignorance.

Cheers

Original issue reported on code.google.com by peacock....@gmail.com on 21 Mar 2011 at 6:49

GoogleCodeExporter commented 9 years ago
Fixed the ipython problem.  PYTHONPATH had the first directory as numpy, for 
what ever reason and was looking at the wrong random module.  

Spyder still doesn't work and it crashes Python(xy) on version 2.6.5.6

Original comment by peacock....@gmail.com on 21 Mar 2011 at 11:25

GoogleCodeExporter commented 9 years ago
Please re-install to latest Python( x, y ) - 2.6.6.0. And report if the problem 
persist.

Original comment by grizzly.nyo on 19 Apr 2011 at 9:03

GoogleCodeExporter commented 9 years ago
I removed pythonxy 2.6.5.6 and installed python 2.6.6.0 and launching Spyder
still crashes python(xy). Got the following error message when calling
spyder from the command prompt:

AccessInit: hash collision: 3 for both 1 and 1.

I found a thread at
http://mail.python.org/pipermail/image-sig/2010-April/006178.html that might
help.

Last time this happened, I installed all the components separately:
python26, numpy,VTK,QT,...sypder... and then installed pythonxy and that
seemed to work for whatever reason.

Original comment by peacock....@gmail.com on 20 Apr 2011 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by grizzly.nyo on 18 May 2012 at 11:35