Menu

ImportError: No module named _ffnet

Help
Anonymous
2011-05-10
2018-04-27
  • Anonymous

    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

    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.

     
  • Jelmer Oosthoek

    Jelmer Oosthoek - 2013-05-29

    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

     
  • Siddheshwar Chopra

    As suggested, I added the ffnet dir. path to PYTHONPATH, and the problem of "ImportError: No module named ffnet " still hasn't solved.
    I added the path "E:\ffnet-0.8.3\ffnet" to PYTHONPATH.
    I also wish to add here that I used "gfortran" for compiling the code.
    Any help please.

     

    Last edit: Siddheshwar Chopra 2018-04-26
  • Marek

    Marek - 2018-04-27

    Is this error about 'ffnet' or '_ffnet'?

    If 'ffnet' then it seems your paths are still wrong. If the second one your compilation is not working properly.

    On Windows you'd better try to install precompiled package from sourceforge or from https://www.lfd.uci.edu/~gohlke/pythonlibs/ffnet.

     

    Last edit: Marek 2018-04-27

Log in to post a comment.