Again many Python errors. Infos to testers or to developers.

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Again many Python errors. Infos to testers or to developers.

Postby albfneto » Sat Aug 15, 2009 2:35

In the transition between Python 2.5 to 2.6, this ocurred, after it was solved, but now, after updating to the last entropy (is a Sabayon 4.2 updated until branch 5) this also occurs again.
Many python errors in Entropy, in Portage, in python-updater .
The installation cannot be more updated...

Code: Select all
[email protected] ~ $ sudo equo update
Senha:                                 
>>  @@ Sincronização de repositórios ...
>>      [svn.sabayonlinux.org:1026] Conectado ao host com sucesso
>>      [svn.sabayonlinux.org:1026] Disconectado do host com sucesso
>>   #  (1/1) Sabayon Linux Official Repository                     
>>   # URL da base de dados: http://svn.sabayonlinux.org/entropy/standard/sabayonlinux.org/database/amd64/5                                                     
>>   # Endereço local da base de dados: /var/lib/entropy/client/database/amd64/sabayonlinux.org/standard/amd64/5                                               
>>   # EAPI da base de dados: 3                                                 
>>      [svn.sabayonlinux.org:1026] Conectado ao host com sucesso               
>> Cache is now empty.                                                         
>> Hi. My name is Bug Reporter. I am sorry to inform you that Equo crashed. Well, you know, shit happens.                                                       
>> But there's something you could do to help Equo to be a better application. 
>> -- EVEN IF I DON'T WANT YOU TO SUBMIT THE SAME REPORT MULTIPLE TIMES --     
>> Now I am showing you what happened. Don't panic, I'm here to help you.       
Traceback (most recent call last):                                             
  File "/usr/bin/equo", line 507, in main                                       
    rc = text_repositories.repositories(options)                               
  File "/usr/lib/entropy/client/text_repositories.py", line 58, in repositories
    rc = do_sync(reponames = repo_names, forceUpdate = equoRequestForceUpdate) 
  File "/usr/lib/entropy/client/text_repositories.py", line 182, in do_sync     
    rc = repoConn.sync()                                                       
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 1915, in sync                                                                 
    rc = self.run_sync()                                                       
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 1001, in run_sync                                                             
    status = self.handle_eapi3_database_sync(repo)                             
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 769, in handle_eapi3_database_sync           

I have ay the faculty, another installation of Sabayon, with the same problem.                               
    repo_metadata['treeupdates_digest'])                                       
  File "/usr/lib/entropy/libraries/entropy/db.py", line 3694, in setRepositoryUpdatesDigest                                                                     
    """, (repository, repository, digest,))                                     
TypeError: function takes exactly 1 argument (2 given)                         

Frame setRepositoryUpdatesDigest in /usr/lib/entropy/libraries/entropy/db.py at line 3694                                                                       
                        self =  <entropy.db.EntropyRepository instance at 0xd50908>                                                                             
                  repository =  sabayonlinux.org                               
                      digest =  ddeede94e21e7c1091fbfb31f3c2166d               

>> Of course you are on the Internet...
Erm... Can I send the error, along with some information
   about your hardware to my creators so they can fix me? (Your IP will be logged) [Sim/Não] Não                                                               
>> If you want to be contacted back (and actively supported), also answer the questions below:                                                                 
Your Full name:                                                                 
 Your E-Mail address:                                                           
 What you were doing:                                                           

^C
Traceback (most recent call last):
  File "/usr/bin/equo", line 891, in <module>
    main()                                   
  File "/usr/bin/equo", line 881, in main   
    result = error.submit()                 
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/qa.py", line 92, in submit                                                                         
    self.params)                                                               
  File "/usr/lib/entropy/libraries/entropy/client/services/ugc/interfaces.py", line 351, in report_error                                                       
    return self.do_cmd(repository, False, "report_error", [error_data], {})     
  File "/usr/lib/entropy/libraries/entropy/client/services/ugc/interfaces.py", line 225, in do_cmd                                                             
    rslt = cmd_func(*args,**kwargs)                                             
  File "/usr/lib/entropy/libraries/entropy/client/services/ugc/commands.py", line 708, in report_error                                                         
    return self.do_generic_handler(cmd, session_id)                             
  File "/usr/lib/entropy/libraries/entropy/client/services/ugc/commands.py", line 207, in do_generic_handler                                                   
    result = self.retrieve_command_answer(cmd, session_id, compression = compression)                                                                           
  File "/usr/lib/entropy/libraries/entropy/client/services/ugc/commands.py", line 183, in retrieve_command_answer                                               
    data = self.Service.receive()                                               
  File "/usr/lib/entropy/libraries/entropy/services/ugc/interfaces.py", line 2120, in receive                                                                   
    self._ssl_poll(select.POLLIN, 'read')                                       
  File "/usr/lib/entropy/libraries/entropy/services/ugc/interfaces.py", line 1987, in _ssl_poll                                                                 
    res = poller.poll(self.sock_conn.gettimeout() * 1000)                       
KeyboardInterrupt                                                               
[email protected] ~ $ equo update --force                                     
>>  @@ Sincronização de repositórios ...                                       
>>      [svn.sabayonlinux.org:1026] Conectado ao host com sucesso               
>>      [svn.sabayonlinux.org:1026] Disconectado do host com sucesso           
>>   #  (1/1) Sabayon Linux Official Repository                                 
>>   # URL da base de dados: http://svn.sabayonlinux.org/entropy/standard/sabayonlinux.org/database/amd64/5                                                     
>>   # Endereço local da base de dados: /var/lib/entropy/client/database/amd64/sabayonlinux.org/standard/amd64/5                                               
>>   # EAPI da base de dados: 3                                                 
>>      [svn.sabayonlinux.org:1026] Conectado ao host com sucesso               
>> Cache is now empty.                                                         
>> Hi. My name is Bug Reporter. I am sorry to inform you that Equo crashed. Well, you know, shit happens.                                                       
>> But there's something you could do to help Equo to be a better application. 
>> -- EVEN IF I DON'T WANT YOU TO SUBMIT THE SAME REPORT MULTIPLE TIMES --     
>> Now I am showing you what happened. Don't panic, I'm here to help you.       
Traceback (most recent call last):                                             
  File "/usr/bin/equo", line 507, in main                                       
    rc = text_repositories.repositories(options)                               
  File "/usr/lib/entropy/client/text_repositories.py", line 58, in repositories
    rc = do_sync(reponames = repo_names, forceUpdate = equoRequestForceUpdate) 
  File "/usr/lib/entropy/client/text_repositories.py", line 182, in do_sync     
    rc = repoConn.sync()                                                       
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 1915, in sync                                                                 
    rc = self.run_sync()                                                       
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 1001, in run_sync                                                             
    status = self.handle_eapi3_database_sync(repo)                             
  File "/usr/lib/entropy/libraries/entropy/client/interfaces/repository.py", line 769, in handle_eapi3_database_sync                                           
    repo_metadata['treeupdates_digest'])                                       
  File "/usr/lib/entropy/libraries/entropy/db.py", line 3694, in setRepositoryUpdatesDigest                                                                     
    """, (repository, repository, digest,))                                     
TypeError: function takes exactly 1 argument (2 given)                         

Frame setRepositoryUpdatesDigest in /usr/lib/entropy/libraries/entropy/db.py at line 3694                                                                       
                        self =  <entropy.db.EntropyRepository instance at 0xcd4488>                                                                             
                  repository =  sabayonlinux.org                               
                      digest =  ddeede94e21e7c1091fbfb31f3c2166d               

>> Oh well, I cannot even write to /tmp. So, please copy the error and mail [email protected]                                                             
[email protected] ~ $ sudo python-updater                                     
* Starting Python Updater from 2.5 to 2.6 :
*   Adding to list: x11-libs/vte:0
*     check: manual [Added to list manually, see CHECKS in manpage for more information.]
*   Adding to list: app-emulation/virtualbox-bin:0
*   Adding to list: app-office/gnumeric:0
*     check: manual [Added to list manually, see CHECKS in manpage for more information.]
*   Adding to list: dev-libs/boost:0
*     check: manual [Added to list manually, see CHECKS in manpage for more information.]
*   Adding to list: dev-libs/boost:1.37
*     check: manual [Added to list manually, see CHECKS in manpage for more information.]
* emerge -vD1 x11-libs/vte:0 app-emulation/virtualbox-bin:0 app-office/gnumeric:0 dev-libs/boost:0 dev-libs/boost:1.37
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                 

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.                         


These are the packages that would be merged, in order:

Calculating dependencies  Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>             
    retval = emerge_main()                                 
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1397, in emerge_main
    myopts, myaction, myfiles, spinner)                                   
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 307, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)           
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 4967, in backtrack_depgraph                                                                           
    myopts, spinner)                                                           
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 87, in __init__       
    pkg_cache=self._pkg_cache)                                                 
  File "/usr/lib64/portage/pym/_emerge/FakeVartree.py", line 81, in __init__   
    real_dbapi.flush_cache()                                                   
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1045, in flush_cache                                                                             
    self._owners.populate() # index any unindexed contents                     
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1449, in populate
    self._populate()                                                           
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1475, in _populate                                                                               
    owners_cache.add(cpv)                                                       
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1403, in add     
    self._add_path(x[root_len:], pkg_hash)                                     
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1416, in _add_path                                                                               
    name_hash = self._hash_str(name)                                           
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1428, in _hash_str                                                                               
    h.update(s)                                                                 
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 27: ordinal not in range(128)                                                     

[email protected] ~ $ emerge -is equo
Usage: emerge [options]               

emerge: error: no such option: -i
[email protected] ~ $ emerge -s equo
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                 
Searching...                                                       
[ Results for search key : equo ]                                 
[ Applications found : 1 ]                                         
                                                                   
*  app-admin/equo                                                 
      Latest version available: 0.98.2.4                           
      Latest version installed: 0.98.2                             
      Size of files: 10,375 kB                                     
      Homepage:      http://www.sabayon.org                       
      Description:   Official Sabayon Linux Package Manager Client
      License:       GPL-2                                         

[email protected] ~ $ LINGUAS=pt_BR emerge equo
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                 
emerge: superuser access is required                               
[email protected] ~ $ sudo LINGUAS=pt_BR emerge equo                   
Senha:                                                                 
WARNING: One or more repositories have missing repo_name entries:       

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.                 

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.                         

Calculating dependencies  Traceback (most recent call last):
  File "/usr/bin/emerge", line 40, in <module>             
    retval = emerge_main()                                 
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1397, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 307, in action_build
    settings, trees, myopts, myparams, myaction, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 4967, in backtrack_depgraph
    myopts, spinner)
  File "/usr/lib64/portage/pym/_emerge/depgraph.py", line 87, in __init__
    pkg_cache=self._pkg_cache)
  File "/usr/lib64/portage/pym/_emerge/FakeVartree.py", line 81, in __init__
    real_dbapi.flush_cache()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1045, in flush_cache
    self._owners.populate() # index any unindexed contents
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1449, in populate
    self._populate()
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1475, in _populate
    owners_cache.add(cpv)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1403, in add
    self._add_path(x[root_len:], pkg_hash)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1416, in _add_path
    name_hash = self._hash_str(name)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 1428, in _hash_str
    h.update(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 27: ordinal not in range(128)

[email protected] ~ $ portato
^C* Got KeyboardInterrupt. (portato:87)
* Listener is still running. Close it. (portato:90)
* Listener received: ['close'] (plistener.py:51)
Falha de segmentação
[email protected] ~ $ ^C
[email protected] ~ $

Last edited by albfneto on Mon Aug 17, 2009 1:15, edited 3 times in total.
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1710
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Again many python errors.

Postby lxnay » Sat Aug 15, 2009 8:25

The first was an Entropy error fixed 2 weeks ago and lasted only 2-3 hours in Entropy repository.
The other is your fault, you added non-ASCII chars in Portage configuration, not supported at all.
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: Again many python errors. [Solved]

Postby albfneto » Sat Aug 15, 2009 16:48

This is an strange solution, but solved!
the solution was....:
eselect command and return to phthon 2.5.4, evn in the branch 5..
Now, Entropy and Portage works!

Again the problem returned, but definivelly solved... I downloaded the last gentoo portage, deleted all the dir /usr/portage, and then expanded the Portage tarball in it.... emerge --metadara complete the recover!!!
Last edited by albfneto on Sat Aug 15, 2009 18:55, edited 1 time in total.
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1710
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Again many Python errors [Solved].

Postby Thev00d00 » Sat Aug 15, 2009 17:50

your python is seriously messed up :D What have you done to it??! :o
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Again many Python errors [Solved].

Postby albfneto » Sun Aug 16, 2009 19:14

In other installation of Sabayon, with the same problem, the solution was even more simple:

Code: Select all
su
wget http://www.sabayonlinux.org/pasties/store/1414/pastie.txt && cd /usr/lib/entropy && cat $OLDPWD/pastie.txt | patch -p1
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1710
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Again many Python errors.

Postby albfneto » Mon Aug 17, 2009 1:04

I dont know if this really a But, the recovered system, after ai "equo world"....
Python errors again, it is on python 2.6 and new GCC!
after a reboot, even with the 2.6.30 kernel, the new nvidia drivers, correct, seted with the correct eselect commands used in the regular manner, etc.. etc...
No more X!
XDM is restart without X, only TWN open, and under TWN, firefox,opens, but all firefox bookmarks are loosed.
also during boot, messages that kernel modules ath_pci are deprecated!!!
commands such as module rebuild populate && module-rebuild rebuild, no solvet the problem or emerge @Preserved rebuild, give only Python errors output, seems that the Python of my system is seriously damaged.

Seems strange, but the use of the commands:

Code: Select all
su
wget http://www.sabayonlinux.org/pasties/store/1414/pastie.txt && cd /usr/lib/entropy && cat $OLDPWD/pastie.txt | patch -p1


Again solve the problem!
This is for info of the developers and testers, since i plano ti substitute this, by a clena installation of the future 5 version.
i also see in the net, similar problems in Gentoo, seems to me that the compatibility between py versions is not fully solved
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1710
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Again many Python errors. Infos to testers or to developers.

Postby Odysseus » Thu Sep 10, 2009 22:03

I couldn't help but notice from your posts that it seems as though you aren't taking advantage of the many tools available to you with Sabayon / Gentoo. I made the jump to ver.5 and Gentoo ~x86 rather painlessly and without the python issues you seem to be having. If I may make the following suggestions to you.

Whenever you upgrade python, packages built against lower or higher major versions won't work correctly. This should be assumed as the ABI's will ussually change between major version upgrades. Combined with upgrading GCC your're asking for a mess if not done correctly. I personally, use Portage with Sabayon as an overlay because I recompile my system to be native to my pentium-m processor.

Whenever I update my system that changes important features such as GCC, GlibC, Python I always use the tools provided to make sure I don't break anytihng else in my system. For example, eselect will tell me which GCC compiler is active and allow me to switch between them to keep things sane, as well as keeping python in check.

I will use python-updater to make sure all my existing python apps are in sync with the active python I want to use in my system. When combined with revdep-rebuild I keep my system from breaking.

It seems to me that from your posts either you upgraded at a time when the mirrors weren't completly in sync with the new versions or you hosed something by mixing libraries and compilers.

Just my 2 cents

I hope I helped,
Ciao
Odysseus
Simple Hen
 
Posts: 44
Joined: Wed Aug 26, 2009 2:37
Location: Miami, FL (homesick for SF,CA)


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 4 guests

cron