dependency >=python-2.5 for entropy?

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

dependency >=python-2.5 for entropy?

Postby pikiweb » Sat Jul 12, 2008 11:25

Hi to everybody, i'm glad to be here writing my first post in this forum :)

Ok, i will now show you "my" problem
I'm posting here to ask you if it's okay to post a bug report. I've never done it before, and moreover I'm on a Gentoo Linux box, so i need to know if this is the reason of what happened...

Okay, the fact is that I installed Entropy/Equo - version 0.15.23.7 - on my Gentoo Linux (2008.0 profile, if it's needed i will later post my emerge --info) and then updated it to 0.15.24.1 (using equo as suggested). Then, Equo and Portage too stopped to work, requesting python 2.5. To be more precise, equo stopped to work at all, outputting this error:
Code: Select all
$ equo [whatever command]
[.. Mr Bug Reporter advises: I don't report this part as it lost its format when i saved this ouput..]
Frame ? in ../libraries/entropy.py at line 41
   idpackageValidatorCache =  None
   const_setupWithEnvironment =  None
                     os =  None
                 random =  None
                   bold =  None
                 etpSys =  None
   maskingReasonsStorage =  None
   etpRepositoriesExcluded =  None
            print_error =  None
   const_get_entropy_gid =  None
        etpExitMessages =  None
    ETP_LOGLEVEL_NORMAL =  None
        etpRepositories =  None
                 shutil =  None
         etpRSSMessages =  None
       ETP_LOGPRI_ERROR =  None
                    red =  None
   const_add_entropy_group =  None
   fetch_repository_if_not_available_cache =  None
   const_createWorkingDirectories =  None
   const_readEntropySettings =  None
   initConfig_entropyConstants =  None
   const_chmod_entropy_pid =  None
   const_readServerSettings =  None
             etpSQLInit =  None
       const_setup_file =  None
   repositoryUpdatesDigestCache_disk =  None
               darkblue =  None
   ETP_LOGLEVEL_VERBOSE =  None
   const_readActivatorSettings =  None
   const_readEquoSettings =  None
                __doc__ =  None
            etpDbStatus =  None
          TextInterface =  None
                  brown =  None
                   stat =  None
                darkred =  None
           __builtins__ =  {'IndexError': <class exceptions.IndexError at 0xb7cdb92c>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <class exceptions.SyntaxError at 0xb7cdb7ac>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <class exceptions.UnicodeDecodeError at 0xb7cdbcec>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2006 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <class exceptions.NameError at 0xb7cdb68c>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'SystemExit': <class exceptions.SystemExit at 0xb7cdb35c>, 'StandardError': <class exceptions.StandardError at 0xb7cdb2fc>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <class exceptions.RuntimeWarning at 0xb7cf002c>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <class exceptions.Warning at 0xb7cdbe6c>, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <class exceptions.EOFError at 0xb7cdb56c>, 'locals': <built-in function locals>, 'slice': <type 'slice'>, 'FloatingPointError': <class exceptions.FloatingPointError at 0xb7cdbadc>, 'sum': <built-in function sum>, 'OverflowWarning': <class exceptions.OverflowWarning at 0xb7cdbfbc>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': 'Use Ctrl-D (i.e. EOF) to exit.', 'True': True, 'FutureWarning': <class exceptions.FutureWarning at 0xb7cf005c>, 'None': None, 'hash': <built-in function hash>, 'len': <built-in function len>, 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, '_': <bound method GNUTranslations.ugettext of <gettext.GNUTranslations instance at 0xb7cad96c>>, 'TypeError': <class exceptions.TypeError at 0xb7cdb32c>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <class exceptions.KeyboardInterrupt at 0xb7cdb3bc>, 'UserWarning': <class exceptions.UserWarning at 0xb7cdbe9c>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <class exceptions.SystemError at 0xb7cdbe0c>, 'pow': <built-in function pow>, 'RuntimeError': <class exceptions.RuntimeError at 0xb7cdb59c>, 'float': <type 'float'>, 'StopIteration': <class exceptions.StopIteration at 0xb7cdb2cc>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <class exceptions.LookupError at 0xb7cdb8fc>, 'open': <type 'file'>, 'quit': 'Use Ctrl-D (i.e. EOF) to exit.', 'basestring': <type 'basestring'>, 'UnicodeError': <class exceptions.UnicodeError at 0xb7cdbb9c>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'ReferenceError': <class exceptions.ReferenceError at 0xb7cdbddc>, 'ImportError': <class exceptions.ImportError at 0xb7cdb41c>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <class exceptions.Exception at 0xb7cdb29c>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <class exceptions.UnicodeTranslateError at 0xb7cdbd7c>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <class exceptions.UnicodeEncodeError at 0xb7cdbc2c>, 'IOError': <class exceptions.IOError at 0xb7cdb4ac>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <class exceptions.SyntaxWarning at 0xb7cdbf8c>, 'compile': <built-in function compile>, 'ArithmeticError': <class exceptions.ArithmeticError at 0xb7cdb9bc>, 'str': <type 'str'>, 'property': <type 'property'>, 'MemoryError': <class exceptions.MemoryError at 0xb7cdbe3c>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <class exceptions.KeyError at 0xb7cdb98c>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <class exceptions.PendingDeprecationWarning at 0xb7cdbf5c>, 'file': <type 'file'>, 'EnvironmentError': <class exceptions.EnvironmentError at 0xb7cdb44c>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <class exceptions.OSError at 0xb7cdb50c>, 'DeprecationWarning': <class exceptions.DeprecationWarning at 0xb7cdbefc>, 'min': <built-in function min>, 'execfile': <built-in function execfile>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <class exceptions.ValueError at 0xb7cdbb3c>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <class exceptions.TabError at 0xb7cdb86c>, 'callable': <built-in function callable>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at 0xb7cdba4c>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <class exceptions.IndentationError at 0xb7cdb83c>, 'AssertionError': <class exceptions.AssertionError at 0xb7cdb8cc>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <class exceptions.UnboundLocalError at 0xb7cdb6ec>, 'NotImplementedError': <class exceptions.NotImplementedError at 0xb7cdb5fc>, 'AttributeError': <class exceptions.AttributeError at 0xb7cdb77c>, 'OverflowError': <class exceptions.OverflowError at 0xb7cdb9ec>}
               __file__ =  None
                   blue =  None
   const_readReagentSettings =  None
                urllib2 =  None
   const_readEntropyRelease =  None
       const_resetCache =  None
                    sys =  None
          print_warning =  None
               etpConst =  None
   const_defaultSettings =  None
               readtext =  None
                  etpUi =  None
   const_configureServerRepoPaths =  None
               __name__ =  None
   etpRepositoriesOrder =  None
   initConfig_clientConstants =  None
           const_islive =  None
      const_setup_perms =  None
     const_setNiceLevel =  None
   const_setupEntropyPid =  None
               commands =  None
                      _ =  None
              darkgreen =  None
         ETP_ARCH_CONST =  None
   etpSQLInitDestroyAll =  None
     ETP_LOGPRI_WARNING =  None
   const_readRepositoriesSettings =  None
                 purple =  None
         exceptionTools =  None
        ETP_LOGPRI_INFO =  None
   repo_error_messages_cache =  None
        const_get_chmod =  None
                  green =  None
               etpCache =  None
             print_info =  None
                   time =  None
            linkerPaths =  None
   const_secure_config_file =  None
   const_configureLockPaths =  None
   const_readSocketSettings =  None
                      e =  None
      etpRemoteFailures =  None
Traceback (most recent call last):
  File "equo.py", line 375, in ?
    import text_repositories
  File "../client/text_repositories.py", line 31, in ?
    from entropy import EquoInterface
  File "../libraries/entropy.py", line 41, in ?
    raise exceptionTools.SystemError(
SystemError: Entropy richiede sqlite+pysqlite o Python compilato con supporto sqlite. Errore: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "equo.py", line 611, in ?
    from entropy import ErrorReportInterface
  File "../libraries/entropy.py", line 41, in ?
    raise exceptionTools.SystemError(
exceptionTools.SystemError: Entropy richiede sqlite+pysqlite o Python compilato con supporto sqlite. Errore: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

As you can see, the last line says Entropy needs sqlite+pysqlite or Python with sqlite support (I have sqlite+pysqlite) and then request a python-2.5 library.

Then Portage (emerge) too stopped to work. But, I really can't understand why, just when used from root login. That means I could use it with "sudo emerge foo" but could not "su" to root and then use the emerge command. This was the output in the second case:
Code: Select all
# emerge -avuDN worl
====================================
Error: Failed to import module 'cache.sqlite.database'

  File "/usr/lib/portage/pym/portage.py", line 1743, in load_best_module
    mod = load_mod(best_mod)
  File "/usr/lib/portage/pym/portage.py", line 156, in load_mod
    mod = __import__(modname)
  File "/usr/lib/portage/pym/cache/sqlite.py", line 14, in ?
    from pysqlite2 import dbapi2 as db_module
  File "/usr/lib/entropy/libraries/pysqlite2/dbapi2.py", line 27, in ?
    from pysqlite2._sqlite import *
libpython2.5.so.1.0: cannot open shared object file: No such file or directory
====================================

Same request of python 2.5.

Finally, thanks to the strange behaviour of emerge (works with sudo, not as root) I could unmask (oh, yes! as you may now, in Gentoo python 2.5 is masked) and emerge python-2.5. And, as expected, everything works now.

So, is it okay to post a bug about this? Is it a bug? Is it just my problem? I guess this happened because in Gentoo Python 2.5 is masked, while Sabayon install it by default, doesn't it? But..well, it could be good to have it as a dependency..

Thank you for your help, i hope you can understand what i wrote (you know italian people normally don't like english :P )
See you in Sabayon? :)
pikiweb
Baby Hen
 
Posts: 2
Joined: Sat Jul 12, 2008 10:34

Re: dependency >=python-2.5 for entropy?

Postby wolfden » Sat Jul 12, 2008 17:43

layman -S && emerge equo entropy worked for me with older python
User avatar
wolfden
Sharecropper
 
Posts: 8822
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: dependency >=python-2.5 for entropy?

Postby pikiweb » Sat Jul 12, 2008 19:58

it worked for me too, when i first install
the problem came with the last update, made with equo install entropy spritz as said in the wiki...and disappeared with python update...as i said
should i just think that destiny made it happen or there's something i can do to find out if there is any problems, either in my installation or in entropy installation/update?
pikiweb
Baby Hen
 
Posts: 2
Joined: Sat Jul 12, 2008 10:34


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest