Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

ImportError: No module named _ffnet

Help
Anonymous
2011-05-10
2013-05-29

  • Anonymous
    2011-05-10

    Hi.
    On Ubuntu I've successfuly compiled the ffnet from source, but when trying to start the tests:

      warnings.warn(msg, DeprecationWarning)
    /usr/lib/pymodules/python2.6/networkx/generators/hybrid.py:16: DeprecationWarning: the sets module is deprecated
      import sets
    Traceback (most recent call last):
      File "./pokus.py", line 3, in <module>
        from ffnet._tests import runtest
      File "/home/orwen/bin/ffnet-0.6.2/ffnet.py", line 17, in <module>
        from fortran import _ffnet as netprop
      File "/home/orwen/bin/ffnet-0.6.2/fortran/__init__.py", line 5, in <module>
        import _ffnet, _pikaia 
    ImportError: No module named _ffnet
    

    Does Anybody have a clue why the moodule could not be imported?

     

  • Anonymous
    2011-05-10

    I'm running it from ~/bin/ffnet-0.6.2 and there ARE right modules in ~/bin/ffnet-0.6.2/fortran:
    $ ls fortran
    ffnet.f  __init__.py  __init__.pyc  pikaia.f

     
  • Marek
    Marek
    2011-07-10

    You'd better do not try to import ffnet being in ffnet directory. Instead add ffnet dir to PYTHONPATH and import it from another place.

     
  • Just got it working: Open numpy-MKL-1.7.1.win32-py2.6.‌exe (1) with a zip program, e.g. WinRAR, and extract PLATLIB\numpy\core*.dll to the ffnet\fortran directory

    (1) http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy