Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

ImportError: No module named _bc

Help
2006-04-10
2013-04-23
  • shannoncoen
    shannoncoen
    2006-04-10

    Reinstalling beecrypt because librpmio.la is looking for libbeecrypt.la.

    Make check shows this error:
    make[2]: Entering directory `/usr/local/src/beecrypt-4.1.2/python/test'
    PYTHONPATH=.. python test_all.py verbose
    Traceback (most recent call last):
      File "test_all.py", line 58, in ?
        print_versions()
      File "test_all.py", line 19, in print_versions
        from _bc import mpw
    ImportError: No module named _bc

    I see _bc.la was built in src/beecrypt-4.1.2/python; is there supposed to be a _bc.so also?

    Is this a warning I can ignore; safe to make install?

     
    • Bob Deblier
      Bob Deblier
      2006-05-06

      _bc.so is built in a hidden directory '.libs'

      I've just tried to eliminate this error, and it seems to work by applying the following patch in beecrypt-{version}/python/test

      diff -u -r1.3 Makefile.am
      --- Makefile.am 27 Jul 2004 15:53:42 -0000      1.3
      +++ Makefile.am 6 May 2006 12:59:05 -0000
      @@ -11,4 +11,4 @@
      all:

      check:
      -       $(VALGRIND) PYTHONPATH=.. python test_all.py verbose
      +       $(VALGRIND) PYTHONPATH=".. ../.libs/_bc.so" python test_all.py verbose

      I'm adding this to the CVS sources today too.

      Regards,

      Bob

       
    • The patch doesn't work as is and as it's in cvs. Python uses `:' as path separator.
      --- beecrypt-4.1.2/python/test/Makefile.am    2004-07-19 08:07:59.000000000 +0200
      +++ beecrypt-cvs/python/test/Makefile.am    2006-05-06 15:04:17.000000000 +0200
      @@ -11,4 +11,4 @@
      all:

      check:
      -    $(VALGRIND) PYTHONPATH=.. python test_all.py verbose
      +    $(VALGRIND) PYTHONPATH="..:../.libs" python test_all.py verbose

       
      • Bob Deblier
        Bob Deblier
        2007-05-01

        Finally made the time to fix this one; it's in CVS.