[SciPy-user] PSP python (was crashing python)

Victor Reijs genietdev0 at iol.ie
Sun Jul 31 16:56:29 CDT 2005


Hello Robert,

Sorry, I think I should have stopped and restarted PSP8. So now I get 
the following output after resatrting PSP8:
"Executing RunScript
['C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8', 'C:\\Program 
Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python Libraries', 
'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python 
Libraries\\DLLs', 'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 
8\\Python Libraries\\lib', 'C:\\Program Files\\Jasc Software Inc\\Paint 
Shop Pro 8\\Python Libraries\\lib\\lib-tk', 'C:\\Program Files\\Jasc 
Software Inc\\Paint Shop Pro 8\\Python Libraries\\lib\\site-packages', 
'c:\\python22\\lib\\site-packages']
[1.3, 0.69999999999999996, 0.80000000000000004, 1.8999999999999999, 1.2]
Unknown error occurred with command: RunScript

Executing RunScript
ImportError: No module named _numpy

Executing RunScript
['C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8', 'C:\\Program 
Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python Libraries', 
'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python 
Libraries\\DLLs', 'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 
8\\Python Libraries\\lib', 'C:\\Program Files\\Jasc Software Inc\\Paint 
Shop Pro 8\\Python Libraries\\lib\\lib-tk', 'C:\\Program Files\\Jasc 
Software Inc\\Paint Shop Pro 8\\Python Libraries\\lib\\site-packages', 
'c:\\python22\\lib\\site-packages']
[1.3, 0.69999999999999996, 0.80000000000000004, 1.8999999999999999, 1.2]
[1.3, 0.69999999999999996, 0.80000000000000004, 1.8999999999999999, 1.2]
Traceback (most recent call last):
   File "C:\Documents and Settings\vreijs\My Documents\My PSP8 
Files\Scripts-Trusted\pickcolorb.PspScript", line 23, in ?
     from scipy.optimize import fmin
   File "C:\Python22\Lib\site-packages\scipy\optimize\__init__.py", line 
7, in ?
     from optimize import *
   File "C:\Python22\Lib\site-packages\scipy\optimize\optimize.py", line 
56, in ?
     import Numeric
ImportError: No module named Numeric

Executing RunScript
['C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8', 'C:\\Program 
Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python Libraries', 
'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 8\\Python 
Libraries\\DLLs', 'C:\\Program Files\\Jasc Software Inc\\Paint Shop Pro 
8\\Python Libraries\\lib', 'C:\\Program Files\\Jasc Software Inc\\Paint 
Shop Pro 8\\Python Libraries\\lib\\lib-tk', 'C:\\Program Files\\Jasc 
Software Inc\\Paint Shop Pro 8\\Python Libraries\\lib\\site-packages', 
'c:\\python22\\lib\\site-packages']
[1.3, 0.69999999999999996, 0.80000000000000004, 1.8999999999999999, 1.2]
[1.3, 0.69999999999999996, 0.80000000000000004, 1.8999999999999999, 1.2]
Traceback (most recent call last):
   File "C:\Documents and Settings\vreijs\My Documents\My PSP8 
Files\Scripts-Trusted\pickcolorb.PspScript", line 23, in ?
     from scipy.optimize import fmin
ImportError: cannot import name fmin"

<there is now no duplication of my path any more, so that problem is 
solved, but I still have the issues with Numeric, _numpy, fmin, etc.>

All the best,


Victor

> my script is now:
> #====
> import sitecustomize
> x0 = [1.3, 0.7, 0.8, 1.9, 1.2]
> import sys
> #sys.path.append("c:/python22/lib/site-packages")
> print sys.path
> print x0
> from scipy import *
> print x0
> from scipy.optimize import fmin
> print x0
> #====





More information about the SciPy-user mailing list