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

Discussion in 'Python' started by vml, May 2, 2007.

  1. vml

    vml Guest

    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 !
     
    vml, May 2, 2007
    #1
    1. Advertising

  2. vml

    vml Guest

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

    On 2 mai, 23:37, vml <> 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
     
    vml, May 3, 2007
    #2
    1. Advertising

  3. vml

    Terry Reedy Guest

    scipy is a 3rd party package which I believe you get from the same place,
    more or less, as numpy.
     
    Terry Reedy, May 3, 2007
    #3
  4. vml

    vml Guest

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

    On 3 mai, 03:30, "Terry Reedy" <> 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....;)
     
    vml, May 3, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paxcal
    Replies:
    0
    Views:
    1,849
    Paxcal
    Feb 11, 2004
  2. eric_bellard
    Replies:
    1
    Views:
    5,110
    CarlosRivera
    Oct 7, 2004
  3. Replies:
    1
    Views:
    22,843
    placid
    Aug 3, 2006
  4. process
    Replies:
    1
    Views:
    1,196
    Robert Kern
    Oct 17, 2008
  5. Manjugb
    Replies:
    0
    Views:
    1,042
    Manjugb
    Dec 29, 2009
Loading...

Share This Page