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

Victor Reijs genietdev0 at iol.ie
Sun Jul 31 17:17:15 CDT 2005


Hello all of you,

I have now downloaded Numeric and added it to my sitecustomize.py module 
as said by Robert (it seems I am slowly understanding things...). So no 
Numeric problem anymore;-) But now I get:

"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', 
'c:\\python22\\lib\\site-packages\\Numeric']
[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 22, in ?
     from scipy.optimize import fmin
   File "C:\Python22\Lib\site-packages\scipy_base\ppimport.py", line 
303, in __getattr__
     module = self._ppimport_importer()
   File "C:\Python22\Lib\site-packages\scipy_base\ppimport.py", line 
262, in _ppimport_importer
     raise PPImportError,\
scipy_base.ppimport.PPImportError: Traceback (most recent call last):
   File "C:\Python22\Lib\site-packages\scipy_base\ppimport.py", line 
273, in _ppimport_importer
     module = __import__(name,None,None,['*'])
   File "C:\Python22\Lib\site-packages\scipy\optimize\__init__.py", line 
11, in ?
     from lbfgsb import fmin_l_bfgs_b
   File "C:\Python22\Lib\site-packages\scipy\optimize\lbfgsb.py", line 
33, in ?
     def fmin_l_bfgs_b(func, x0, fprime=None, args=(),
NameError: name 'False' is not defined"

This is with the below PSP script:
...
#===
import sitecustomize
x0 = [1.3, 0.7, 0.8, 1.9, 1.2]
import sys
print sys.path
print x0
from scipy import *
print x0
from scipy.optimize import fmin
print x0
#===

Intersting the 'False' definition missing... Ideas?

All the best,


Victor


Victor Reijs wrote:

> 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