Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python,win32com,scipy and vb 6 : no module named scipy

Reply
Thread Tools

python,win32com,scipy and vb 6 : no module named scipy

 
 
vml
Guest
Posts: n/a
 
      05-02-2007
Hello,

I am really new in python scipy win32com and scipy I tried to setup a
COM server to interact with vb 6 the pythom COM server is :

from win32com.server import exception, register
import pythoncom, win32pdhutil, winerror
import math
import numpy
import sys


sys.path.append('D:\\soft\python25\\Lib\\site-packages\\')

#from scipy import linalg


class Fop:
_public_methods_ = [ 'SqVal' ]
def SqVal(self,*val):
import sys
sys.path.append('D:\\soft\python25\\Lib\\site-packages\\')
import scipy
#print sys.path
#mat=numpy.bmat(val)
#linalg.inv(mat)
return sys.path

_reg_verprogid_ = "Python.Fop.3"
_reg_progid_ = "Python.Fop"
_reg_desc_ = "Python Fop"
_reg_clsid_ = "{30BD3490-2632-11cf-AD5B-524153480001}"


def Register():
import win32com.server.register
return win32com.server.register.UseCommandLine(Fop)



if __name__=='__main__':
print "Registering COM server..."
Register()


the vb 6 code is

Private Sub Form_Load()

Set obj = CreateObject("Python.Fop")

Dim ty(1, 1) As Variant

ty(0, 0) = 1
ty(1, 1) = 2
ty(1, 0) = 3
ty(0, 1) = 4

toto = obj.SqVal(ty)


End Sub


I have a problem when I launch the vb 6 code : no module named
scipy .... it is quite strange and I do not understand that Do you
have any ideas ?

thank you very much !

 
Reply With Quote
 
 
 
 
vml
Guest
Posts: n/a
 
      05-03-2007
On 2 mai, 23:37, vml <(E-Mail Removed)> wrote:
> Hello,
>
> I am really new in python scipy win32com and scipy I tried to setup a
> COM server to interact with vb 6 the pythom COM server is :
>
> from win32com.server import exception, register
> import pythoncom, win32pdhutil, winerror
> import math
> import numpy
> import sys
>
> sys.path.append('D:\\soft\python25\\Lib\\site-packages\\')
>
> #from scipy import linalg
>
> class Fop:
> _public_methods_ = [ 'SqVal' ]
> def SqVal(self,*val):
> import sys
> sys.path.append('D:\\soft\python25\\Lib\\site-packages\\')
> import scipy
> #print sys.path
> #mat=numpy.bmat(val)
> #linalg.inv(mat)
> return sys.path
>
> _reg_verprogid_ = "Python.Fop.3"
> _reg_progid_ = "Python.Fop"
> _reg_desc_ = "Python Fop"
> _reg_clsid_ = "{30BD3490-2632-11cf-AD5B-524153480001}"
>
> def Register():
> import win32com.server.register
> return win32com.server.register.UseCommandLine(Fop)
>
> if __name__=='__main__':
> print "Registering COM server..."
> Register()
>
> the vb 6 code is
>
> Private Sub Form_Load()
>
> Set obj = CreateObject("Python.Fop")
>
> Dim ty(1, 1) As Variant
>
> ty(0, 0) = 1
> ty(1, 1) = 2
> ty(1, 0) = 3
> ty(0, 1) = 4
>
> toto = obj.SqVal(ty)
>
> End Sub
>
> I have a problem when I launch the vb 6 code : no module named
> scipy .... it is quite strange and I do not understand that Do you
> have any ideas ?
>
> thank you very much !


solved ... problem in the installation

 
Reply With Quote
 
 
 
 
Terry Reedy
Guest
Posts: n/a
 
      05-03-2007
scipy is a 3rd party package which I believe you get from the same place,
more or less, as numpy.



 
Reply With Quote
 
vml
Guest
Posts: n/a
 
      05-03-2007
On 3 mai, 03:30, "Terry Reedy" <(E-Mail Removed)> wrote:
> scipy is a 3rd party package which I believe you get from the same place,
> more or less, as numpy.


the bug was between the chair and the keyboard....


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install module, No module named scipy_distutils.core (but ihave scipy) process Python 1 10-17-2008 06:19 PM
load module named "datetime" and change the directory of output file? ye juan Python 1 02-01-2006 09:48 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
[py2exe] py2exe and datetime -> No module named datetime F. GEIGER Python 0 08-16-2004 01:13 PM
Scipy question about scipy.optimize.leastsq Paxcal Python 0 02-11-2004 07:52 PM



Advertisments