Sie sind nicht angemeldet.

21

16.08.2009, 16:15

Hi
Achte aber bitte drauf das nicht ausversehen "dev-lang/python" mit deinstalliert wird :!:
damit wäre dann auch portage und somit emerge außer gefecht gesetzt...

22

16.08.2009, 16:25

Darauf sollte man natürlich achten.
Aber wenn wir von der Kategorie "dev-python" reden, dann hat das ja eh nichts mit der Kategorie "dev-lang" zu tun.
"Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun."
"It's only after we've lost everything, that we're free to do anything!"

Jabber: Die ID kann via PN erfragt werden.

23

16.08.2009, 17:51

also kann ich alles von python außer "dev-lang/python" mit emerge -C vom System werfen, und dann neubauen?
Oder welche Pakete von Python sind noch mit Vorsicht zu genießen?

EDIT: zu spät gelesen aber Frage bleibt. :)

24

16.08.2009, 18:19

Micha!
maggu nannte die Pakete aus der Kategorie "dev-python"
also zb

Quellcode

1
eix -I -c dev-python/
alles klar?

25

17.08.2009, 11:31

..ja alles klar damit. Danke nochmal.
Allerdings bekomme ich jetzt bei dem Neubau:

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
* Removing useless C++ checks ...

 * Messages for package sys-apps/sysvinit-2.86-r10:

 * Applying sysvinit-2.86-docs.patch ...
 * Applying sysvinit-2.86-shutdown-usage.patch ...
 * Applying sysvinit-2.86-off-by-one.patch ...
 * Applying sysvinit-2.86-kexec.patch ...
 * Applying sysvinit-2.86-execl.patch ...
 * Applying sysvinit-2.86-utmp-64bit.patch ...
 * Applying sysvinit-2.86-shutdown-single.patch ...
 * Applying sysvinit-2.86-utmp-smp.patch ...
 * Applying sysvinit-2.86-build.patch ...

 * Messages for package dev-db/sqlite-2.8.16-r4:

 * Linking /usr/bin/lemon-0 to /usr/bin/lemon (relative)

 * Messages for package dev-db/sqlite-2.8.16-r4:

 * Applying sqlite-2.8.16-multilib.patch ...
 * Removing useless C++ checks ...
 * Linking /usr/bin/lemon-0 to /usr/bin/lemon (relative)

 * Messages for package x11-proto/xcb-proto-1.1:

 * Fetch failed for 'x11-proto/xcb-proto-1.1', Log file:
 *  '/var/tmp/portage/x11-proto/xcb-proto-1.1/temp/build.log'

 * GNU info directory index is up-to-date.
micha ~ # emerge -avuDN world --skipfirst
bash: /usr/bin/emerge: /usr/bin/python: bad interpreter: Datei oder Verzeichnis nicht gefunden

Wie kann das jetzt passiert sein?

26

17.08.2009, 12:57

mhh, hast du aus versehen doch das ganze python raus geworfen?


Geht bei dir emerge gar nicht mehr?
Dann schau mal hier: http://forums.gentoo.org/viewtopic-t-504315.html
Da haben sie ein ähnliches Problem gelöst.

EDIT:
Ansonsten schau mal, ob der link noch passt:

Quellcode

1
2
ls -l /usr/bin/python
lrwxrwxrwx 1 root root 14  7. Aug 14:55 /usr/bin/python -> python-wrapper


python-wrapper gehört zu:

Quellcode

1
2
3
michilp ~ $ equery b /usr/bin/python-wrapper
[ Searching for file(s) /usr/bin/python-wrapper in *... ]
app-admin/eselect-python-20090804 (/usr/bin/python-wrapper)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Michi« (17.08.2009, 13:05)


27

17.08.2009, 12:59

Wow! Kannst du python auf der shell ausrufen?
Bzw. was zeigt gibt

Quellcode

1
# ls -l /usr/bin/python*
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

28

17.08.2009, 16:19

Python musste ich temporär neu bauen, ist jetzt wieder drauf. Warum es nicht mehr lief weiss ich nicht.
Das ganze hängt mit verschiedenen Einträgen in den "package.xxx" Dateien zusammen.
jetzt:

Quellcode

1
2
3
4
5
6
7
~ # ls -l /usr/bin/python*
lrwxrwxrwx 1 root root   14 17. Aug 15:59 /usr/bin/python -> python-wrapper
lrwxrwxrwx 1 root root    9 17. Aug 15:59 /usr/bin/python2 -> python2.6
-rwxr-xr-x 1 root root 5352 17. Aug 13:39 /usr/bin/python2.6
-rwxr-xr-x 1 root root  209 17. Aug 15:59 /usr/bin/python-config
-rwxr-xr-x 1 root root 1200 17. Aug 13:38 /usr/bin/python-config-2.6
-rwxr-xr-x 1 root root 9520 17. Aug 15:58 /usr/bin/python-wrapper

der "python-wrapper" ist nur ab Version "app-admin/eselect-python-20090814" enthalten.

PS: ich kämpfe immer noch mit Python X(

er stirbt immer noch bei:

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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
>>> Emerging (1 of 3) dev-python/PyQt4-4.4.4-r5
 * PyQt-x11-gpl-4.4.4.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                            [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-4.4.4.tar.gz to /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work
>>> Source unpacked in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work
>>> Preparing source in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4 ...
 * Applying configure.py.patch ...                                                                                                                                                                                                                                       [ ok ]
 * Applying PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch ...                                                                                                                                                                                         [ ok ]
 * Applying fix_license_check.patch ...                                                                                                                                                                                                                                  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/PyQt4-4.4.4-r5/work/PyQt-x11-gpl-4.4.4 ...
python configure.py --confirm-license --bindir=/usr/bin --destdir=/usr/lib/python2.6/site-packages --sipdir=/usr/share/sip --enable=QtCore --enable=QtNetwork --enable=QtScript --enable=QtTest --enable=QtXml --enable=QtGui --enable=QtDesigner --enable=QtOpenGL --enable=QtSvg
Traceback (most recent call last):
  File "configure.py", line 43, in <module>
    import sipconfig
ImportError: No module named sipconfig
 *
 * ERROR: dev-python/PyQt4-4.4.4-r5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 3561:  Called die
 * The specific snippet of code:
 *       ${myconf} || die "configuration failed";
 *  The die message:
 *   configuration failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/environment'.
 *

>>> Failed to emerge dev-python/PyQt4-4.4.4-r5, Log file:

>>>  '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log'

 * Messages for package dev-python/PyQt4-4.4.4-r5:

 * Applying configure.py.patch ...
 * Applying PyQt4-4.4.4-qgraphicsproxywidget-avoid-event-callback-loop.patch ...
 * Applying fix_license_check.patch ...
 *
 * ERROR: dev-python/PyQt4-4.4.4-r5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 3561:  Called die
 * The specific snippet of code:
 *       ${myconf} || die "configuration failed";
 *  The die message:
 *   configuration failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.4.4-r5/temp/environment'.
 *
 * Building file list for distfiles cleaning...
 * Cleaning distfiles...
 [ 149.8 K ] eselect-1.0.11.tar.bz2
 * Total space that has been freed in distfiles directory: 149.8 K

29

17.08.2009, 16:56

Du hast dev-python/sip installiert?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

30

17.08.2009, 17:03

Ja

Quellcode

1
2
3
4
5
dev-python/sip
     Available versions:  4.7.9 ~4.8.1 ~4.8.2 {debug doc}
     Installed versions:  4.7.9(01:09:55 17.08.2009)(-debug)
     Homepage:            http://www.riverbankcomputing.co.uk/software/sip/intro
     Description:         A tool for generating bindings for C++ classes so that they can be used by Python

31

17.08.2009, 17:11

Schon, schon. Bloss hast du die notwenigen Dateien auch in dem dir passend site-packages-Verzeichnis?

Guck (bei mir 64bit):

Quellcode

1
2
3
4
5
6
7
8
# qlist dev-python/sip | sort
/usr/bin/sip
/usr/include/python2.6/sip.h
/usr/lib64/python2.6/site-packages/sip.so
/usr/lib64/python2.6/site-packages/sipconfig.py
/usr/lib64/python2.6/site-packages/sipdistutils.py
/usr/share/doc/sip-4.8.1/ChangeLog.bz2
/usr/share/doc/sip-4.8.1/NEWS.bz2


Auf was es ankommt ist die Zeile: /usr/lib64/python2.6/site-packages/sipconfig.py. Check ob diese Datei wirklich da ist. Wenn du mehr als eine python version hast, kannst du das packages installiert haben ... allerdings für ein anderes python, was dein python hier Probleme macht ... siehst du das?

edit: wenn alles passt, dann solltest du das auf der shell machen können

Quellcode

1
2
3
4
5
6
7
# python
Python 2.6.2 (r262:71600, May 29 2009, 10:07:34)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sipconfig
>>> dir(sipconfig)
['Configuration', 'Makefile', 'ModuleMakefile', 'ParentMakefile', 'ProgramMakefile', 'PythonModuleMakefile', 'SIPModuleMakefile', '_Macro', '_UniqueList', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_config_stack', '_default_macros', '_pkg_config', '_quote', 'create_config_module', 'create_content', 'create_wrapper', 'error', 'format', 'inform', 'os', 'parse_build_macros', 're', 'read_version', 'stat', 'string', 'sys', 'version_to_sip_tag', 'version_to_string']
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

32

17.08.2009, 17:20

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
qlist dev-python/sip | sort
/usr/bin/sip
/usr/include/python2.6/sip.h
/usr/lib/python2.6/site-packages/sipconfig.py
/usr/lib/python2.6/site-packages/sipdistutils.py
/usr/lib/python2.6/site-packages/sip.so
/usr/share/doc/sip-4.7.9/ChangeLog.bz2
/usr/share/doc/sip-4.7.9/html/sipref.html
/usr/share/doc/sip-4.7.9/NEWS.bz2
/usr/share/doc/sip-4.7.9/README.bz2
/usr/share/doc/sip-4.7.9/sipref.txt.bz2
/usr/share/doc/sip-4.7.9/TODO.bz2

Da ist was faul:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
qlist dev-python/sip | sort
/usr/bin/sip
/usr/include/python2.6/sip.h
/usr/lib/python2.6/site-packages/sipconfig.py
/usr/lib/python2.6/site-packages/sipdistutils.py
/usr/lib/python2.6/site-packages/sip.so
/usr/share/doc/sip-4.7.9/ChangeLog.bz2
/usr/share/doc/sip-4.7.9/html/sipref.html
/usr/share/doc/sip-4.7.9/NEWS.bz2
/usr/share/doc/sip-4.7.9/README.bz2
/usr/share/doc/sip-4.7.9/sipref.txt.bz2
/usr/share/doc/sip-4.7.9/TODO.bz2
ASRock_K8 mnt # python
Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sipconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sipconfig
>>>

passt da jetzt sip nicht zu der python Version?

33

17.08.2009, 17:28

Ok. Output von

Quellcode

1
# ldd /usr/lib/python2.6/site-packages/sip.so
..?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

34

17.08.2009, 17:36

Output ldd:

Quellcode

1
2
3
4
5
6
7
ldd /usr/lib/python2.6/site-packages/sip.so
        linux-gate.so.1 =>  (0xb8062000)
        libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libstdc++.so.6 (0xb7f40000)
        libm.so.6 => /lib/libm.so.6 (0xb7f1b000)
        libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 (0xb7f0e000)
        libc.so.6 => /lib/libc.so.6 (0xb7dcb000)
        /lib/ld-linux.so.2 (0xb8063000)


Danke für Deine Hilfe.

35

17.08.2009, 17:51

Hehehe ... knifflig ... coool =)

Kann es sein, das dein PYTHONPATH durcheinander ist? Was sagt

Quellcode

1
2
3
4
5
6
7
# python
Python 2.6.2 (r262:71600, May 29 2009, 10:07:34)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
['', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gst-0.10', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/portage/pym']


Oder auch: hast du in deiner Shell irgendwo eine Umgebungsvariable, die wie PYTHONPATH aussieht?


edit: schöner sieht es mit "pretty-print" aus:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# python
Python 2.6.2 (r262:71600, May 29 2009, 10:07:34)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> import sys
>>> pprint.pprint(sys.path)
['',
 '/usr/lib64/python26.zip',
 '/usr/lib64/python2.6',
 '/usr/lib64/python2.6/plat-linux2',
 '/usr/lib64/python2.6/lib-tk',
 '/usr/lib64/python2.6/lib-old',
 '/usr/lib64/python2.6/lib-dynload',
 '/usr/lib64/python2.6/site-packages',
 '/usr/lib64/python2.6/site-packages/PIL',
 '/usr/lib64/python2.6/site-packages/gst-0.10',
 '/usr/lib64/python2.6/site-packages/gtk-2.0',
 '/usr/lib64/portage/pym']
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

36

17.08.2009, 17:56

Quellcode

1
2
3
4
5
6
7
8
9
10
11
python
Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path
...
KeyboardInterrupt
>>> print(sys.path)
['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages']
>>>

"Umgebungsvariablen"

Quellcode

1
2
3
4
5
6
7
8
9
mnt # echo $
$_                    $BASH_VERSINFO        $EDITOR               $HISTFILE             $LANG                 $LC_MONETARY          $LINENO               $OLDPWD               $PKG_CONFIG_PATH      $QTDIR                $SSH_CLIENT           $XDG_DATA_DIRS
$BASH                 $BASH_VERSION         $EUID                 $HISTFILESIZE         $LC_ADDRESS           $LC_NAME              $LINES                $OPENGL_PROFILE       $PPID                 $RANDOM               $SSH_CONNECTION       $XDM_LANG
$BASH_ARGC            $COLUMNS              $FLTK_DOCDIR          $HISTSIZE             $LC_ALL               $LC_NUMERIC           $LOGNAME              $OPTERR               $PROMPT_COMMAND       $RUBYOPT              $SSH_TTY
$BASH_ARGV            $COMP_WORDBREAKS      $GCC_SPECS            $HOME                 $LC_COLLATE           $LC_PAPER             $LS_COLORS            $OPTIND               $PS1                  $SANE_CONFIG_DIR      $TERM
$BASH_COMMAND         $CONFIG_PROTECT       $GDK_USE_XFT          $HOSTNAME             $LC_CTYPE             $LC_TELEPHONE         $MACHTYPE             $OSTYPE               $PS2                  $SECONDS              $UID
$BASH_LINENO          $CONFIG_PROTECT_MASK  $GDM_LANG             $HOSTTYPE             $LC_IDENTIFICATION    $LC_TIME              $MAIL                 $PAGER                $PS4                  $SHELL                $USB_DEVFS_PATH
$BASH_SOURCE          $CVS_RSH              $GROUPS               $IFS                  $LC_MEASUREMENT       $LESS                 $MAILCHECK            $PATH                 $PWD                  $SHELLOPTS            $USER
$BASH_SUBSHELL        $DIRSTACK             $HISTCMD              $INFOPATH             $LC_MESSAGES          $LESSOPEN             $MANPATH              $PIPESTATUS           $QMAKESPEC            $SHLVL                $XDG_CONFIG_DIRS

sieht nicht so aus.

Zitat von »dyle«

schöner sieht es mit "pretty-print" aus:

na dann:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
python
Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> import sys
>>> pprint.pprint(sys.path)
['',
 '/usr/local/lib/python26.zip',
 '/usr/local/lib/python2.6',
 '/usr/local/lib/python2.6/plat-linux2',
 '/usr/local/lib/python2.6/lib-tk',
 '/usr/local/lib/python2.6/lib-old',
 '/usr/local/lib/python2.6/lib-dynload',
 '/usr/local/lib/python2.6/site-packages']
>>>

37

17.08.2009, 18:03

DAAAAAAAAAAA!!!!!!!!!!!!!

Quellcode

1
['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk', '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/site-packages']


Ziemlich viel /usr/local ... findest du nicht?

Du hast einmal versucht python per Hand zu installieren und das ist in /usr/local gelandet. sip ist also in /usr/lib/... und nicht in /usr/local/lib wo er nachguckt. Das kann er nicht finden! Der Angeklagte ist somit nicht schuldig. =)

Wenn du was mit portage machst, geht das nach /usr (nicht /usr/local).

Ergo: spiel dein python2.6 wieder ein. Sieh zu das der /usr/bin/python2.6 link richtig nach /usr zeigt ... und wirf bitte die /usr/local Version weg.

ACHTUNG: siehe zu das du zuerst ein laufendes python in /usr bekommst, bevor du es in /usr/local entfernst. Im Moment brauchst du das nämlich noch für emerge ...
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

38

17.08.2009, 18:13

Super ich Danke Dir.
Mal sehen ob ich das alles sauber über die Bühne kriege.


EDIT:

Zitat von »dyle«

Du hast einmal versucht python per Hand zu installieren und das ist in /usr/local gelandet. sip ist also in /usr/lib/... und nicht in /usr/local/lib wo er nachguckt. Das kann er nicht finden! Der Angeklagte ist somit nicht schuldig. =)

muss sip nicht in "/usr/bin/" liegen?

EDIT:
passt jetzt:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
lib # python
Python 2.6.2 (r262:71600, Jul 21 2009, 22:22:12)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pprint
>>> import sys
>>> pprint.pprint(sys.path)
['',
 '/usr/lib/python26.zip',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/site-packages',
 '/usr/lib/portage/pym']
>>>


Superklasse das wars. :thumbsup:

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Michigen« (17.08.2009, 18:45)