Page 1 of 1

New Portato 12 not works. [Solved]

PostPosted: Mon Mar 16, 2009 17:13
by albfneto
in one of my installations of Sabayon, new Portato 12, not works, even after etc-update. this is the message errors when i try to open portato.

Code: Select all
portato
QMultiInputContext::changeInputMethod(): index=0, slave=xim
* Setting Portage System (__init__.py:56)
* Using portage-2.2 (__init__.py:21)
* Starting Portato v. 0.12.1 (portato:50)
* All prereqs matched. Fine :) (main.py:1921)
* Listener received: ['close'] (plistener.py:51)
* Exception:
Traceback (most recent call last):
  File "/usr/bin/portato", line 94, in <module>
    main()
  File "/usr/bin/portato", line 58, in main
    run()
  File "/usr/lib64/python2.5/site-packages/portato/gui/__init__.py", line 29, in run
    m = MainWindow(s)
  File "/usr/lib64/python2.5/site-packages/portato/gui/windows/main.py", line 474, in __init__
    self.db = Database(self.cfg.get("type", section = "DATABASE"))
  File "/usr/lib64/python2.5/site-packages/portato/config_parser.py", line 324, in get
    return self._access(key, section).value
  File "/usr/lib64/python2.5/site-packages/portato/config_parser.py", line 295, in _access
    raise SectionNotFoundException("Section '%s' not found in file '%s'." % (section, self.file))
SectionNotFoundException: "Section 'DATABASE' not found in file '/etc/portato/portato.cfg'."

Portato version: 0.12.1
System: Sabayon Sabayon Linux x86-64 4
Python version: 2.5.4 (r254:67916, Mar  6 2009, 12:20:04)
[GCC 4.3.2]
Used backend: Portage 2.2_rc25
pygtk: 2.14.1 (using GTK+: 2.14.7)
pygobject: 2.16.1 (using GLib: 2.18.4) (exception_handling.py:128)
Exception <unknown>error: "can't access shared memory segment" in <bound method SharedMemoryHandle.__del__ of <shm_wrapper.SharedMemoryHandle object at 0x47d0850>> ignored
* Subprocess finished (portato:85)


Re: New Portato 12 not works.

PostPosted: Mon Mar 16, 2009 17:21
by Thev00d00
Maybe this should go in the portato thread?

Re: New Portato 12 not works.

PostPosted: Mon Mar 16, 2009 17:55
by albfneto
in one of my installations.
i fact, i have sabayon in 4 comps.
in two, i use only only entropy, in the other two the two installers are mixed.
in these i use Portato.
this is the last version of portato, taken from Portage 2.2-25.
in one of the comps,portato works, in other not.
all are fully updated.
also,i have another installation of gentoo. in this, portato works

Re: New Portato 12 not works.

PostPosted: Mon Mar 16, 2009 19:13
by Necoro
Just running etc-update is not enough, if you update it the wrong way :) - you are missing the DATABASE section

it should look like the following:
Code: Select all
#
# Section for the internal database
#
[DATABASE]

; the type of the database to use - string value
; allowed values:
;            - sql      : SQLite Database
;            - dict   : Hashmap in Memory
type = sql


If this is not in your /etc/portato/portato.cfg, you've done something wrong :)

Re: New Portato 12 not works.

PostPosted: Tue Mar 17, 2009 2:19
by albfneto
Solved.
Copying the antique portato.cfg (making backup) and copying the lines in it, solved.
Thanks

Re: New Portato 12 not works. [Solved]

PostPosted: Wed Mar 25, 2009 22:20
by albfneto
Another mean to solve the defective installation...

update Portage:

Code: Select all
# emerge --sync
# emerge portage


Remove Portato:

Code: Select all
# emerge -C portato


Remove the dir with the portato config file:

Code: Select all
# rm -rf /etc/portato


Reinstall Portato:

Code: Select all
# emerge -av portato