Menu

import pyaf - module could not be found?

Anonymous
2012-02-05
2012-12-11
  • Anonymous

    Anonymous - 2012-02-05

    Hello
    I have a problem - I need to import pyaf module, but I get an error message:

    ImportError: DLL load failed: The specified module could not be found.
    

    I think I have my PYTHONPATH variable set up correctly. Before trying to import pyaf module I did:

    sys.path.append("c:\\cgru-windows\\afanasy\\bin")
    sys.path.append("c:\\cgru-windows\\afanasy\\python")
    sys.path.append("c:\\cgru-windows\\lib\\python")
    

    What am I doing wrong?

    My configuration:
    Afanasy 1.5.4
    Windows 7 64bit
    Python 3.2 64bit

     
  • Timur Hairulin

    Timur Hairulin - 2012-02-06

    Hi.
    1. Is there pyaf.pyd in c:\\cgru-windows\\afanasy\\bin folder?
    2. Since version 1.5.4 Afanasy switched from MSVC2008 on MSVC2010 (as new Qt 4.8). When at first i uploaded a binary release on this site, it had some old msvc dlls (my fault). And only after some time, when some MSWin users noticed it, i re-uploaded the release with new dlls (The mistake was exactly while importing python module). So may be you have that broken one release.

     
  • Anonymous

    Anonymous - 2012-02-06

    Hi
    You were right - I had a bad release. I downloaded fresh package today and everything works like a charm.
    Btw. Really great piece of software - easy to install, easy to use and stable :)

     
  • Anonymous

    Anonymous - 2012-02-12

    One more thing - maybe someone will find it useful. You need to have VC++ 2010 Redistributable package installed. Without it module fails to import.

     
  • Timur Hairulin

    Timur Hairulin - 2012-02-13

    Hi. Thank you for the information.
    You noticed this problem on that 1.5.4 release, or a new 1.5.5 has problems (again :) )?
    ( I should check each release on a "fresh" MS Windows system - and I'll do it )

     
  • Anonymous

    Anonymous - 2012-02-13

    Hi. First I checked 1.5.5 on almost fresh Windows 7 - well, not so fresh, but without any developer tools, compilers etc., only python. I got an error, so I downloaded 1.5.4, but it didn't change anything. So I thought that your packages were ok, but maybe something was missing from my system. You wrote about MSVC2010 earlier, so I guessed that I should install VC Redistributable - and it helped :)

     

Log in to post a comment.