Menu

ImportError: cannot import name scale_transfo

hu anlin
2010-09-15
2013-05-13
  • hu anlin

    hu anlin - 2010-09-15

    Hi, what I used:
    * python-2.5.4.msi
    * wxPython2.8-win32-unicode-2.8.11.0-py25.exe
    * numpy-1.4.1-win32-superpack-python2.5.exe
    * matplotlib-0.99.3.win32-py2.5.exe
    * xlrd-0.7.1.win32.exe
    * iTrade- version 951

    and I got the error:
      File "D:\finance\svn_itrade\itrade\myfinance.py", line 24, in <module>
        from matplotlib.transforms import scale_transform, Value, zero, one, \
    ImportError: cannot import name scale_transform

    So I replaced the myfinance.py version 950 with the myfinance.py version 341, then I got the same error.
    After commentting out the line 24 of the file, iTrade is started successfully. But I don't think this is a correct solution.

     
  • m_legrand

    m_legrand - 2010-09-17

    Hi,
    Try to use
    matplotlib-0.90.1.win32-py2.5.exe
    numpy-1.0.4.win32-p3-py2.5.exe
    and add  psyco-1.6.win32-py25.exe
    and use myfinance.py version 950

    Michel

     
  • xeebee

    xeebee - 2010-09-24

    scale_transform is now called Affine2D().scale API Change http://matplotlib.sourceforge.net/api/api_changes.html?highlight=cannot%20import%20name%20value .

    So you have to change scale_transform to Affine2D after import and then change all scale_transform by Affine2D().scale

    But then another error comes :
    from matplotlib.transforms import Affine2D, Value, zero, one,scale_sep_transform, blend_xy_sep_transform
    ImportError: cannot import name Value

    For now can't find out what's the change with Value

     
  • hu anlin

    hu anlin - 2010-09-27

    In fact, I found nowhere to download the matplotlib-0.90.1.win32-py2.5.exe. http://sourceforge.net/projects/matplotlib/files/, here the oldest version is matplotlib-0.91.1.

     
  • m_legrand

    m_legrand - 2010-09-27

    I can send you a mail for matplotlib-0.90.1.win32-py2.5.exe
    i give you also this link to download matplotlib_0.90.1.orig.tar.gz  (2.9 MiB)
    I down't know if it's a good version for windows
    https://launchpad.net/ubuntu/gutsy/+source/matplotlib/0.90.1-2ubuntu1
    Thank's for your answer

     
  • hu anlin

    hu anlin - 2010-09-29

    the matplotlib_0.90.1.orig.tar.gz doesn't work for windows. Thanks for your answer.

     
  • jean-marie pacquet

    Please use latest versions of iTrade from SVN which are now compatible with matplotlib 0.98.x and above

     

Log in to post a comment.