Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

04.07.2009, 21:37

Portage kaputt und Python Probleme

Hallo,

mein Portage ist kaputt bzw. laufen die ganzen Tools davon nicht.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# emerge --info
Traceback (most recent call last):
  File "/usr/bin/emerge", line 29, in <module>
    import _emerge
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 49, in <module>
    import portage.util
MemoryError
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "//usr/lib64/portage/pym/portage/process.py", line 114, in run_exitfuncs
    dump_traceback("Error in portage.process.run_exitfuncs", noiselevel=0)
  File "//usr/lib64/portage/pym/portage/proxy/objectproxy.py", line 29, in __call__
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/atexit.py", line 30, in _run_exitfuncs
    traceback.print_exc()
  File "/usr/lib64/python2.5/traceback.py", line 227, in print_exc
    print_exception(etype, value, tb, limit, file)
  File "/usr/lib64/python2.5/traceback.py", line 125, in print_exception
    print_tb(tb, limit, file)
  File "/usr/lib64/python2.5/traceback.py", line 69, in print_tb
    line = linecache.getline(filename, lineno, f.f_globals)
  File "/usr/lib64/python2.5/linecache.py", line 14, in getline
    lines = getlines(filename, module_globals)
  File "/usr/lib64/python2.5/linecache.py", line 40, in getlines
    return updatecache(filename, module_globals)
  File "/usr/lib64/python2.5/linecache.py", line 129, in updatecache
    lines = fp.readlines()
MemoryError


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# python-updater 
 * Starting Python Updater from 2.4 to 2.5 :
 *   Adding to list: =sys-apps/file-4.23
 *   Adding to list: =dev-python/pycrypto-2.0.1-r6
 *   Adding to list: =dev-python/python-fchksum-1.7.1
Traceback (most recent call last):
  File "/usr/bin/emerge", line 29, in <module>
    import _emerge
  File "//usr/lib64/portage/pym/_emerge/__init__.py", line 49, in <module>
    import portage.util
MemoryError
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "//usr/lib64/portage/pym/portage/process.py", line 114, in run_exitfuncs
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/atexit.py", line 30, in _run_exitfuncs
    traceback.print_exc()
  File "/usr/lib64/python2.5/traceback.py", line 227, in print_exc
    print_exception(etype, value, tb, limit, file)
  File "/usr/lib64/python2.5/traceback.py", line 125, in print_exception
    print_tb(tb, limit, file)
  File "/usr/lib64/python2.5/traceback.py", line 69, in print_tb
    line = linecache.getline(filename, lineno, f.f_globals)
  File "/usr/lib64/python2.5/linecache.py", line 14, in getline
    lines = getlines(filename, module_globals)
  File "/usr/lib64/python2.5/linecache.py", line 40, in getlines
    return updatecache(filename, module_globals)
  File "/usr/lib64/python2.5/linecache.py", line 129, in updatecache
    lines = fp.readlines()
MemoryError


Nachdem ich:
1. Portage neuinstalliert http://www.gentoo.org/proj/en/portage/do…ing-portage.xml
2. Python 2.5.2 installiert und gelinkt (2. Verzweiflungsakt ; )
hatte, tritt nun dieser Fehler auf

Quellcode

1
2
3
4
5
6
7
8
9
# emerge 
Traceback (most recent call last):
  File "/usr/bin/emerge", line 12, in <module>
    import _emerge
  File "/usr/lib64/portage/pym/_emerge/__init__.py", line 27, in <module>
    import logging
  File "/usr/local/src/Python-2.5.2/build/lib/python2.5/logging/__init__.py", line 29, in <module>
    import sys, os, types, time, string, cStringIO, traceback
ImportError: No module named cStringIO

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »h2o« (05.07.2009, 11:38)


2

04.07.2009, 22:07

Oje...

es scheint da noch Probleme mit Python zu geben
wurden die python Versionen via emerge, oder Manuell installiert?
besteht die Möglichkeit via

Quellcode

1
# eselect python list
bzw "set" auf python2.4 umzuschalten?

ist es überhaupt noch möglich zb python neu zu mergen?

/edit
denn es sind ja alles Fehlermeldungen aufgrund das einige Python -Module nicht geladen werden können, sollte eigentlich so ausschauen, bzw sie sollten so importiert werden können

Quellcode

1
2
3
4
5
6
7
8
$ python
Python 2.6.2 (r262:71600, Jun 20 2009, 18:02:54)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cStringIO
>>> import _emerge
>>> import portage.util
>>>
/edit2: Mit Strg+d kommst du da wieder raus..

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »josef.95« (04.07.2009, 23:30)


3

04.07.2009, 23:56

Emerge funktioniert gar nicht mehr... nichtmal ohne Parameter.

Quellcode

1
2
3
# eselect python
!!! Error: Can't load module python
Killed


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
# python
Python 2.5.4 (r254:67916, Jul  4 2009, 22:12:33) 
[GCC 4.1.2 (Gentoo 4.1.2 p1.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import portage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named portage
>>> import cStringIO
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cStringIO


Bei Python 2.4.6 und Portage 2.1.1 meckert er immer noch bei cStringIO
/edith sucht cStringIO zum downloaden

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 portage-2.1.1 # emerge -info


!!! Failed to complete python imports. These are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is not able to continue processing.

!!! You might consider starting python with verbose flags to see what has
!!! gone wrong. Here is the information we got for this exception:
    No module named cStringIO

Traceback (most recent call last):
  File "/usr/bin/emerge", line 28, in ?
    import portage
  File "/usr/lib/portage/pym/portage/__init__.py", line 17, in ?
    import logging
  File "/usr/local/src/Python-2.4.6/build/lib/python2.4/logging/__init__.py", line 29, in ?
    import sys, os, types, time, string, cStringIO, traceback
ImportError: No module named cStringIO

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »h2o« (05.07.2009, 00:06)


4

05.07.2009, 00:16

Quellcode

1
2
3
# eselect python
 !!! Error: Can't load module python 
Killed
Das ist so auch nicht ganz korrekt angewendet...
ich meinte ob du evtl noch auf eine andere (python2.4) Version umschalten kannst?
also erst mit

Quellcode

1
# eselect python list
schauen welche Versionen zur verfügung stehen, und diese dann mit

Quellcode

1
# eselect python set NUMMER
setzen (NUMMER ist natürlich zu ersetzen)
Evtl. hast du Glück das sich noch auf python2.4 umschalten, und diese sich dann nutzen lässt..

5

05.07.2009, 00:26

Sorry! "eselect python list" schlaegt allerdings genauso fehl.

6

05.07.2009, 03:39

Hatte die Passage in der Lib kurz umgebogen mit Try Except, weil angeblich ein Fallback auf StringIO moeglich waere. Danach fehlte binascii. Wie auch immer...

Mit Portage 2.1.6 und Python 2.6.2 kam ich jetzt wieder ans System.
Portage und Python emerged, python-updater ausgefuehrt und bisher scheint wieder alles zu funktionieren. :)

// edit: Frage mich aber schon noch, wieso in einem Release unter den Standardbibliotheken, Bibliotheken aus dem uebernaechsten Release importiert werden... ist das ein Gag? ?(

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »h2o« (05.07.2009, 03:46)


7

05.07.2009, 11:18

War ein Problem mit dem zugeteilten softlimit zur Speichernutzung :S

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »h2o« (05.07.2009, 11:38)